Show scenario objectives at the start of scenario
This commit is contained in:
parent
578da9904f
commit
28e1c483aa
2 changed files with 9 additions and 8 deletions
|
@ -3,14 +3,6 @@
|
|||
map=map-test
|
||||
turns=16
|
||||
|
||||
objectives="
|
||||
Victory:
|
||||
@Move Konrad to the signpost in the north-west
|
||||
Defeat:
|
||||
#Death of Konrad
|
||||
#Death of Delfador
|
||||
#Turns run out"
|
||||
|
||||
[side]
|
||||
type=Commander
|
||||
description=Konrad
|
||||
|
|
|
@ -132,6 +132,7 @@ LEVEL_RESULT play_level(game_data& gameinfo, config& terrain_config,
|
|||
if(first_time) {
|
||||
update_locker lock_display(gui,recorder.skipping());
|
||||
game_events::fire("start");
|
||||
gui.draw();
|
||||
}
|
||||
|
||||
gui.invalidate_game_status();
|
||||
|
@ -156,6 +157,14 @@ LEVEL_RESULT play_level(game_data& gameinfo, config& terrain_config,
|
|||
}
|
||||
|
||||
if(!replaying && team_it->is_human()) {
|
||||
|
||||
if(first_time && team_it == teams.begin() &&
|
||||
level->values["objectives"].empty() == false) {
|
||||
gui::show_dialog(gui,NULL,"",
|
||||
"+" + level->values["name"] + "\n" +
|
||||
level->values["objectives"]);
|
||||
}
|
||||
|
||||
play_turn(gameinfo,state_of_game,status,terrain_config,
|
||||
level, video, key, gui, events_manager, map,
|
||||
teams, player_number, units);
|
||||
|
|
Loading…
Add table
Reference in a new issue