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:
Yves Rizoud
2012-02-27 23:19:23 +00:00
parent 2343dcb54c
commit db50b4ebdc
14 changed files with 223 additions and 202 deletions

View File

@@ -36,6 +36,8 @@
#include "setup.h"
#include "realpath.h"
#include "io.h"
#include "windows.h"
void Load_INI_clear_string(char * str, byte keep_comments)
{
@@ -898,12 +900,13 @@ int Load_INI(T_Config * conf)
// Optional, Menu bars visibility (> 2.1)
if (!Load_INI_get_values (file, buffer,"Menubars_visible",1,values))
{
int index;
for (index=MENUBAR_STATUS+1; index<MENUBAR_COUNT;index++)
{
// Note that I skip the status bar, always enabled.
Menu_bars[index].Visible = (values[0] & (1<<index)) ? 1 : 0;
}
byte anim_visible = (values[0] & 2)!=0;
byte tools_visible = (values[0] & 4)!=0;
// Skip status bar, always enabled.
Menu_bars[MENUBAR_LAYERS].Visible = anim_visible;
Menu_bars[MENUBAR_ANIMATION].Visible = 0;
Menu_bars[MENUBAR_TOOLS].Visible = tools_visible;
}
conf->Right_click_colorpick=0;