About Store Forum Documentation Contact
Donations:
327$/mo



Post Reply 
Dificulty adding new items to memt container
Author Message
Otolone Offline
Member

Post: #1
Dificulty adding new items to memt container
Hi I am working on a gui that will enable the player to switch to menu window,options window with different buttons to do that,but I just can't add my buttons.
Part of my Code:
class mainMenu
{
public:
static bool initMenu()
{
if(gui_objs.load(guiFolder/menu)
{
GUI +=gui_objects;
MenuItem . Options=&gui_objs.getButton("buttonOptions");

menuitems.include(MenuItem.Options); //Iget an error here.It says left of
//'include' must have class/struct/union but I believe I have declared menuitems
//by stating Memt<MenuResult>menuitems

MenuItem .Options.action = optionsmenu;

}

enum MenuResult { Exit, Play , Back, optionsmenu};
struct MenuItem
{
public:
static Button *Options=null;

MenuResult action;

}
private:
static GuiObjs gui_objs;

Memt<MenuResult > menuitems;


};

I will be very grateful for any help
02-18-2016 01:13 AM
Find all posts by this user Quote this message in a reply
Otolone Offline
Member

Post: #2
RE: Dificulty adding new items to memt container
This help was posted by me after gambling with other game engines,Panda3D,GameMaker studio, Blender Game Engine, FSML.
If there is a piece of advice I can give to newbies, it is that forget a lot of of what you have learnt in other engines if you want to learn EE. In my opinion EE is the best.
Thanks.
04-03-2018 07:10 PM
Find all posts by this user Quote this message in a reply
Post Reply