mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-03 02:03:16 +00:00
Bring back the "beg button" in the tiny gui mode
This commit is contained in:
parent
491f9bd942
commit
cfaf73bf6a
@ -305,11 +305,9 @@ TITLE_RESULT show_title(display& screen, config& tips_of_day, int* ntip)
|
||||
|
||||
gui::button next_tip_button(screen.video(),_("More"),button::TYPE_PRESS,"lite_small");
|
||||
gui::button help_tip_button(screen.video(),_("Help"),button::TYPE_PRESS,"lite_small");
|
||||
#ifndef USE_TINY_GUI
|
||||
// FIXME: Translatable string is here because we WILL put text in before 1.2!
|
||||
gui::button beg_button(screen.video(),("Help Wesnoth"),button::TYPE_IMAGE,"menu-button",button::MINIMUM_SPACE);
|
||||
beg_button.set_help_string(_("Help Wesnoth by sending us information"));
|
||||
#endif
|
||||
|
||||
if(tips_of_day.empty()) {
|
||||
tips_of_day = get_tips_of_day();
|
||||
@ -320,11 +318,9 @@ TITLE_RESULT show_title(display& screen, config& tips_of_day, int* ntip)
|
||||
|
||||
draw_tip_of_day(screen, tips_of_day, ntip, style, &next_tip_button, &help_tip_button, &main_dialog_area, tip_of_day_restorer);
|
||||
|
||||
#ifndef USE_TINY_GUI
|
||||
const int pad = game_config::title_tip_padding;
|
||||
beg_button.set_location(screen.x() - pad - beg_button.location().w,
|
||||
screen.y() - pad - beg_button.location().h);
|
||||
#endif
|
||||
events::raise_draw_event();
|
||||
|
||||
LOG_DP << "drew buttons dialog\n";
|
||||
@ -355,11 +351,9 @@ TITLE_RESULT show_title(display& screen, config& tips_of_day, int* ntip)
|
||||
if(help_tip_button.pressed()) {
|
||||
return SHOW_HELP;
|
||||
}
|
||||
#ifndef USE_TINY_GUI
|
||||
if(beg_button.pressed()) {
|
||||
return BEG_FOR_UPLOAD;
|
||||
}
|
||||
#endif
|
||||
|
||||
events::raise_process_event();
|
||||
events::raise_draw_event();
|
||||
|
Loading…
x
Reference in New Issue
Block a user