void replay_controller::replay_ui_playback_should_start() { if(!replay_ui_has_all_buttons()) return; play_button()->enable(false); reset_button()->enable(false); play_turn_button()->enable(false); play_side_button()->enable(false); }
void replay_controller::reset_replay_ui() { if(!replay_ui_has_all_buttons()) return; play_button()->enable(true); stop_button()->enable(true); reset_button()->enable(true); play_turn_button()->enable(true); play_side_button()->enable(true); }
void replay_controller::replay_ui_playback_should_stop() { if(!replay_ui_has_all_buttons()) return; if(!recorder.at_end()) { play_button()->enable(true); reset_button()->enable(true); play_turn_button()->enable(true); play_side_button()->enable(true); play_button()->release(); play_turn_button()->release(); play_side_button()->release(); } else { reset_button()->enable(true); stop_button()->enable(false); } if(!is_playing_) { //user interrupted stop_button()->release(); } }