Merge pull request #6753 from pchote/ingame-menu-cleanup
Ingame menu cleanup
This commit is contained in:
@@ -19,7 +19,9 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
public LoadIngamePlayerOrObserverUILogic(Widget widget, World world)
|
public LoadIngamePlayerOrObserverUILogic(Widget widget, World world)
|
||||||
{
|
{
|
||||||
var ingameRoot = widget.Get("INGAME_ROOT");
|
var ingameRoot = widget.Get("INGAME_ROOT");
|
||||||
var playerRoot = ingameRoot.Get("PLAYER_ROOT");
|
var worldRoot = ingameRoot.Get("WORLD_ROOT");
|
||||||
|
var menuRoot = ingameRoot.Get("MENU_ROOT");
|
||||||
|
var playerRoot = worldRoot.Get("PLAYER_ROOT");
|
||||||
|
|
||||||
if (world.LocalPlayer == null)
|
if (world.LocalPlayer == null)
|
||||||
Game.LoadWidget(world, "OBSERVER_WIDGETS", playerRoot, new WidgetArgs());
|
Game.LoadWidget(world, "OBSERVER_WIDGETS", playerRoot, new WidgetArgs());
|
||||||
@@ -40,14 +42,14 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
Game.LoadWidget(world, "CHAT_PANEL", ingameRoot, new WidgetArgs());
|
Game.LoadWidget(world, "CHAT_PANEL", worldRoot, new WidgetArgs());
|
||||||
|
|
||||||
Action showLeaveMapWidget = () =>
|
world.GameOver += () =>
|
||||||
{
|
{
|
||||||
ingameRoot.RemoveChildren();
|
worldRoot.RemoveChildren();
|
||||||
Game.LoadWidget(world, "LEAVE_MAP_WIDGET", Ui.Root, new WidgetArgs());
|
menuRoot.RemoveChildren();
|
||||||
|
Game.LoadWidget(world, "LEAVE_MAP_WIDGET", menuRoot, new WidgetArgs());
|
||||||
};
|
};
|
||||||
world.GameOver += showLeaveMapWidget;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,9 @@ namespace OpenRA.Mods.D2k.Widgets.Logic
|
|||||||
{
|
{
|
||||||
public class IngameChromeLogic
|
public class IngameChromeLogic
|
||||||
{
|
{
|
||||||
readonly Widget gameRoot;
|
readonly Widget ingameRoot;
|
||||||
|
readonly Widget worldRoot;
|
||||||
|
readonly Widget menuRoot;
|
||||||
readonly Widget playerRoot;
|
readonly Widget playerRoot;
|
||||||
readonly World world;
|
readonly World world;
|
||||||
|
|
||||||
@@ -33,8 +35,10 @@ namespace OpenRA.Mods.D2k.Widgets.Logic
|
|||||||
public IngameChromeLogic(World world)
|
public IngameChromeLogic(World world)
|
||||||
{
|
{
|
||||||
this.world = world;
|
this.world = world;
|
||||||
gameRoot = Ui.Root.Get("INGAME_ROOT");
|
ingameRoot = Ui.Root.Get("INGAME_ROOT");
|
||||||
playerRoot = gameRoot.Get("PLAYER_ROOT");
|
worldRoot = ingameRoot.Get("WORLD_ROOT");
|
||||||
|
menuRoot = ingameRoot.Get("MENU_ROOT");
|
||||||
|
playerRoot = worldRoot.Get("PLAYER_ROOT");
|
||||||
|
|
||||||
InitRootWidgets();
|
InitRootWidgets();
|
||||||
if (world.LocalPlayer == null)
|
if (world.LocalPlayer == null)
|
||||||
@@ -45,14 +49,14 @@ namespace OpenRA.Mods.D2k.Widgets.Logic
|
|||||||
|
|
||||||
void InitRootWidgets()
|
void InitRootWidgets()
|
||||||
{
|
{
|
||||||
Game.LoadWidget(world, "CHAT_PANEL", gameRoot, new WidgetArgs());
|
Game.LoadWidget(world, "CHAT_PANEL", worldRoot, new WidgetArgs());
|
||||||
|
|
||||||
Action ShowLeaveMapWidget = () =>
|
world.GameOver += () =>
|
||||||
{
|
{
|
||||||
gameRoot.RemoveChildren();
|
worldRoot.RemoveChildren();
|
||||||
Game.LoadWidget(world, "LEAVE_MAP_WIDGET", Ui.Root, new WidgetArgs());
|
menuRoot.RemoveChildren();
|
||||||
|
Game.LoadWidget(world, "LEAVE_MAP_WIDGET", menuRoot, new WidgetArgs());
|
||||||
};
|
};
|
||||||
world.GameOver += ShowLeaveMapWidget;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void InitObserverWidgets()
|
void InitObserverWidgets()
|
||||||
|
|||||||
@@ -31,6 +31,10 @@ namespace OpenRA.Mods.RA.Widgets
|
|||||||
{
|
{
|
||||||
this.orderManager = orderManager;
|
this.orderManager = orderManager;
|
||||||
|
|
||||||
|
var mpe = world.WorldActor.TraitOrDefault<MenuPaletteEffect>();
|
||||||
|
if (mpe != null)
|
||||||
|
mpe.Fade(mpe.Info.MenuEffect);
|
||||||
|
|
||||||
widget.Get<LabelWidget>("VERSION_LABEL").Text = Game.modData.Manifest.Mod.Version;
|
widget.Get<LabelWidget>("VERSION_LABEL").Text = Game.modData.Manifest.Mod.Version;
|
||||||
|
|
||||||
var showStats = false;
|
var showStats = false;
|
||||||
@@ -95,7 +99,6 @@ namespace OpenRA.Mods.RA.Widgets
|
|||||||
leaveButton.OnClick = () =>
|
leaveButton.OnClick = () =>
|
||||||
{
|
{
|
||||||
leaveButton.Disabled = true;
|
leaveButton.Disabled = true;
|
||||||
var mpe = world.WorldActor.TraitOrDefault<MenuPaletteEffect>();
|
|
||||||
|
|
||||||
Sound.PlayNotification(world.Map.Rules, null, "Speech", "Leave",
|
Sound.PlayNotification(world.Map.Rules, null, "Speech", "Leave",
|
||||||
world.LocalPlayer == null ? null : world.LocalPlayer.Country.Race);
|
world.LocalPlayer == null ? null : world.LocalPlayer.Country.Race);
|
||||||
|
|||||||
@@ -56,7 +56,6 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
Action closeMenu = () =>
|
Action closeMenu = () =>
|
||||||
{
|
{
|
||||||
Ui.CloseWindow();
|
Ui.CloseWindow();
|
||||||
Ui.Root.RemoveChild(menu);
|
|
||||||
if (mpe != null)
|
if (mpe != null)
|
||||||
mpe.Fade(MenuPaletteEffect.EffectType.None);
|
mpe.Fade(MenuPaletteEffect.EffectType.None);
|
||||||
onExit();
|
onExit();
|
||||||
@@ -110,12 +109,16 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
resumeButton.IsDisabled = () => resumeDisabled;
|
resumeButton.IsDisabled = () => resumeDisabled;
|
||||||
resumeButton.OnClick = closeMenu;
|
resumeButton.OnClick = closeMenu;
|
||||||
|
|
||||||
// Game info panel
|
var panelRoot = widget.GetOrNull("PANEL_ROOT");
|
||||||
var gameInfoPanel = Game.LoadWidget(world, "GAME_INFO_PANEL", menu, new WidgetArgs()
|
if (panelRoot != null)
|
||||||
|
{
|
||||||
|
var gameInfoPanel = Game.LoadWidget(world, "GAME_INFO_PANEL", panelRoot, new WidgetArgs()
|
||||||
{
|
{
|
||||||
{ "activePanel", activePanel }
|
{ "activePanel", activePanel }
|
||||||
});
|
});
|
||||||
|
|
||||||
gameInfoPanel.IsVisible = () => !hideMenu;
|
gameInfoPanel.IsVisible = () => !hideMenu;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -20,7 +20,8 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
public class OrderButtonsChromeLogic
|
public class OrderButtonsChromeLogic
|
||||||
{
|
{
|
||||||
readonly World world;
|
readonly World world;
|
||||||
readonly Widget ingameRoot;
|
readonly Widget worldRoot;
|
||||||
|
readonly Widget menuRoot;
|
||||||
bool disableSystemButtons;
|
bool disableSystemButtons;
|
||||||
Widget currentWidget;
|
Widget currentWidget;
|
||||||
|
|
||||||
@@ -28,9 +29,11 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
public OrderButtonsChromeLogic(Widget widget, World world)
|
public OrderButtonsChromeLogic(Widget widget, World world)
|
||||||
{
|
{
|
||||||
this.world = world;
|
this.world = world;
|
||||||
ingameRoot = Ui.Root.Get("INGAME_ROOT");
|
var ingameRoot = Ui.Root.Get("INGAME_ROOT");
|
||||||
|
worldRoot = ingameRoot.Get("WORLD_ROOT");
|
||||||
|
menuRoot = ingameRoot.Get("MENU_ROOT");
|
||||||
|
|
||||||
Action removeCurrentWidget = () => Ui.Root.RemoveChild(currentWidget);
|
Action removeCurrentWidget = () => menuRoot.RemoveChild(currentWidget);
|
||||||
world.GameOver += removeCurrentWidget;
|
world.GameOver += removeCurrentWidget;
|
||||||
|
|
||||||
// Order Buttons
|
// Order Buttons
|
||||||
@@ -127,7 +130,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
var cachedPause = world.PredictedPaused;
|
var cachedPause = world.PredictedPaused;
|
||||||
|
|
||||||
if (button.HideIngameUI)
|
if (button.HideIngameUI)
|
||||||
ingameRoot.IsVisible = () => false;
|
worldRoot.IsVisible = () => false;
|
||||||
|
|
||||||
if (button.Pause && world.LobbyInfo.IsSinglePlayer)
|
if (button.Pause && world.LobbyInfo.IsSinglePlayer)
|
||||||
world.SetPauseState(true);
|
world.SetPauseState(true);
|
||||||
@@ -136,15 +139,16 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
widgetArgs.Add("onExit", () =>
|
widgetArgs.Add("onExit", () =>
|
||||||
{
|
{
|
||||||
if (button.HideIngameUI)
|
if (button.HideIngameUI)
|
||||||
ingameRoot.IsVisible = () => true;
|
worldRoot.IsVisible = () => true;
|
||||||
|
|
||||||
if (button.Pause && world.LobbyInfo.IsSinglePlayer)
|
if (button.Pause && world.LobbyInfo.IsSinglePlayer)
|
||||||
world.SetPauseState(cachedPause);
|
world.SetPauseState(cachedPause);
|
||||||
|
|
||||||
|
menuRoot.RemoveChild(currentWidget);
|
||||||
disableSystemButtons = false;
|
disableSystemButtons = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
currentWidget = Game.LoadWidget(world, button.MenuContainer, Ui.Root, widgetArgs);
|
currentWidget = Game.LoadWidget(world, button.MenuContainer, menuRoot, widgetArgs);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void BindOrderButton<T>(World world, ButtonWidget w, string icon)
|
static void BindOrderButton<T>(World world, ButtonWidget w, string icon)
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ Container@LEAVE_MAP_WIDGET:
|
|||||||
Width: WINDOW_RIGHT
|
Width: WINDOW_RIGHT
|
||||||
Height: WINDOW_BOTTOM
|
Height: WINDOW_BOTTOM
|
||||||
Background: shellmapborder
|
Background: shellmapborder
|
||||||
Container@LEAVE_MAP_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
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ Container@INGAME_MENU:
|
|||||||
Width: WINDOW_RIGHT
|
Width: WINDOW_RIGHT
|
||||||
Height: WINDOW_BOTTOM
|
Height: WINDOW_BOTTOM
|
||||||
Background: shellmapborder
|
Background: shellmapborder
|
||||||
|
Container@PANEL_ROOT:
|
||||||
Container@MENU_BUTTONS:
|
Container@MENU_BUTTONS:
|
||||||
X: (WINDOW_RIGHT-WIDTH)/2
|
X: (WINDOW_RIGHT-WIDTH)/2
|
||||||
Y: WINDOW_BOTTOM-33-HEIGHT-10
|
Y: WINDOW_BOTTOM-33-HEIGHT-10
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
Container@INGAME_ROOT:
|
Container@INGAME_ROOT:
|
||||||
Logic: LoadIngamePlayerOrObserverUILogic
|
Logic: LoadIngamePlayerOrObserverUILogic
|
||||||
|
Children:
|
||||||
|
Container@WORLD_ROOT:
|
||||||
Children:
|
Children:
|
||||||
LogicTicker@DISCONNECT_WATCHER:
|
LogicTicker@DISCONNECT_WATCHER:
|
||||||
Logic: DisconnectWatcherLogic
|
Logic: DisconnectWatcherLogic
|
||||||
@@ -55,6 +57,7 @@ Container@INGAME_ROOT:
|
|||||||
Height: WINDOW_BOTTOM
|
Height: WINDOW_BOTTOM
|
||||||
TooltipContainer: TOOLTIP_CONTAINER
|
TooltipContainer: TOOLTIP_CONTAINER
|
||||||
Container@PLAYER_ROOT:
|
Container@PLAYER_ROOT:
|
||||||
|
Container@MENU_ROOT:
|
||||||
TooltipContainer@TOOLTIP_CONTAINER:
|
TooltipContainer@TOOLTIP_CONTAINER:
|
||||||
|
|
||||||
Container@OBSERVER_WIDGETS:
|
Container@OBSERVER_WIDGETS:
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ Container@INGAME_MENU:
|
|||||||
Align: Right
|
Align: Right
|
||||||
Font: Regular
|
Font: Regular
|
||||||
Contrast: True
|
Contrast: True
|
||||||
|
Container@PANEL_ROOT:
|
||||||
Background@MENU_BUTTONS:
|
Background@MENU_BUTTONS:
|
||||||
X: 13 + (WINDOW_RIGHT - 522) / 4 - WIDTH / 2
|
X: 13 + (WINDOW_RIGHT - 522) / 4 - WIDTH / 2
|
||||||
Y: (WINDOW_BOTTOM - HEIGHT)/2
|
Y: (WINDOW_BOTTOM - HEIGHT)/2
|
||||||
|
|||||||
@@ -1,5 +1,14 @@
|
|||||||
Container@OBSERVER_WIDGETS:
|
Container@OBSERVER_WIDGETS:
|
||||||
Children:
|
Children:
|
||||||
|
MenuButton@OPTIONS_BUTTON:
|
||||||
|
Logic: OrderButtonsChromeLogic
|
||||||
|
X: 0
|
||||||
|
Y: 0
|
||||||
|
Width: 160
|
||||||
|
Height: 25
|
||||||
|
Text: Options (Esc)
|
||||||
|
Font: Bold
|
||||||
|
Key: escape
|
||||||
MenuButton@OBSERVER_STATS_BUTTON:
|
MenuButton@OBSERVER_STATS_BUTTON:
|
||||||
Logic: OrderButtonsChromeLogic
|
Logic: OrderButtonsChromeLogic
|
||||||
MenuContainer: INGAME_OBSERVERSTATS_BG
|
MenuContainer: INGAME_OBSERVERSTATS_BG
|
||||||
|
|||||||
@@ -3,6 +3,15 @@ Container@PLAYER_WIDGETS:
|
|||||||
LogicKeyListener@CONTROLGROUP_KEYHANDLER:
|
LogicKeyListener@CONTROLGROUP_KEYHANDLER:
|
||||||
Logic: ControlGroupLogic
|
Logic: ControlGroupLogic
|
||||||
LogicTicker@SIDEBAR_TICKER:
|
LogicTicker@SIDEBAR_TICKER:
|
||||||
|
MenuButton@OPTIONS_BUTTON:
|
||||||
|
Logic: OrderButtonsChromeLogic
|
||||||
|
X: 0
|
||||||
|
Y: 0
|
||||||
|
Width: 160
|
||||||
|
Height: 25
|
||||||
|
Text: Options (Esc)
|
||||||
|
Font: Bold
|
||||||
|
Key: escape
|
||||||
MenuButton@DIPLOMACY_BUTTON:
|
MenuButton@DIPLOMACY_BUTTON:
|
||||||
Logic: OrderButtonsChromeLogic
|
Logic: OrderButtonsChromeLogic
|
||||||
MenuContainer: INGAME_DIPLOMACY_BG
|
MenuContainer: INGAME_DIPLOMACY_BG
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
Container@INGAME_ROOT:
|
Container@INGAME_ROOT:
|
||||||
Logic: IngameChromeLogic
|
Logic: IngameChromeLogic
|
||||||
|
Children:
|
||||||
|
Container@WORLD_ROOT:
|
||||||
Children:
|
Children:
|
||||||
LogicTicker@DISCONNECT_WATCHER:
|
LogicTicker@DISCONNECT_WATCHER:
|
||||||
Logic: DisconnectWatcherLogic
|
Logic: DisconnectWatcherLogic
|
||||||
@@ -19,25 +21,6 @@ Container@INGAME_ROOT:
|
|||||||
Y: 0
|
Y: 0
|
||||||
Width: WINDOW_RIGHT
|
Width: WINDOW_RIGHT
|
||||||
Height: WINDOW_BOTTOM
|
Height: WINDOW_BOTTOM
|
||||||
Container@GAME_TIMER_BLOCK:
|
|
||||||
Logic: GameTimerLogic
|
|
||||||
X: WINDOW_RIGHT/2 - WIDTH
|
|
||||||
Width: 100
|
|
||||||
Height: 55
|
|
||||||
Children:
|
|
||||||
Label@GAME_TIMER:
|
|
||||||
Width: PARENT_RIGHT
|
|
||||||
Height: 30
|
|
||||||
Align: Center
|
|
||||||
Font: Title
|
|
||||||
Contrast: true
|
|
||||||
Label@GAME_TIMER_STATUS:
|
|
||||||
Y: 32
|
|
||||||
Width: PARENT_RIGHT
|
|
||||||
Height: 15
|
|
||||||
Align: Center
|
|
||||||
Font: Bold
|
|
||||||
Contrast: true
|
|
||||||
StrategicProgress@STRATEGIC_PROGRESS:
|
StrategicProgress@STRATEGIC_PROGRESS:
|
||||||
X: WINDOW_RIGHT/2
|
X: WINDOW_RIGHT/2
|
||||||
Y: 40
|
Y: 40
|
||||||
@@ -46,15 +29,6 @@ Container@INGAME_ROOT:
|
|||||||
Y: 34
|
Y: 34
|
||||||
Order: Descending
|
Order: Descending
|
||||||
Container@PLAYER_ROOT:
|
Container@PLAYER_ROOT:
|
||||||
MenuButton@OPTIONS_BUTTON:
|
|
||||||
Logic: OrderButtonsChromeLogic
|
|
||||||
X: 0
|
|
||||||
Y: 0
|
|
||||||
Width: 160
|
|
||||||
Height: 25
|
|
||||||
Text: Options (Esc)
|
|
||||||
Font: Bold
|
|
||||||
Key: escape
|
|
||||||
Container@PERFORMANCE_INFO:
|
Container@PERFORMANCE_INFO:
|
||||||
Logic: PerfDebugLogic
|
Logic: PerfDebugLogic
|
||||||
Children:
|
Children:
|
||||||
@@ -77,5 +51,24 @@ Container@INGAME_ROOT:
|
|||||||
Y: 5
|
Y: 5
|
||||||
Width: 200
|
Width: 200
|
||||||
Height: 200
|
Height: 200
|
||||||
|
Container@GAME_TIMER_BLOCK:
|
||||||
|
Logic: GameTimerLogic
|
||||||
|
X: WINDOW_RIGHT/2 - WIDTH
|
||||||
|
Width: 100
|
||||||
|
Height: 55
|
||||||
|
Children:
|
||||||
|
Label@GAME_TIMER:
|
||||||
|
Width: PARENT_RIGHT
|
||||||
|
Height: 30
|
||||||
|
Align: Center
|
||||||
|
Font: Title
|
||||||
|
Contrast: true
|
||||||
|
Label@GAME_TIMER_STATUS:
|
||||||
|
Y: 32
|
||||||
|
Width: PARENT_RIGHT
|
||||||
|
Height: 15
|
||||||
|
Align: Center
|
||||||
|
Font: Bold
|
||||||
|
Contrast: true
|
||||||
|
Container@MENU_ROOT:
|
||||||
TooltipContainer@TOOLTIP_CONTAINER:
|
TooltipContainer@TOOLTIP_CONTAINER:
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ Container@LEAVE_MAP_WIDGET:
|
|||||||
Align: Center
|
Align: Center
|
||||||
Font: Regular
|
Font: Regular
|
||||||
Contrast: True
|
Contrast: True
|
||||||
Container@LEAVE_MAP_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
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ Container@INGAME_MENU:
|
|||||||
Align: Center
|
Align: Center
|
||||||
Font: Regular
|
Font: Regular
|
||||||
Contrast: True
|
Contrast: True
|
||||||
|
Container@PANEL_ROOT:
|
||||||
Background@MENU_BUTTONS:
|
Background@MENU_BUTTONS:
|
||||||
X: 13 + (WINDOW_RIGHT - 522) / 4 - WIDTH / 2
|
X: 13 + (WINDOW_RIGHT - 522) / 4 - WIDTH / 2
|
||||||
Y: (WINDOW_BOTTOM - HEIGHT)/2
|
Y: (WINDOW_BOTTOM - HEIGHT)/2
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
Container@INGAME_ROOT:
|
Container@INGAME_ROOT:
|
||||||
Logic: LoadIngamePlayerOrObserverUILogic
|
Logic: LoadIngamePlayerOrObserverUILogic
|
||||||
|
Children:
|
||||||
|
Container@WORLD_ROOT:
|
||||||
Children:
|
Children:
|
||||||
LogicTicker@DISCONNECT_WATCHER:
|
LogicTicker@DISCONNECT_WATCHER:
|
||||||
Logic: DisconnectWatcherLogic
|
Logic: DisconnectWatcherLogic
|
||||||
@@ -49,5 +51,5 @@ Container@INGAME_ROOT:
|
|||||||
Y: 5
|
Y: 5
|
||||||
Width: 200
|
Width: 200
|
||||||
Height: 200
|
Height: 200
|
||||||
|
Container@MENU_ROOT:
|
||||||
TooltipContainer@TOOLTIP_CONTAINER:
|
TooltipContainer@TOOLTIP_CONTAINER:
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,16 @@ Container@PLAYER_WIDGETS:
|
|||||||
LogicKeyListener@CONTROLGROUP_KEYHANDLER:
|
LogicKeyListener@CONTROLGROUP_KEYHANDLER:
|
||||||
Logic: ControlGroupLogic
|
Logic: ControlGroupLogic
|
||||||
LogicTicker@SIDEBAR_TICKER:
|
LogicTicker@SIDEBAR_TICKER:
|
||||||
|
MenuButton@OPTIONS_BUTTON:
|
||||||
|
Logic: OrderButtonsChromeLogic
|
||||||
|
MenuContainer: INGAME_MENU
|
||||||
|
X: 0
|
||||||
|
Y: 0
|
||||||
|
Width: 160
|
||||||
|
Height: 25
|
||||||
|
Text: Options (Esc)
|
||||||
|
Font: Bold
|
||||||
|
Key: escape
|
||||||
MenuButton@DIPLOMACY_BUTTON:
|
MenuButton@DIPLOMACY_BUTTON:
|
||||||
Logic: OrderButtonsChromeLogic
|
Logic: OrderButtonsChromeLogic
|
||||||
MenuContainer: INGAME_DIPLOMACY_BG
|
MenuContainer: INGAME_DIPLOMACY_BG
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
Container@INGAME_ROOT:
|
Container@INGAME_ROOT:
|
||||||
Logic: IngameChromeLogic
|
Logic: IngameChromeLogic
|
||||||
|
Children:
|
||||||
|
Container@WORLD_ROOT:
|
||||||
Children:
|
Children:
|
||||||
LogicTicker@DISCONNECT_WATCHER:
|
LogicTicker@DISCONNECT_WATCHER:
|
||||||
Logic: DisconnectWatcherLogic
|
Logic: DisconnectWatcherLogic
|
||||||
@@ -19,25 +21,6 @@ Container@INGAME_ROOT:
|
|||||||
Y: 0
|
Y: 0
|
||||||
Width: WINDOW_RIGHT
|
Width: WINDOW_RIGHT
|
||||||
Height: WINDOW_BOTTOM
|
Height: WINDOW_BOTTOM
|
||||||
Container@GAME_TIMER_BLOCK:
|
|
||||||
Logic: GameTimerLogic
|
|
||||||
X: WINDOW_RIGHT/2 - WIDTH
|
|
||||||
Width: 100
|
|
||||||
Height: 55
|
|
||||||
Children:
|
|
||||||
Label@GAME_TIMER:
|
|
||||||
Width: PARENT_RIGHT
|
|
||||||
Height: 15
|
|
||||||
Align: Center
|
|
||||||
Font: Title
|
|
||||||
Contrast: true
|
|
||||||
Label@GAME_TIMER_STATUS:
|
|
||||||
Y: 35
|
|
||||||
Width: PARENT_RIGHT
|
|
||||||
Height: 15
|
|
||||||
Align: Center
|
|
||||||
Font: Bold
|
|
||||||
Contrast: true
|
|
||||||
StrategicProgress@STRATEGIC_PROGRESS:
|
StrategicProgress@STRATEGIC_PROGRESS:
|
||||||
X: WINDOW_RIGHT/2
|
X: WINDOW_RIGHT/2
|
||||||
Y: 40
|
Y: 40
|
||||||
@@ -46,16 +29,6 @@ Container@INGAME_ROOT:
|
|||||||
Y: 34
|
Y: 34
|
||||||
Order: Descending
|
Order: Descending
|
||||||
Container@PLAYER_ROOT:
|
Container@PLAYER_ROOT:
|
||||||
MenuButton@OPTIONS_BUTTON:
|
|
||||||
Logic: OrderButtonsChromeLogic
|
|
||||||
MenuContainer: INGAME_MENU
|
|
||||||
X: 0
|
|
||||||
Y: 0
|
|
||||||
Width: 160
|
|
||||||
Height: 25
|
|
||||||
Text: Options (Esc)
|
|
||||||
Font: Bold
|
|
||||||
Key: escape
|
|
||||||
Container@PERFORMANCE_INFO:
|
Container@PERFORMANCE_INFO:
|
||||||
Logic: PerfDebugLogic
|
Logic: PerfDebugLogic
|
||||||
Children:
|
Children:
|
||||||
@@ -78,5 +51,24 @@ Container@INGAME_ROOT:
|
|||||||
Y: 5
|
Y: 5
|
||||||
Width: 200
|
Width: 200
|
||||||
Height: 200
|
Height: 200
|
||||||
|
Container@GAME_TIMER_BLOCK:
|
||||||
|
Logic: GameTimerLogic
|
||||||
|
X: WINDOW_RIGHT/2 - WIDTH
|
||||||
|
Width: 100
|
||||||
|
Height: 55
|
||||||
|
Children:
|
||||||
|
Label@GAME_TIMER:
|
||||||
|
Width: PARENT_RIGHT
|
||||||
|
Height: 15
|
||||||
|
Align: Center
|
||||||
|
Font: Title
|
||||||
|
Contrast: true
|
||||||
|
Label@GAME_TIMER_STATUS:
|
||||||
|
Y: 35
|
||||||
|
Width: PARENT_RIGHT
|
||||||
|
Height: 15
|
||||||
|
Align: Center
|
||||||
|
Font: Bold
|
||||||
|
Contrast: true
|
||||||
|
Container@MENU_ROOT:
|
||||||
TooltipContainer@TOOLTIP_CONTAINER:
|
TooltipContainer@TOOLTIP_CONTAINER:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user