Menu stuff update. Fixed some of the probably many bugs and made things a
bit more consistent.
This commit is contained in:
+11
-1
@@ -15,10 +15,10 @@
|
||||
#define MENUSCREENS_H
|
||||
|
||||
#include "menu.h"
|
||||
#include "menuitem.h"
|
||||
#include "screen.h"
|
||||
|
||||
extern Screen * menuscreen;
|
||||
extern MenuItem * active_menuitem;
|
||||
extern Menu * main_menu;
|
||||
|
||||
int init_menu();
|
||||
@@ -28,6 +28,16 @@ bool is_menu_key (char * key);
|
||||
* reserved menu key.
|
||||
*/
|
||||
|
||||
void menuscreen_inform_item_destruction (MenuItem * item);
|
||||
/* Meant for other parts of the program to inform the menuscreen that the
|
||||
* item is about to be removed.
|
||||
*/
|
||||
|
||||
void menuscreen_inform_item_modified (MenuItem * item);
|
||||
/* Meant for other parts of the program to inform the menuscreen that some
|
||||
* properties of the item have been modified.
|
||||
*/
|
||||
|
||||
void menuscreen_key_handler (char *key);
|
||||
/* This handler handles the keypresses for the menu.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user