Support for stacked menubars. May still be incomplete...
TODO : add a way to hide and show them... git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1178 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
19
struct.h
19
struct.h
@@ -416,7 +416,9 @@ typedef struct
|
||||
// Menu and other graphics
|
||||
|
||||
/// Bitmap data for the menu, a single rectangle.
|
||||
byte Menu_block[MENU_HEIGHT][MENU_WIDTH];
|
||||
byte Menu_block[35][MENU_WIDTH];
|
||||
byte Layerbar_block[10][MENU_WIDTH];
|
||||
byte Statusbar_block[9][MENU_WIDTH];
|
||||
/// 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.
|
||||
@@ -460,4 +462,19 @@ typedef struct
|
||||
|
||||
} T_Gui_skin;
|
||||
|
||||
// A menubar.
|
||||
typedef struct {
|
||||
word width;
|
||||
word height;
|
||||
byte visible;
|
||||
byte* skin;
|
||||
} T_Menu_Bar;
|
||||
|
||||
typedef enum {
|
||||
status_bar = 0, // MUST be 0
|
||||
layers_bar,
|
||||
main_bar,
|
||||
MENUBARS_COUNT
|
||||
} T_Menubars;
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user