Rename widgets

This commit is contained in:
Oliver Brakmann
2014-09-05 20:08:46 +02:00
parent c61516c55e
commit bf9a63ff95
6 changed files with 19 additions and 19 deletions

View File

@@ -48,7 +48,7 @@ namespace OpenRA.Mods.D2k.Widgets.Logic
Action ShowLeaveRestartDialog = () => Action ShowLeaveRestartDialog = () =>
{ {
gameRoot.RemoveChildren(); gameRoot.RemoveChildren();
Game.LoadWidget(world, "LEAVE_RESTART_WIDGET", Ui.Root, new WidgetArgs()); Game.LoadWidget(world, "LEAVE_MAP_WIDGET", Ui.Root, new WidgetArgs());
}; };
world.GameOver += ShowLeaveRestartDialog; world.GameOver += ShowLeaveRestartDialog;
} }

View File

@@ -21,13 +21,13 @@ namespace OpenRA.Mods.RA.Widgets
{ {
widget.Get<LabelWidget>("VERSION_LABEL").Text = Game.modData.Manifest.Mod.Version; widget.Get<LabelWidget>("VERSION_LABEL").Text = Game.modData.Manifest.Mod.Version;
var panelName = "LEAVE_RESTART_SIMPLE"; var panelName = "LEAVE_MAP_SIMPLE";
var iop = world.WorldActor.TraitsImplementing<IObjectivesPanel>().FirstOrDefault(); var iop = world.WorldActor.TraitsImplementing<IObjectivesPanel>().FirstOrDefault();
var showObjectives = iop != null && iop.PanelName != null && world.LocalPlayer != null; var showObjectives = iop != null && iop.PanelName != null && world.LocalPlayer != null;
if (showObjectives) if (showObjectives)
panelName = "LEAVE_RESTART_FULL"; panelName = "LEAVE_MAP_FULL";
var showStats = false; var showStats = false;

View File

@@ -46,7 +46,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
Action ShowLeaveRestartDialog = () => Action ShowLeaveRestartDialog = () =>
{ {
ingameRoot.RemoveChildren(); ingameRoot.RemoveChildren();
Game.LoadWidget(world, "LEAVE_RESTART_WIDGET", Ui.Root, new WidgetArgs()); Game.LoadWidget(world, "LEAVE_MAP_WIDGET", Ui.Root, new WidgetArgs());
}; };
world.GameOver += ShowLeaveRestartDialog; world.GameOver += ShowLeaveRestartDialog;
} }

View File

@@ -1,4 +1,4 @@
Container@LEAVE_RESTART_WIDGET: Container@LEAVE_MAP_WIDGET:
Logic: LeaveMapLogic Logic: LeaveMapLogic
Children: Children:
Image@EVA: Image@EVA:
@@ -18,14 +18,14 @@ Container@LEAVE_RESTART_WIDGET:
Width: WINDOW_RIGHT Width: WINDOW_RIGHT
Height: WINDOW_BOTTOM Height: WINDOW_BOTTOM
Background: shellmapborder Background: shellmapborder
Container@LEAVE_RESTART_SIMPLE Container@LEAVE_MAP_SIMPLE
X: (WINDOW_RIGHT - WIDTH) / 2 X: (WINDOW_RIGHT - WIDTH) / 2
Y: (WINDOW_BOTTOM - HEIGHT) / 2 Y: (WINDOW_BOTTOM - HEIGHT) / 2
Width: 370 Width: 370
Height: 125 Height: 125
Visible: False Visible: False
Children: Children:
Background@LEAVE_RESTART_SIMPLE_BG: Background@LEAVE_MAP_SIMPLE_BG:
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: PARENT_BOTTOM - 35 Height: PARENT_BOTTOM - 35
Background: panel-black Background: panel-black
@@ -58,14 +58,14 @@ Container@LEAVE_RESTART_WIDGET:
Height: 35 Height: 35
Font: Bold Font: Bold
Text: Statistics Text: Statistics
Container@LEAVE_RESTART_FULL: Container@LEAVE_MAP_FULL:
X: (WINDOW_RIGHT - WIDTH) / 2 X: (WINDOW_RIGHT - WIDTH) / 2
Y: (WINDOW_BOTTOM - HEIGHT) / 2 Y: (WINDOW_BOTTOM - HEIGHT) / 2
Width: 512 Width: 512
Height: 410 Height: 410
Visible: False Visible: False
Children: Children:
Background@LEAVE_RESTART_BG: Background@LEAVE_MAP_BG:
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: PARENT_BOTTOM - 35 Height: PARENT_BOTTOM - 35
Background: panel-black Background: panel-black

