Tweaked wording, and shortened duration, of debug command notifications
This commit is contained in:
parent
c70df4f8a7
commit
c723ca4a48
1 changed files with 13 additions and 13 deletions
|
@ -393,7 +393,7 @@ namespace
|
|||
utils::string_map symbols;
|
||||
symbols["player"] = resources::controller->current_team().current_player();
|
||||
display::announce_options announce_options;
|
||||
announce_options.lifetime = 1000;
|
||||
announce_options.lifetime = 250;
|
||||
display::get_singleton()->announce(vgettext(message, symbols), font::NORMAL_COLOR, announce_options);
|
||||
}
|
||||
}
|
||||
|
@ -402,7 +402,7 @@ SYNCED_COMMAND_HANDLER_FUNCTION(debug_unit, child, use_undo, /*show*/, /*error_
|
|||
if(use_undo) {
|
||||
resources::undo_stack->clear();
|
||||
}
|
||||
debug_notification(":unit debug command was used during turn of $player");
|
||||
debug_notification(":unit debug command was used during $player's turn");
|
||||
map_location loc(child);
|
||||
const std::string name = child["name"];
|
||||
const std::string value = child["value"];
|
||||
|
@ -467,7 +467,7 @@ SYNCED_COMMAND_HANDLER_FUNCTION(debug_create_unit, child, use_undo, /*show*/, e
|
|||
resources::undo_stack->clear();
|
||||
}
|
||||
|
||||
debug_notification("A unit was created using debug command during turn of $player");
|
||||
debug_notification("A unit was created using debug command during $player's turn");
|
||||
map_location loc(child);
|
||||
resources::whiteboard->on_kill_unit();
|
||||
const unit_race::GENDER gender = string_gender(child["gender"], unit_race::NUM_GENDERS);
|
||||
|
@ -513,7 +513,7 @@ SYNCED_COMMAND_HANDLER_FUNCTION(debug_lua, child, use_undo, /*show*/, /*error_ha
|
|||
if(use_undo) {
|
||||
resources::undo_stack->clear();
|
||||
}
|
||||
debug_notification(":lua debug command was used during turn of $player");
|
||||
debug_notification(":lua debug command was used during $player's turn");
|
||||
resources::lua_kernel->run(child["code"].str().c_str());
|
||||
resources::controller->pump().flush_messages();
|
||||
|
||||
|
@ -525,7 +525,7 @@ SYNCED_COMMAND_HANDLER_FUNCTION(debug_kill, child, use_undo, /*show*/, /*error_h
|
|||
if (use_undo) {
|
||||
resources::undo_stack->clear();
|
||||
}
|
||||
debug_notification("kill debug command was used during turn of $player");
|
||||
debug_notification("kill debug command was used during $player's turn");
|
||||
|
||||
const map_location loc(child["x"].to_int(), child["y"].to_int(), wml_loc());
|
||||
const unit_map::iterator i = resources::gameboard->units().find(loc);
|
||||
|
@ -555,7 +555,7 @@ SYNCED_COMMAND_HANDLER_FUNCTION(debug_next_level, child, use_undo, /*show*/, /*e
|
|||
resources::undo_stack->clear();
|
||||
}
|
||||
|
||||
debug_notification(":next_level debug command was used during turn of $player");
|
||||
debug_notification(":next_level debug command was used during $player's turn");
|
||||
|
||||
std::string next_level = child["next_level"];
|
||||
if (!next_level.empty())
|
||||
|
@ -579,7 +579,7 @@ SYNCED_COMMAND_HANDLER_FUNCTION(debug_turn_limit, child, use_undo, /*show*/, /*e
|
|||
resources::undo_stack->clear();
|
||||
}
|
||||
|
||||
debug_notification(":turn_limit debug command was used during turn of $player");
|
||||
debug_notification(":turn_limit debug command was used during $player's turn");
|
||||
|
||||
resources::tod_manager->set_number_of_turns(child["turn_limit"].to_int(-1));
|
||||
display::get_singleton()->redraw_everything();
|
||||
|
@ -592,7 +592,7 @@ SYNCED_COMMAND_HANDLER_FUNCTION(debug_turn, child, use_undo, /*show*/, /*error_h
|
|||
resources::undo_stack->clear();
|
||||
}
|
||||
|
||||
debug_notification(":turn debug command was used during turn of $player");
|
||||
debug_notification(":turn debug command was used during $player's turn");
|
||||
|
||||
resources::tod_manager->set_turn(child["turn"].to_int(1), resources::gamedata);
|
||||
|
||||
|
@ -608,7 +608,7 @@ SYNCED_COMMAND_HANDLER_FUNCTION(debug_set_var, child, use_undo, /*show*/, /*erro
|
|||
resources::undo_stack->clear();
|
||||
}
|
||||
|
||||
debug_notification(":set_var debug command was used during turn of $player");
|
||||
debug_notification(":set_var debug command was used during $player's turn");
|
||||
|
||||
try {
|
||||
resources::gamedata->set_variable(child["name"],child["value"]);
|
||||
|
@ -626,7 +626,7 @@ SYNCED_COMMAND_HANDLER_FUNCTION(debug_gold, child, use_undo, /*show*/, /*error_h
|
|||
resources::undo_stack->clear();
|
||||
}
|
||||
|
||||
debug_notification(":gold debug command was used during turn of $player");
|
||||
debug_notification(":gold debug command was used during $player's turn");
|
||||
|
||||
resources::controller->current_team().spend_gold(-child["gold"].to_int(0));
|
||||
display::get_singleton()->redraw_everything();
|
||||
|
@ -640,7 +640,7 @@ SYNCED_COMMAND_HANDLER_FUNCTION(debug_event, child, use_undo, /*show*/, /*error_
|
|||
resources::undo_stack->clear();
|
||||
}
|
||||
|
||||
debug_notification(":throw debug command was used during turn of $player");
|
||||
debug_notification(":throw debug command was used during $player's turn");
|
||||
|
||||
resources::controller->pump().fire(child["eventname"]);
|
||||
display::get_singleton()->redraw_everything();
|
||||
|
@ -655,7 +655,7 @@ SYNCED_COMMAND_HANDLER_FUNCTION(debug_fog, /*child*/, use_undo, /*show*/, /*erro
|
|||
resources::undo_stack->clear();
|
||||
}
|
||||
|
||||
debug_notification(":fog debug command was used during turn of $player");
|
||||
debug_notification(":fog debug command was used during $player's turn");
|
||||
|
||||
team& current_team = resources::controller->current_team();
|
||||
current_team.set_fog(!current_team.uses_fog());
|
||||
|
@ -674,7 +674,7 @@ SYNCED_COMMAND_HANDLER_FUNCTION(debug_shroud, /*child*/, use_undo, /*show*/, /*e
|
|||
resources::undo_stack->clear();
|
||||
}
|
||||
|
||||
debug_notification(":shroud debug command was used during turn of $player");
|
||||
debug_notification(":shroud debug command was used during $player's turn");
|
||||
|
||||
team& current_team = resources::controller->current_team();
|
||||
current_team.set_shroud(!current_team.uses_shroud());
|
||||
|
|
Loading…
Add table
Reference in a new issue