DEADSOFTWARE

menu: draw menus without direct access to sutructures
[flatwaifu.git] / src / menu.h
index cfb7d439653afadf7383aef7f140a93c148157f5..50e5e144717bbe1185625ec0bc96a466a4230bd0 100644 (file)
 #define GM_BEGIN  8 // textfield
 #define GM_END    9 // textfield
 #define GM_CANCEL 10 // textfield
+#define GM_QUERY  11 // menu
+#define GM_GETTITLE 12 // menu
+#define GM_GETENTRY 13 // entry
+#define GM_GETCAPTION 14 // entry
 
 typedef struct new_str_msg_t {
   byte type;
@@ -85,18 +89,17 @@ struct new_menu_t {
 
 extern byte _warp;
 
-//#define PCOLORN 10
-//extern byte pcolortab[PCOLORN];
-//extern int p1color;
-//extern int p2color;
-
 #define GM_MAX_INPUT 24
 extern char ibuf[GM_MAX_INPUT];
 extern byte input;
 extern int icur;
+extern int imax;
 
 extern short lastkey;
 
+int GM_init_int (new_msg_t *msg, int i, int a, int b, int s);
+int GM_init_str (new_msg_t *msg, char *str, int maxlen);
+
 void GM_push (const new_menu_t *m);
 void GM_pop (void);
 void GM_popall (void);