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:
Steve Cotton 2019-11-03 21:22:07 +01:00 committed by Charles Dang
parent e718d1e472
commit 17940cb98f
4 changed files with 8 additions and 9 deletions

View file

@ -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]

View file

@ -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]

View file

@ -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

View file

@ -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();
}