Skip to content

Commit

Permalink
ui: dont repeat mission speech after closing briefing window
Browse files Browse the repository at this point in the history
  • Loading branch information
dalerank committed Mar 3, 2025
1 parent f8092a8 commit abf2f8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/scripts/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,6 @@ window mission_briefing_window = {
subtitle : text({pos:[32, 78], font : FONT_NORMAL_BLACK_ON_LIGHT }),
objectives_panel : inner_panel({pos:[32, 96], size: {w:36, h:6} }),
objectives_label : label({text : {group:62, id:10}, pos : {x:48, y:104}, font : FONT_NORMAL_WHITE_ON_DARK }),
tocity_label : label({text : {group:62, id:7}, pos : {x:416, y:433}, font : FONT_NORMAL_BLACK_ON_LIGHT }),

goal_0 : label({pos:[32 + 16, 90 + 32], body : {w:15, h:1}, font : FONT_NORMAL_YELLOW, enabled: false }),
goal_1 : label({pos:[288 + 16, 90 + 32], body : {w:15, h:1}, font : FONT_NORMAL_YELLOW, enabled: false }),
Expand All @@ -666,7 +665,8 @@ window mission_briefing_window = {
dec_difficulty : image_button({pos:[65, 428], size:[17, 17], pack:PACK_GENERAL, id:212, offset:0 }),
inc_difficulty : image_button({pos:[65 + 18, 428], size:[17, 17], pack:PACK_GENERAL, id:212, offset:3 }),

start_mission : next_button({pos:[516, 430]}),
tocity_label : label({text : {group:62, id:7}, margin:{right:-140, bottom:0}, font : FONT_NORMAL_BLACK_ON_LIGHT }),
start_mission : next_button({ margin:{right:-40, bottom:-3} }),
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/window/window_mission_briefing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ void ui::mission_briefing_window::init() {
});

ui["start_mission"].onclick([this] {
g_sound.speech_stop();
g_sound.music_update(/*force*/true);

if (!is_review) {
GamestateIO::load_mission(scenario_id, true);
}

g_sound.speech_stop();
g_sound.music_update(/*force*/true);
window_city_show();
city_mission_reset_save_start();
});
Expand Down

0 comments on commit abf2f8d

Please sign in to comment.