making the campaign preview pane style look closer...

...to the specification of wiki/GUI
This commit is contained in:
Patrick Parker 2007-10-06 02:45:52 +00:00
parent c0535167cf
commit 21591983d1
4 changed files with 7 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 B

View file

@ -847,7 +847,7 @@ void campaign_preview_pane::draw_contents()
location().h-campaign_preview_border*6 };
/* background frame */
gui::dialog_frame f(video(), "", gui::dialog_frame::message_style, false);
gui::dialog_frame f(video(), "", gui::dialog_frame::preview_style, false);
f.layout(area);
f.draw_background();
f.draw_border();

View file

@ -61,6 +61,7 @@ const int ButtonVPadding = 10;
//note: style names are directly related to the panel image file names
const dialog_frame::style dialog_frame::default_style("opaque", 0);
const dialog_frame::style dialog_frame::message_style("translucent65", 3);
const dialog_frame::style dialog_frame::preview_style("../misc/selection", 0);
const dialog_frame::style dialog_frame::titlescreen_style("translucent54", 0);
const int dialog_frame::title_border_w = 10;
@ -252,10 +253,10 @@ void dialog_frame::draw_border()
return;
}
video_.blit_surface(dim_.interior.x - top_left_->w, dim_.interior.y - top_left_->h, top_left_);
video_.blit_surface(dim_.interior.x - bot_left_->w, dim_.interior.y + dim_.interior.h, bot_left_);
video_.blit_surface(dim_.interior.x + dim_.interior.w, dim_.interior.y - top_right_->h, top_right_);
video_.blit_surface(dim_.interior.x + dim_.interior.w, dim_.interior.y + dim_.interior.h, bot_right_);
video_.blit_surface(dim_.interior.x - left_->w, dim_.interior.y - top_->h, top_left_);
video_.blit_surface(dim_.interior.x - left_->w, dim_.interior.y + dim_.interior.h + bot_->h - bot_left_->h, bot_left_);
video_.blit_surface(dim_.interior.x + dim_.interior.w + right_->w - top_right_->w, dim_.interior.y - top_->h, top_right_);
video_.blit_surface(dim_.interior.x + dim_.interior.w + right_->w - bot_right_->w, dim_.interior.y + dim_.interior.h + bot_->h - bot_right_->h, bot_right_);
}
void dialog_frame::clear_background()

View file

@ -74,6 +74,7 @@ public:
static const int title_border_w, title_border_h;
static const style default_style;
static const style message_style;
static const style preview_style;
static const style titlescreen_style;
dialog_frame(CVideo &video, const std::string& title="",