View File

@@ -1,4 +1,4 @@
Container@LEAVE_RESTART_WIDGET: Container@LEAVE_MAP_WIDGET:
Logic: LeaveMapLogic Logic: LeaveMapLogic
Children: Children:
Background@BORDER: Background@BORDER:
@@ -13,14 +13,14 @@ Container@LEAVE_RESTART_WIDGET:
Align: Right Align: Right
Font: Regular Font: Regular
Contrast: True Contrast: True
Container@LEAVE_RESTART_SIMPLE Container@LEAVE_MAP_SIMPLE
X: (WINDOW_RIGHT - WIDTH) / 2 X: (WINDOW_RIGHT - WIDTH) / 2
Y: (WINDOW_BOTTOM - HEIGHT) / 2 Y: (WINDOW_BOTTOM - HEIGHT) / 2
Width: 370 Width: 370
Height: 175 Height: 175
Visible: False Visible: False
Children: Children:
Background@LEAVE_RESTART_SIMPLE_BG: Background@LEAVE_MAP_SIMPLE_BG:
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: PARENT_BOTTOM Height: PARENT_BOTTOM
Children: Children:
@@ -52,14 +52,14 @@ Container@LEAVE_RESTART_WIDGET:
Height: 25 Height: 25
Font: Bold Font: Bold
Text: Leave Text: Leave
Container@LEAVE_RESTART_FULL: Container@LEAVE_MAP_FULL:
X: (WINDOW_RIGHT - WIDTH) / 2 X: (WINDOW_RIGHT - WIDTH) / 2
Y: (WINDOW_BOTTOM - HEIGHT) / 2 Y: (WINDOW_BOTTOM - HEIGHT) / 2
Width: 522 Width: 522
Height: 470 Height: 470
Visible: False Visible: False
Children: Children:
Background@LEAVE_RESTART_BG: Background@LEAVE_MAP_BG:
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: PARENT_BOTTOM Height: PARENT_BOTTOM
Children: Children:

View File

@@ -1,4 +1,4 @@
Container@LEAVE_RESTART_WIDGET: Container@LEAVE_MAP_WIDGET:
Logic: LeaveMapLogic Logic: LeaveMapLogic
Children: Children:
Background@BORDER: Background@BORDER:
@@ -20,14 +20,14 @@ Container@LEAVE_RESTART_WIDGET:
Align: Center Align: Center
Font: Regular Font: Regular
Contrast: True Contrast: True
Container@LEAVE_RESTART_SIMPLE Container@LEAVE_MAP_SIMPLE
X: (WINDOW_RIGHT - WIDTH) / 2 X: (WINDOW_RIGHT - WIDTH) / 2
Y: (WINDOW_BOTTOM - HEIGHT) / 2 Y: (WINDOW_BOTTOM - HEIGHT) / 2
Width: 370 Width: 370
Height: 175 Height: 175
Visible: False Visible: False
Children: Children:
Background@LEAVE_RESTART_SIMPLE_BG: Background@LEAVE_MAP_SIMPLE_BG:
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: PARENT_BOTTOM Height: PARENT_BOTTOM
Children: Children:
@@ -59,14 +59,14 @@ Container@LEAVE_RESTART_WIDGET:
Height: 25 Height: 25
Font: Bold Font: Bold
Text: Leave Text: Leave
Container@LEAVE_RESTART_FULL: Container@LEAVE_MAP_FULL:
X: (WINDOW_RIGHT - WIDTH) / 2 X: (WINDOW_RIGHT - WIDTH) / 2
Y: (WINDOW_BOTTOM - HEIGHT) / 2 Y: (WINDOW_BOTTOM - HEIGHT) / 2
Width: 522 Width: 522
Height: 470 Height: 470
Visible: False Visible: False
Children: Children:
Background@LEAVE_RESTART_BG: Background@LEAVE_MAP_BG:
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: PARENT_BOTTOM Height: PARENT_BOTTOM
Children: Children: