diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2016-02-23 07:29:25 -0500 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2016-02-23 07:29:25 -0500 |
commit | f67648a124655305c3e8947fe312b97ccf74e2fd (patch) | |
tree | e2c2a006698836070b3ce651ac0fe89d192da6bc /include/ui.h | |
parent | 0075f9e7997d01fa2105bff38e40a3d5b8b421e6 (diff) | |
parent | 0d77d11b708e57546d8267e957230c30bc5d048c (diff) |
Villages!
Diffstat (limited to 'include/ui.h')
-rw-r--r-- | include/ui.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/ui.h b/include/ui.h index 8d479a4..a3084eb 100644 --- a/include/ui.h +++ b/include/ui.h @@ -50,6 +50,12 @@ public: std::vector<menuItem>items; Menu *child; Menu *parent; + ~Menu(){ + child = NULL; + parent = NULL; + delete child; + delete parent; + } void gotoChild(); void gotoParent(); @@ -147,6 +153,7 @@ namespace ui { */ void importantText(const char *text,...); + void passiveImportantText(int duration,const char *text,...); /* * Draw various UI elements (dialogBox, player health) @@ -159,8 +166,6 @@ namespace ui { * Draw various menu items */ void quitGame(); - void quitMenu(); - void optionsMenuF(); void drawMenu(Menu* menu); |