mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-04 08:46:19 +00:00
replay: Set 'skip animation' button when pressing its hotkey
This commit is contained in:
parent
50c9b526a7
commit
3b13fd0fc3
@ -1263,3 +1263,12 @@ void play_controller::show_objectives() const
|
||||
gui2::show_transient_message(gui_->video(), get_scenario_name(), (objectives.empty() ? no_objectives : objectives), "", true);
|
||||
t.reset_objectives_changed();
|
||||
}
|
||||
|
||||
void play_controller::toggle_skipping_replay()
|
||||
{
|
||||
skip_replay_ = !skip_replay_;
|
||||
const std::shared_ptr<gui::button> skip_animation_button = get_display().find_action_button("skip-animation");
|
||||
if (skip_animation_button) {
|
||||
skip_animation_button->set_check(skip_replay_);
|
||||
}
|
||||
}
|
||||
|
@ -186,7 +186,7 @@ public:
|
||||
config to_config() const;
|
||||
|
||||
bool is_skipping_replay() const { return skip_replay_; }
|
||||
void toggle_skipping_replay() { skip_replay_ = !skip_replay_; }
|
||||
void toggle_skipping_replay();
|
||||
bool is_linger_mode() const { return linger_; }
|
||||
void do_autosave();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user