WIP: "Load" button in Palette Dialog

see http://pulkomandy.tk/projects/GrafX2/ticket/24

still some issues :

1) UI color remapping

2) File type selector (need to add a Palette selector
in addition to the Main and Brush selector)
This commit is contained in:
Thomas Bernard
2017-12-20 14:59:09 +01:00
parent ccf3e6a77f
commit 2d26bb8a1f
3 changed files with 21 additions and 1 deletions

View File

@@ -1436,6 +1436,8 @@ byte Button_Load_or_Save(T_Selector_settings *settings, byte load, T_IO_Context
{
if (context->Type == CONTEXT_MAIN_IMAGE)
Open_window(310,200,"Load picture");
else if (context->Type == CONTEXT_PALETTE)
Open_window(310,200,"Load palette");
else
Open_window(310,200,"Load brush");
Window_set_normal_button(198,180,51,14,"Load",0,1,SDLK_RETURN); // 1