Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string actualGui = "";
- void initializeGui()
- {
- guiMainMenu = GuiMainMenu();
- guiMainMenuPtr = &guiMainMenu;
- guiGame = GuiGame();
- guiGamePtr = &guiGame;
- setGuiScreen("GuiMainMenu");
- }
- void setGuiScreen(string gui)
- {
- actualGui = gui;
- if(actualGui == "GuiGame")
- guiScreenPtr = guiGamePtr;
- else if(actualGui == "GuiMainMenu")
- guiScreenPtr = guiMainMenuPtr;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement