Remove unused localization options from settings.yaml.
This commit is contained in:
committed by
Matthias Mailänder
parent
e138afc328
commit
70f899c8d1
@@ -221,9 +221,12 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
BindIntSliderPref(panel, "FRAME_LIMIT_SLIDER", ds, "MaxFramerate");
|
BindIntSliderPref(panel, "FRAME_LIMIT_SLIDER", ds, "MaxFramerate");
|
||||||
BindCheckboxPref(panel, "PLAYER_STANCE_COLORS_CHECKBOX", gs, "UsePlayerStanceColors");
|
BindCheckboxPref(panel, "PLAYER_STANCE_COLORS_CHECKBOX", gs, "UsePlayerStanceColors");
|
||||||
|
|
||||||
var languageDropDownButton = panel.Get<DropDownButtonWidget>("LANGUAGE_DROPDOWNBUTTON");
|
var languageDropDownButton = panel.GetOrNull<DropDownButtonWidget>("LANGUAGE_DROPDOWNBUTTON");
|
||||||
languageDropDownButton.OnMouseDown = _ => ShowLanguageDropdown(languageDropDownButton, modData.Languages);
|
if (languageDropDownButton != null)
|
||||||
languageDropDownButton.GetText = () => FieldLoader.Translate(ds.Language);
|
{
|
||||||
|
languageDropDownButton.OnMouseDown = _ => ShowLanguageDropdown(languageDropDownButton, modData.Languages);
|
||||||
|
languageDropDownButton.GetText = () => FieldLoader.Translate(ds.Language);
|
||||||
|
}
|
||||||
|
|
||||||
var windowModeDropdown = panel.Get<DropDownButtonWidget>("MODE_DROPDOWN");
|
var windowModeDropdown = panel.Get<DropDownButtonWidget>("MODE_DROPDOWN");
|
||||||
windowModeDropdown.OnMouseDown = _ => ShowWindowModeDropdown(windowModeDropdown, ds);
|
windowModeDropdown.OnMouseDown = _ => ShowWindowModeDropdown(windowModeDropdown, ds);
|
||||||
|
|||||||
@@ -234,44 +234,6 @@ Container@SETTINGS_PANEL:
|
|||||||
Width: 170
|
Width: 170
|
||||||
Height: 25
|
Height: 25
|
||||||
Font: Regular
|
Font: Regular
|
||||||
Label@LOCALIZATION_TITLE:
|
|
||||||
Y: 265
|
|
||||||
Width: PARENT_RIGHT
|
|
||||||
Font: Bold
|
|
||||||
Text: Localization
|
|
||||||
Align: Center
|
|
||||||
Visible: false
|
|
||||||
Label@LANGUAGE_LABEL:
|
|
||||||
X: 230 - WIDTH - 5
|
|
||||||
Y: 284
|
|
||||||
Width: 75
|
|
||||||
Height: 25
|
|
||||||
Align: Right
|
|
||||||
Text: Language:
|
|
||||||
Visible: false
|
|
||||||
DropDownButton@LANGUAGE_DROPDOWNBUTTON:
|
|
||||||
X: 230
|
|
||||||
Y: 285
|
|
||||||
Width: 200
|
|
||||||
Height: 25
|
|
||||||
Font: Regular
|
|
||||||
Visible: false
|
|
||||||
Label@LANGUAGE_DESC_A:
|
|
||||||
Y: 310
|
|
||||||
Width: PARENT_RIGHT
|
|
||||||
Height: 25
|
|
||||||
Font: Tiny
|
|
||||||
Align: Center
|
|
||||||
Text: Language changes will be applied after the game is restarted
|
|
||||||
Visible: false
|
|
||||||
Label@LANGUAGE_DESC_B:
|
|
||||||
Y: 325
|
|
||||||
Width: PARENT_RIGHT
|
|
||||||
Height: 25
|
|
||||||
Font: Tiny
|
|
||||||
Align: Center
|
|
||||||
Text: Translations apply to text strings only; Speech and build icons will remain in English
|
|
||||||
Visible: false
|
|
||||||
Container@AUDIO_PANEL:
|
Container@AUDIO_PANEL:
|
||||||
Width: PARENT_RIGHT
|
Width: PARENT_RIGHT
|
||||||
Height: PARENT_BOTTOM
|
Height: PARENT_BOTTOM
|
||||||
|
|||||||
@@ -249,43 +249,6 @@ Background@SETTINGS_PANEL:
|
|||||||
Width: 180
|
Width: 180
|
||||||
Height: 25
|
Height: 25
|
||||||
Font: Regular
|
Font: Regular
|
||||||
Label@LOCALIZATION_TITLE:
|
|
||||||
Y: 270
|
|
||||||
Width: PARENT_RIGHT
|
|
||||||
Font: Bold
|
|
||||||
Text: Localization
|
|
||||||
Align: Center
|
|
||||||
Visible: false
|
|
||||||
Label@LANGUAGE_LABEL:
|
|
||||||
X: 230 - WIDTH - 5
|
|
||||||
Y: 289
|
|
||||||
Width: 75
|
|
||||||
Height: 25
|
|
||||||
Align: Right
|
|
||||||
Text: Language:
|
|
||||||
Visible: false
|
|
||||||
DropDownButton@LANGUAGE_DROPDOWNBUTTON:
|
|
||||||
X: 230
|
|
||||||
Y: 290
|
|
||||||
Width: 200
|
|
||||||
Height: 25
|
|
||||||
Visible: false
|
|
||||||
Label@LANGUAGE_DESC_A:
|
|
||||||
Y: 310
|
|
||||||
Width: PARENT_RIGHT
|
|
||||||
Height: 25
|
|
||||||
Font: Tiny
|
|
||||||
Align: Center
|
|
||||||
Text: Language changes will be applied after the game is restarted
|
|
||||||
Visible: false
|
|
||||||
Label@LANGUAGE_DESC_B:
|
|
||||||
Y: 325
|
|
||||||
Width: PARENT_RIGHT
|
|
||||||
Height: 25
|
|
||||||
Font: Tiny
|
|
||||||
Align: Center
|
|
||||||
Text: Translations apply to text strings only; Speech and build icons will remain in English
|
|
||||||
Visible: false
|
|
||||||
Container@AUDIO_PANEL:
|
Container@AUDIO_PANEL:
|
||||||
X: 5
|
X: 5
|
||||||
Y: 50
|
Y: 50
|
||||||
|
|||||||
Reference in New Issue
Block a user