rename 'preferences' to 'settings' in various internal cnc bits; UI strings were 'settings' already
This commit is contained in:
@@ -70,7 +70,7 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
menu.GetWidget<ButtonWidget>("PREFERENCES_BUTTON").OnClick = () =>
|
menu.GetWidget<ButtonWidget>("SETTINGS_BUTTON").OnClick = () =>
|
||||||
{
|
{
|
||||||
hideButtons = true;
|
hideButtons = true;
|
||||||
Widget.OpenWindow("SETTINGS_PANEL", new WidgetArgs()
|
Widget.OpenWindow("SETTINGS_PANEL", new WidgetArgs()
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
settingsMenu.GetWidget<ButtonWidget>("PREFERENCES_BUTTON").OnClick = () =>
|
settingsMenu.GetWidget<ButtonWidget>("SETTINGS_BUTTON").OnClick = () =>
|
||||||
{
|
{
|
||||||
Menu = MenuType.None;
|
Menu = MenuType.None;
|
||||||
Widget.OpenWindow("SETTINGS_PANEL", new WidgetArgs()
|
Widget.OpenWindow("SETTINGS_PANEL", new WidgetArgs()
|
||||||
|
|||||||
@@ -85,8 +85,8 @@ namespace OpenRA.Mods.RA.Widgets
|
|||||||
var rectBounds = RenderBounds;
|
var rectBounds = RenderBounds;
|
||||||
WidgetUtils.DrawRGBA(WidgetUtils.GetChromeImage(world, "specialbin-top"),new float2(rectBounds.X,rectBounds.Y));
|
WidgetUtils.DrawRGBA(WidgetUtils.GetChromeImage(world, "specialbin-top"),new float2(rectBounds.X,rectBounds.Y));
|
||||||
for (var i = 1; i < numPowers; i++)
|
for (var i = 1; i < numPowers; i++)
|
||||||
WidgetUtils.DrawRGBA(WidgetUtils.GetChromeImage(world,"specialbin-middle"), new float2(rectBounds.X, rectBounds.Y + i * 51));
|
WidgetUtils.DrawRGBA(WidgetUtils.GetChromeImage(world, "specialbin-middle"), new float2(rectBounds.X, rectBounds.Y + i * 51));
|
||||||
WidgetUtils.DrawRGBA(WidgetUtils.GetChromeImage(world,"specialbin-bottom"), new float2(rectBounds.X, rectBounds.Y + numPowers * 51));
|
WidgetUtils.DrawRGBA(WidgetUtils.GetChromeImage(world, "specialbin-bottom"), new float2(rectBounds.X, rectBounds.Y + numPowers * 51));
|
||||||
|
|
||||||
// Hack Hack Hack
|
// Hack Hack Hack
|
||||||
rectBounds.Width = 69;
|
rectBounds.Width = 69;
|
||||||
|
|||||||
@@ -50,8 +50,8 @@ Container@INGAME_MENU:
|
|||||||
Width:140
|
Width:140
|
||||||
Height:35
|
Height:35
|
||||||
Text:Music
|
Text:Music
|
||||||
Button@PREFERENCES_BUTTON:
|
Button@SETTINGS_BUTTON:
|
||||||
Id:PREFERENCES_BUTTON
|
Id:SETTINGS_BUTTON
|
||||||
X:450
|
X:450
|
||||||
Y:0
|
Y:0
|
||||||
Width:140
|
Width:140
|
||||||
|
|||||||
@@ -168,8 +168,8 @@ Container@MENU_BACKGROUND:
|
|||||||
Width:140
|
Width:140
|
||||||
Height:35
|
Height:35
|
||||||
Text:Music
|
Text:Music
|
||||||
Button@PREFERENCES_BUTTON:
|
Button@SETTINGS_BUTTON:
|
||||||
Id:PREFERENCES_BUTTON
|
Id:SETTINGS_BUTTON
|
||||||
X:300
|
X:300
|
||||||
Y:0
|
Y:0
|
||||||
Width:140
|
Width:140
|
||||||
@@ -207,4 +207,4 @@ Container@MENU_BACKGROUND:
|
|||||||
X:10
|
X:10
|
||||||
Y:10
|
Y:10
|
||||||
Width:200
|
Width:200
|
||||||
Height:200
|
Height:200
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ ChromeLayout:
|
|||||||
mods/cnc/chrome/ingamemenu.yaml
|
mods/cnc/chrome/ingamemenu.yaml
|
||||||
mods/cnc/chrome/music.yaml
|
mods/cnc/chrome/music.yaml
|
||||||
mods/cnc/chrome/modchooser.yaml
|
mods/cnc/chrome/modchooser.yaml
|
||||||
mods/cnc/chrome/preferences.yaml
|
mods/cnc/chrome/settings.yaml
|
||||||
mods/cnc/chrome/cheats.yaml
|
mods/cnc/chrome/cheats.yaml
|
||||||
mods/cnc/chrome/dialogs.yaml
|
mods/cnc/chrome/dialogs.yaml
|
||||||
mods/cnc/chrome/objectives.yaml
|
mods/cnc/chrome/objectives.yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user