Tool menu in deco editor, Lighten/Darken tools.

This commit is contained in:
cracker64
2011-09-19 17:02:04 -04:00
parent fb1a522cca
commit f0379c5418
4 changed files with 163 additions and 45 deletions

View File

@@ -60,9 +60,10 @@ static menu_section msections[] = //doshow does not do anything currently.
static menu_section colorsections[] = //doshow does not do anything currently.
{
{"\xD1", "Colors", 7, 1},
{"\xC5", "Tools", 0, 1},
{"\xC4", "Colors", 7, 1},
{"\xD7", "Tools", 0, 1},
};
#define DECO_SECTIONS 2
static menu_wall colorlist[] =
{
@@ -75,6 +76,17 @@ static menu_wall colorlist[] =
{PIXPACK(0xFFFFFF), "White"},
};
#define DECO_DRAW 0
#define DECO_LIGHTEN 1
#define DECO_DARKEN 2
static menu_wall toollist[] =
{
{PIXPACK(0xFF0000), "Draw"},
{PIXPACK(0xDDDDDD), "Lighten"},
{PIXPACK(0x111111), "Darken"},
};
struct ui_edit
{
int x, y, w, nx, h;