Support for textured toolbars of variable length. Grafx2 repeats the last two columns, so the dither pattern of Modern skin works.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1191 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2009-11-15 16:43:59 +00:00
parent 22b5dc56e5
commit f7a5b23541
10 changed files with 123 additions and 85 deletions

View File

@@ -417,8 +417,8 @@ typedef struct
/// Bitmap data for the menu, a single rectangle.
byte Menu_block[35][MENU_WIDTH];
byte Layerbar_block[10][MENU_WIDTH];
byte Statusbar_block[9][MENU_WIDTH];
byte Layerbar_block[10][144];
byte Statusbar_block[9][20];
/// Bitmap data for the icons that are displayed over the menu.
byte Menu_sprite[NB_MENU_SPRITES][MENU_SPRITE_HEIGHT][MENU_SPRITE_WIDTH];
/// Bitmap data for the different "effects" icons.
@@ -466,18 +466,19 @@ typedef struct
// A menubar.
typedef struct {
word width;
word height;
byte visible;
byte* skin;
byte last_button_index;
word Width;
word Height;
byte Visible;
byte* Skin;
word Skin_width;
byte Last_button_index;
} T_Menu_Bar;
typedef enum {
status_bar = 0, // MUST be 0
layers_bar,
main_bar,
MENUBARS_COUNT
MENUBAR_STATUS = 0, // MUST be 0
MENUBAR_LAYERS,
MENUBAR_TOOLS,
MENUBAR_COUNT
} T_Menubars;
#endif