diff options
| author | Cracker64 <cracker642@gmail.com> | 2011-05-10 19:32:00 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-05-14 12:46:10 (GMT) |
| commit | 9d20d6af82a3216c673dc5a8c0a3f03ff4326c4f (patch) | |
| tree | 53567d991ce0efc03ab74393612dd75c5894b4f0 /includes/interface.h | |
| parent | e675fb3cc18117bee065719afd390995e8494e87 (diff) | |
| download | powder-9d20d6af82a3216c673dc5a8c0a3f03ff4326c4f.zip powder-9d20d6af82a3216c673dc5a8c0a3f03ff4326c4f.tar.gz | |
Decoration has a color menu. GoL uses less memory(17MB less), and probably a bit faster.
Diffstat (limited to 'includes/interface.h')
| -rw-r--r-- | includes/interface.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/includes/interface.h b/includes/interface.h index cadffd9..aa5b0b2 100644 --- a/includes/interface.h +++ b/includes/interface.h @@ -26,7 +26,7 @@ typedef struct menu_section menu_section; #define SC_CRACKER2 13 #define SC_TOTAL 10 -static menu_section msections[] = //itemcount and doshow do not do anything currently. +static menu_section msections[] = //doshow does not do anything currently. { {"\xC1", "Walls", 0, 1}, {"\xC2", "Electronics", 0, 1}, @@ -44,6 +44,23 @@ static menu_section msections[] = //itemcount and doshow do not do anything curr {"\xC8", "Cracker!", 0, 0}, }; +static menu_section colorsections[] = //doshow does not do anything currently. +{ + {"\xD1", "Colors", 7, 1}, + {"\xC5", "Tools", 0, 1}, +}; + +static menu_wall colorlist[] = +{ + {PIXPACK(0xFF0000), "Red"}, + {PIXPACK(0x00FF00), "Green"}, + {PIXPACK(0x0000FF), "Blue"}, + {PIXPACK(0xFFFF00), "Yellow"}, + {PIXPACK(0xFF00FF), "Pink"}, + {PIXPACK(0x00FFFF), "Cyan"}, + {PIXPACK(0xFFFFFF), "White"}, +}; + struct ui_edit { int x, y, w, nx, h; @@ -177,6 +194,8 @@ void menu_ui(pixel *vid_buf, int i, int *sl, int *sr); void menu_ui_v3(pixel *vid_buf, int i, int *sl, int *sr, int *dae, int b, int bq, int mx, int my); +int color_menu_ui(pixel *vid_buf, int i, int *cr, int *cg, int *cb, int b, int bq, int mx, int my); + int sdl_poll(void); void set_cmode(int cm); |
