Fix translation for options
This commit is contained in:
@@ -7,13 +7,13 @@
|
||||
<str id="optionsTree.controls-name">Controls</str>
|
||||
<str id="optionsTree.controls-desc">Change Controls for Player 1 and Player 2!</str>
|
||||
|
||||
<str id="optionsTree.gameplay-name">Gameplay ></str>
|
||||
<str id="optionsTree.gameplay-name">Gameplay</str>
|
||||
<str id="optionsTree.gameplay-desc">Change Gameplay options such as Downscroll, Scroll Speed, Naughtyness...</str>
|
||||
|
||||
<str id="optionsTree.appearance-name">Appearance ></str>
|
||||
<str id="optionsTree.appearance-name">Appearance</str>
|
||||
<str id="optionsTree.appearance-desc">Change Appearance options such as Flashing menus...</str>
|
||||
|
||||
<str id="optionsTree.miscellaneous-name">Miscellaneous ></str>
|
||||
<str id="optionsTree.miscellaneous-name">Miscellaneous</str>
|
||||
<str id="optionsTree.miscellaneous-desc">Use this menu to reset save data or engine settings.</str>
|
||||
|
||||
<!-- cant have debug here -->
|
||||
|
||||
@@ -18,16 +18,19 @@ class OptionsMenu extends TreeMenu {
|
||||
{
|
||||
name: 'optionsTree.gameplay-name',
|
||||
desc: 'optionsTree.gameplay-desc',
|
||||
suffix: " >",
|
||||
state: GameplayOptions
|
||||
},
|
||||
{
|
||||
name: 'optionsTree.appearance-name',
|
||||
desc: 'optionsTree.appearance-desc',
|
||||
suffix: " >",
|
||||
state: AppearanceOptions
|
||||
},
|
||||
{
|
||||
name: 'optionsTree.miscellaneous-name',
|
||||
desc: 'optionsTree.miscellaneous-desc',
|
||||
suffix: " >",
|
||||
state: MiscOptions
|
||||
}
|
||||
];
|
||||
@@ -53,7 +56,9 @@ class OptionsMenu extends TreeMenu {
|
||||
var desc = o.desc;
|
||||
if(TU.exists(name)) name = TU.translate(name);
|
||||
if(TU.exists(desc)) desc = TU.translate(desc);
|
||||
new TextOption(name, desc, function() {
|
||||
var visualName = name;
|
||||
if (o.suffix != null) visualName += o.suffix;
|
||||
new TextOption(visualName, desc, function() {
|
||||
if (o.substate != null) {
|
||||
persistentUpdate = false;
|
||||
persistentDraw = true;
|
||||
|
||||
@@ -114,6 +114,7 @@ typedef OptionCategory = {
|
||||
var desc:String;
|
||||
var state:OneOfTwo<OptionsScreen, Class<OptionsScreen>>;
|
||||
var ?substate:OneOfTwo<MusicBeatSubstate, Class<MusicBeatSubstate>>;
|
||||
var ?suffix:String;
|
||||
}
|
||||
|
||||
typedef OptionTypeDef = {
|
||||
|
||||
Reference in New Issue
Block a user