Tweak the naming of dialog styles and add a README.

This commit is contained in:
Eric S. Raymond 2007-06-09 05:50:31 +00:00
parent 88a4990c54
commit 1b78536807
29 changed files with 16 additions and 9 deletions

7
images/dialogs/README Normal file
View file

@ -0,0 +1,7 @@
This directory contains the images used to assemble manus. Each group of
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.

View file

Before

Width:  |  Height:  |  Size: 151 B

After

Width:  |  Height:  |  Size: 151 B

View file

Before

Width:  |  Height:  |  Size: 117 B

After

Width:  |  Height:  |  Size: 117 B

View file

Before

Width:  |  Height:  |  Size: 116 B

After

Width:  |  Height:  |  Size: 116 B

View file

Before

Width:  |  Height:  |  Size: 167 B

After

Width:  |  Height:  |  Size: 167 B

View file

Before

Width:  |  Height:  |  Size: 134 B

After

Width:  |  Height:  |  Size: 134 B

View file

Before

Width:  |  Height:  |  Size: 137 B

After

Width:  |  Height:  |  Size: 137 B

View file

Before

Width:  |  Height:  |  Size: 166 B

After

Width:  |  Height:  |  Size: 166 B

View file

Before

Width:  |  Height:  |  Size: 118 B

After

Width:  |  Height:  |  Size: 118 B

View file

Before

Width:  |  Height:  |  Size: 117 B

After

Width:  |  Height:  |  Size: 117 B

View file

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View file

Before

Width:  |  Height:  |  Size: 191 B

After

Width:  |  Height:  |  Size: 191 B

View file

Before

Width:  |  Height:  |  Size: 203 B

After

Width:  |  Height:  |  Size: 203 B

View file

Before

Width:  |  Height:  |  Size: 436 B

After

Width:  |  Height:  |  Size: 436 B

View file

Before

Width:  |  Height:  |  Size: 416 B

After

Width:  |  Height:  |  Size: 416 B

View file

Before

Width:  |  Height:  |  Size: 405 B

After

Width:  |  Height:  |  Size: 405 B

View file

Before

Width:  |  Height:  |  Size: 283 B

After

Width:  |  Height:  |  Size: 283 B

View file

Before

Width:  |  Height:  |  Size: 164 B

After

Width:  |  Height:  |  Size: 164 B

View file

Before

Width:  |  Height:  |  Size: 191 B

After

Width:  |  Height:  |  Size: 191 B

View file

Before

Width:  |  Height:  |  Size: 197 B

After

Width:  |  Height:  |  Size: 197 B

View file

Before

Width:  |  Height:  |  Size: 197 B

After

Width:  |  Height:  |  Size: 197 B

View file

Before

Width:  |  Height:  |  Size: 204 B

After

Width:  |  Height:  |  Size: 204 B

View file

Before

Width:  |  Height:  |  Size: 432 B

After

Width:  |  Height:  |  Size: 432 B

View file

Before

Width:  |  Height:  |  Size: 461 B

After

Width:  |  Height:  |  Size: 461 B

View file

Before

Width:  |  Height:  |  Size: 412 B

After

Width:  |  Height:  |  Size: 412 B

View file

Before

Width:  |  Height:  |  Size: 339 B

After

Width:  |  Height:  |  Size: 339 B

View file

Before

Width:  |  Height:  |  Size: 199 B

After

Width:  |  Height:  |  Size: 199 B

View file

Before

Width:  |  Height:  |  Size: 188 B

After

Width:  |  Height:  |  Size: 188 B

View file

@ -91,15 +91,15 @@ dialog_frame::dialog_frame(CVideo &video, const std::string& title,
surface_restorer* restorer, button* help_button) : title_(title),
video_(video), dialog_style_(style ? style : &default_style),
buttons_(buttons), help_button_(help_button), restorer_(restorer),
top_(image::get_image("panels/" + *dialog_style_ + "-border-top.png",image::UNSCALED)),
bot_(image::get_image("panels/" + *dialog_style_ + "-border-bottom.png",image::UNSCALED)),
left_(image::get_image("panels/" + *dialog_style_ + "-border-left.png",image::UNSCALED)),
right_(image::get_image("panels/" + *dialog_style_ + "-border-right.png",image::UNSCALED)),
top_left_(image::get_image("panels/" + *dialog_style_ + "-border-topleft.png",image::UNSCALED)),
bot_left_(image::get_image("panels/" + *dialog_style_ + "-border-botleft.png",image::UNSCALED)),
top_right_(image::get_image("panels/" + *dialog_style_ + "-border-topright.png",image::UNSCALED)),
bot_right_(image::get_image("panels/" + *dialog_style_ + "-border-botright.png",image::UNSCALED)),
bg_(image::get_image("panels/" + *dialog_style_ + "-background.png",image::UNSCALED))
top_(image::get_image("dialogs/" + *dialog_style_ + "-border-top.png",image::UNSCALED)),
bot_(image::get_image("dialogs/" + *dialog_style_ + "-border-bottom.png",image::UNSCALED)),
left_(image::get_image("dialogs/" + *dialog_style_ + "-border-left.png",image::UNSCALED)),
right_(image::get_image("dialogs/" + *dialog_style_ + "-border-right.png",image::UNSCALED)),
top_left_(image::get_image("dialogs/" + *dialog_style_ + "-border-topleft.png",image::UNSCALED)),
bot_left_(image::get_image("dialogs/" + *dialog_style_ + "-border-botleft.png",image::UNSCALED)),
top_right_(image::get_image("dialogs/" + *dialog_style_ + "-border-topright.png",image::UNSCALED)),
bot_right_(image::get_image("dialogs/" + *dialog_style_ + "-border-botright.png",image::UNSCALED)),
bg_(image::get_image("dialogs/" + *dialog_style_ + "-background.png",image::UNSCALED))
{
have_border_ = top_ != NULL && bot_ != NULL && left_ != NULL && right_ != NULL;
}