summaryrefslogtreecommitdiff
path: root/includes/interface.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-10-21 18:41:12 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-10-21 18:41:12 (GMT)
commit9cf65de1c369e91ba9de1a9cbceab7ba9131c89d (patch)
tree224cdf096c61c39c7b3283ae055e8e6b6a6b9c68 /includes/interface.h
parent08009ebbaac9abd7941f5057a2289cbbbde4c5ee (diff)
downloadpowder-9cf65de1c369e91ba9de1a9cbceab7ba9131c89d.zip
powder-9cf65de1c369e91ba9de1a9cbceab7ba9131c89d.tar.gz
Quick options menu
Diffstat (limited to 'includes/interface.h')
-rw-r--r--includes/interface.h22
1 files changed, 20 insertions, 2 deletions
diff --git a/includes/interface.h b/includes/interface.h
index 5d59dcf..a8a511e 100644
--- a/includes/interface.h
+++ b/includes/interface.h
@@ -15,6 +15,17 @@ struct menu_section
};
typedef struct menu_section menu_section;
+#define QM_TOGGLE 1
+
+struct quick_option
+{
+ char *icon;
+ const char *name;
+ int type;
+ int *variable;
+};
+typedef struct quick_option quick_option;
+
struct menu_wall
{
pixel colour;
@@ -58,6 +69,13 @@ static menu_section msections[] = //doshow does not do anything currently.
{"\xC8", "Cracker!", 0, 0},
};
+static quick_option quickmenu[] = //doshow does not do anything currently.
+{
+ {"P", "Sand effect", QM_TOGGLE, &pretty_powder},
+ {"G", "Draw gravity grid", QM_TOGGLE, &drawgrav_enable},
+ {NULL}
+};
+
static menu_section colorsections[] = //doshow does not do anything currently.
{
{"\xC4", "Colors", 7, 1},
@@ -201,10 +219,10 @@ extern int zoom_en;
extern int zoom_x, zoom_y;
extern int zoom_wx, zoom_wy;
-extern int drawgrav_enable;
-
void menu_count(void);
+void quickoptions_menu(pixel *vid_buf, int b, int bq, int x, int y);
+
void prop_edit_ui(pixel *vid_buf, int x, int y);
void get_sign_pos(int i, int *x0, int *y0, int *w, int *h);