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:
@@ -143,4 +143,25 @@ typedef struct
|
||||
|
||||
extern T_Toolbar_button Buttons_Pool[NB_BUTTONS];
|
||||
|
||||
// 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;
|
||||
|
||||
enum {
|
||||
MENUBAR_STATUS = 0, // MUST be 0
|
||||
MENUBAR_ANIMATION,
|
||||
MENUBAR_LAYERS,
|
||||
MENUBAR_TOOLS,
|
||||
MENUBAR_COUNT
|
||||
};
|
||||
|
||||
extern T_Menu_Bar Menu_bars[MENUBAR_COUNT];
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user