New: Alpha drawing mode, in 'Translucency'. Drawing AA Text automatically activates it. Fixed a problem in non-AA text that made it pick wrong colors if the current skin wasn't using white and black.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1512 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -553,6 +553,9 @@ void Button_Colorize_mode(void)
|
||||
break;
|
||||
case 2 :
|
||||
Effect_function=Effect_substractive_colorize;
|
||||
break;
|
||||
case 3 :
|
||||
Effect_function=Effect_alpha_colorize;
|
||||
}
|
||||
Shade_mode=0;
|
||||
Quick_shade_mode=0;
|
||||
@@ -588,6 +591,9 @@ void Button_Colorize_display_selection(int mode)
|
||||
break;
|
||||
case 2 : // Méthode soustractive
|
||||
y_pos=74;
|
||||
break;
|
||||
case 3 : // Méthode alpha
|
||||
y_pos=91;
|
||||
}
|
||||
Print_in_window(4,y_pos,"\020",MC_Black,MC_Light);
|
||||
Print_in_window(129,y_pos,"\021",MC_Black,MC_Light);
|
||||
@@ -600,7 +606,7 @@ void Button_Colorize_menu(void)
|
||||
short clicked_button;
|
||||
char str[4];
|
||||
|
||||
Open_window(140,118,"Transparency");
|
||||
Open_window(140,135,"Transparency");
|
||||
|
||||
Print_in_window(16,23,"Opacity:",MC_Dark,MC_Light);
|
||||
Window_set_input_button(87,21,3); // 1
|
||||
@@ -610,9 +616,10 @@ void Button_Colorize_menu(void)
|
||||
|
||||
Window_set_normal_button(16,54,108,14,"Additive" ,2,1,SDLK_d); // 3
|
||||
Window_set_normal_button(16,71,108,14,"Subtractive",1,1,SDLK_s); // 4
|
||||
Window_set_normal_button(16,88,108,14,"Alpha",1,1,SDLK_a); // 4
|
||||
|
||||
Window_set_normal_button(16,94, 51,14,"Cancel" ,0,1,KEY_ESC); // 5
|
||||
Window_set_normal_button(73,94, 51,14,"OK" ,0,1,SDLK_RETURN); // 6
|
||||
Window_set_normal_button(16,111, 51,14,"Cancel" ,0,1,KEY_ESC); // 5
|
||||
Window_set_normal_button(73,111, 51,14,"OK" ,0,1,SDLK_RETURN); // 6
|
||||
|
||||
Num2str(Colorize_opacity,str,3);
|
||||
Window_input_content(Window_special_button_list,str);
|
||||
@@ -643,9 +650,10 @@ void Button_Colorize_menu(void)
|
||||
}
|
||||
Display_cursor();
|
||||
break;
|
||||
case 2: // Méthode interpolée
|
||||
case 3: // Méthode additive
|
||||
case 4: // Méthode soustractive
|
||||
case 2: // Interpolated method
|
||||
case 3: // Additive method
|
||||
case 4: // Substractive method
|
||||
case 5: // Alpha method
|
||||
selected_mode=clicked_button-2;
|
||||
Hide_cursor();
|
||||
Button_Colorize_display_selection(selected_mode);
|
||||
@@ -654,13 +662,13 @@ void Button_Colorize_menu(void)
|
||||
if (Is_shortcut(Key,0x100+BUTTON_HELP))
|
||||
Window_help(BUTTON_EFFECTS, "TRANSPARENCY");
|
||||
else if (Is_shortcut(Key,SPECIAL_COLORIZE_MENU))
|
||||
clicked_button=6;
|
||||
clicked_button=7;
|
||||
}
|
||||
while (clicked_button<5);
|
||||
while (clicked_button<6);
|
||||
|
||||
Close_window();
|
||||
|
||||
if (clicked_button==6) // OK
|
||||
if (clicked_button==7) // OK
|
||||
{
|
||||
Colorize_opacity =chosen_opacity;
|
||||
Colorize_current_mode=selected_mode;
|
||||
|
||||
Reference in New Issue
Block a user