More unification of layers and anim version: toolbars work. You can switch toolbars by right-clicking the icon from status bar: it proposes 'Anim' only while the current image has 1 layer (see Button_toggle_toolbar()). The animation-specific stuff (rendering...) isn't activated yet, see all the NOLAYERS places remaining. Also will need a trick for keyboard shortcuts to work on multiple buttons, and extra code on swap-to-spare, undo, redo, load etc. to sync toolbars with Image_type.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1909 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
18
src/struct.h
18
src/struct.h
@@ -533,24 +533,6 @@ typedef struct {
|
||||
|
||||
} T_Paintbrush;
|
||||
|
||||
// A menubar.
|
||||
typedef struct {
|
||||
word Width;
|
||||
word Height;
|
||||
byte Visible;
|
||||
word Top; ///< Relative to the top line of the menu, hidden bars don't count.
|
||||
byte* Skin[3]; ///< [0] has normal buttons, [1] has selected buttons, [2] is current.
|
||||
word Skin_width;
|
||||
byte Last_button_index;
|
||||
} T_Menu_Bar;
|
||||
|
||||
typedef enum {
|
||||
MENUBAR_STATUS = 0, // MUST be 0
|
||||
MENUBAR_LAYERS,
|
||||
MENUBAR_TOOLS,
|
||||
MENUBAR_COUNT
|
||||
} T_Menubars;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int Previous;
|
||||
|
||||
Reference in New Issue
Block a user