Replace the [tutorial] tag with [scenario]
The title screen's "tutorial" button will use the tag name from game_classification, as would anything else that calls game_launcher::set_tutorial().
This commit is contained in:
parent
e718d1e472
commit
17940cb98f
4 changed files with 8 additions and 9 deletions
|
@ -1,6 +1,6 @@
|
|||
#textdomain wesnoth-tutorial
|
||||
|
||||
[tutorial]
|
||||
[scenario]
|
||||
id=tutorial
|
||||
# po: Hello, translators! The tutorial is meant to be a bit funny at the start,
|
||||
# po: welcoming new players. Please keep the friendly fun feeling!
|
||||
|
@ -1238,4 +1238,4 @@
|
|||
|
||||
{CLEAR_PRINT}
|
||||
[/event]
|
||||
[/tutorial]
|
||||
[/scenario]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#textdomain wesnoth-tutorial
|
||||
|
||||
[tutorial]
|
||||
[scenario]
|
||||
id=2_Tutorial
|
||||
name= _ "Wesnoth Tutorial — Part II"
|
||||
map_file=campaigns/tutorial/maps/02_Tutorial_part_2.map
|
||||
|
@ -1305,4 +1305,4 @@ Please report the bug."
|
|||
{CLEAR_VARIABLE low_hp_unit_message,lhpu_msg_i}
|
||||
{CLEAR_VARIABLE spoke_about_income,spoke_about_orcs_crossing_river}
|
||||
[/event]
|
||||
[/tutorial]
|
||||
[/scenario]
|
||||
|
|
|
@ -553,11 +553,6 @@
|
|||
super="scenario"
|
||||
{SIMPLE_KEY is_unit_test bool}
|
||||
[/tag]
|
||||
[tag]
|
||||
name="tutorial"
|
||||
max=infinite
|
||||
super="scenario"
|
||||
[/tag]
|
||||
[tag]
|
||||
name="multiplayer"
|
||||
max=infinite
|
||||
|
|
|
@ -80,6 +80,10 @@ std::string game_classification::get_tagname() const
|
|||
return this->campaign.empty() ? "multiplayer" : "scenario";
|
||||
}
|
||||
|
||||
if(this->campaign_type == CAMPAIGN_TYPE::TUTORIAL) {
|
||||
return "scenario";
|
||||
}
|
||||
|
||||
return this->campaign_type.to_string();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue