Restore 54% transparency on title screen, use 70% on dialogs.
|
@ -3,5 +3,16 @@ images is named by the part before the first dash, which is a style
|
|||
referenced by name in the Wesnoth UI code.
|
||||
|
||||
The 'transparent' images have some alpha transparency; they look like
|
||||
smoked-glass overlays on the terrain or whatever else is underneath them.
|
||||
The 'opaque' images are geometrically the same, but opaque.
|
||||
smoked-glass overlays on the terrain or whatever else is underneath
|
||||
them. Each transparent style has a suffix which is its opacity
|
||||
percentage (100-alpha). The 'opaque' images are geometrically the
|
||||
same, but opaque. They could be called 'translucent100', but aren't
|
||||
for reasons that are basically historical.
|
||||
|
||||
Note that the translucent and opaque styles differ only in the background
|
||||
images, sharing borders. This uses a little more space but simplifies
|
||||
the code.
|
||||
|
||||
The directory also contains some background images of different opacity
|
||||
levels, just so they're handy for tuning. They cost less than 0.5K each
|
||||
to keep around.
|
||||
|
|
Before Width: | Height: | Size: 197 B After Width: | Height: | Size: 197 B |
Before Width: | Height: | Size: 197 B After Width: | Height: | Size: 197 B |
Before Width: | Height: | Size: 204 B After Width: | Height: | Size: 204 B |
Before Width: | Height: | Size: 432 B After Width: | Height: | Size: 432 B |
Before Width: | Height: | Size: 461 B After Width: | Height: | Size: 461 B |
Before Width: | Height: | Size: 412 B After Width: | Height: | Size: 412 B |
Before Width: | Height: | Size: 339 B After Width: | Height: | Size: 339 B |
Before Width: | Height: | Size: 199 B After Width: | Height: | Size: 199 B |
Before Width: | Height: | Size: 188 B After Width: | Height: | Size: 188 B |
BIN
images/dialogs/translucent70-background.png
Normal file
After Width: | Height: | Size: 219 B |
BIN
images/dialogs/translucent70-border-botleft.png
Normal file
After Width: | Height: | Size: 197 B |
BIN
images/dialogs/translucent70-border-botright.png
Normal file
After Width: | Height: | Size: 204 B |
BIN
images/dialogs/translucent70-border-bottom.png
Normal file
After Width: | Height: | Size: 432 B |
BIN
images/dialogs/translucent70-border-left.png
Normal file
After Width: | Height: | Size: 461 B |
BIN
images/dialogs/translucent70-border-right.png
Normal file
After Width: | Height: | Size: 412 B |
BIN
images/dialogs/translucent70-border-top.png
Normal file
After Width: | Height: | Size: 339 B |
BIN
images/dialogs/translucent70-border-topleft.png
Normal file
After Width: | Height: | Size: 199 B |
BIN
images/dialogs/translucent70-border-topright.png
Normal file
After Width: | Height: | Size: 188 B |
|
@ -276,7 +276,7 @@ class message_dialog : public gui::dialog
|
|||
{
|
||||
public:
|
||||
message_dialog(display &disp, const std::string& title="", const std::string& message="", const gui::DIALOG_TYPE type=gui::MESSAGE)
|
||||
: dialog(disp, title, message, type, "translucent"), prevent_misclick_until_(0)
|
||||
: dialog(disp, title, message, type, "translucent70"), prevent_misclick_until_(0)
|
||||
{}
|
||||
~message_dialog();
|
||||
int show(msecs minimum_lifetime = three_blinks);
|
||||
|
|
|
@ -296,7 +296,7 @@ TITLE_RESULT show_title(display& screen, config& tips_of_day, int* ntip)
|
|||
|
||||
SDL_Rect main_dialog_area = {menu_xbase-padding,menu_ybase-padding,max_width+padding*2,menu_yincr*(nbuttons-1)+buttons.back().height()+padding*2};
|
||||
|
||||
const std::string style = "opaque";
|
||||
const std::string style = "translucent54";
|
||||
gui::dialog_frame main_frame(screen.video(), "", &style);
|
||||
main_frame.layout(main_dialog_area);
|
||||
main_frame.draw_background();
|
||||
|
|