aboutsummaryrefslogtreecommitdiffstats
path: root/include/ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ui.h')
-rw-r--r--include/ui.h9
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);