Add hotkey for Army value statistics panel
This commit is contained in:
committed by
Paul Chote
parent
f26905f5d0
commit
caead311cb
@@ -18,7 +18,7 @@ using OpenRA.Widgets;
|
||||
|
||||
namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
{
|
||||
[ChromeLogicArgsHotkeys("StatisticsBasicKey", "StatisticsEconomyKey", "StatisticsProductionKey", "StatisticsCombatKey", "StatisticsGraphKey")]
|
||||
[ChromeLogicArgsHotkeys("StatisticsBasicKey", "StatisticsEconomyKey", "StatisticsProductionKey", "StatisticsCombatKey", "StatisticsGraphKey", "StatisticsArmyGraphKey")]
|
||||
public class MenuButtonsChromeLogic : ChromeLogic
|
||||
{
|
||||
readonly World world;
|
||||
|
||||
@@ -21,9 +21,9 @@ using OpenRA.Widgets;
|
||||
|
||||
namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
{
|
||||
public enum ObserverStatsPanel { Basic, Economy, Production, Combat, Graph }
|
||||
public enum ObserverStatsPanel { Basic, Economy, Production, Combat, Graph, ArmyGraph }
|
||||
|
||||
[ChromeLogicArgsHotkeys("StatisticsBasicKey", "StatisticsEconomyKey", "StatisticsProductionKey", "StatisticsCombatKey", "StatisticsGraphKey")]
|
||||
[ChromeLogicArgsHotkeys("StatisticsBasicKey", "StatisticsEconomyKey", "StatisticsProductionKey", "StatisticsCombatKey", "StatisticsGraphKey", "StatisticsArmyGraphKey")]
|
||||
public class ObserverStatsLogic : ChromeLogic
|
||||
{
|
||||
readonly ContainerWidget basicStatsHeaders;
|
||||
|
||||
@@ -5,6 +5,7 @@ Background@INGAME_OBSERVERSTATS_BG:
|
||||
StatisticsProductionKey: StatisticsProduction
|
||||
StatisticsCombatKey: StatisticsCombat
|
||||
StatisticsGraphKey: StatisticsGraph
|
||||
StatisticsArmyGraphKey: StatisticsArmyGraph
|
||||
X: (WINDOW_RIGHT - WIDTH) / 2
|
||||
Y: (WINDOW_BOTTOM - HEIGHT) / 2
|
||||
Width: 1005
|
||||
|
||||
@@ -111,6 +111,7 @@ Container@OBSERVER_WIDGETS:
|
||||
StatisticsProductionKey: StatisticsProduction
|
||||
StatisticsCombatKey: StatisticsCombat
|
||||
StatisticsGraphKey: StatisticsGraph
|
||||
StatisticsArmyGraphKey: StatisticsArmyGraph
|
||||
Children:
|
||||
LogicKeyListener@OBSERVER_KEY_LISTENER:
|
||||
MenuButton@OPTIONS_BUTTON:
|
||||
|
||||
@@ -5,6 +5,7 @@ Container@OBSERVER_WIDGETS:
|
||||
StatisticsProductionKey: StatisticsProduction
|
||||
StatisticsCombatKey: StatisticsCombat
|
||||
StatisticsGraphKey: StatisticsGraph
|
||||
StatisticsArmyGraphKey: StatisticsArmyGraph
|
||||
Children:
|
||||
LogicKeyListener@OBSERVER_KEY_LISTENER:
|
||||
MenuButton@OPTIONS_BUTTON:
|
||||
|
||||
@@ -5,6 +5,7 @@ Background@INGAME_OBSERVERSTATS_BG:
|
||||
StatisticsProductionKey: StatisticsProduction
|
||||
StatisticsCombatKey: StatisticsCombat
|
||||
StatisticsGraphKey: StatisticsGraph
|
||||
StatisticsArmyGraphKey: StatisticsArmyGraph
|
||||
X: 25
|
||||
Y: 50
|
||||
Width: 1025
|
||||
|
||||
@@ -41,3 +41,7 @@ StatisticsCombat: F4
|
||||
StatisticsGraph: F5
|
||||
Description: Statistics graph
|
||||
Types: Observer, Replay
|
||||
|
||||
StatisticsArmyGraph: F6
|
||||
Description: Army value graph
|
||||
Types: Observer, Replay
|
||||
|
||||
@@ -36,6 +36,7 @@ Container@OBSERVER_WIDGETS:
|
||||
StatisticsProductionKey: StatisticsProduction
|
||||
StatisticsCombatKey: StatisticsCombat
|
||||
StatisticsGraphKey: StatisticsGraph
|
||||
StatisticsArmyGraphKey: StatisticsArmyGraph
|
||||
X: 9
|
||||
Y: 7
|
||||
Children:
|
||||
|
||||
@@ -5,6 +5,7 @@ Container@OBSERVER_WIDGETS:
|
||||
StatisticsProductionKey: StatisticsProduction
|
||||
StatisticsCombatKey: StatisticsCombat
|
||||
StatisticsGraphKey: StatisticsGraph
|
||||
StatisticsArmyGraphKey: StatisticsArmyGraph
|
||||
Children:
|
||||
LogicKeyListener@OBSERVER_KEY_LISTENER:
|
||||
MenuButton@OPTIONS_BUTTON:
|
||||
|
||||
@@ -5,6 +5,7 @@ Background@INGAME_OBSERVERSTATS_BG:
|
||||
StatisticsProductionKey: StatisticsProduction
|
||||
StatisticsCombatKey: StatisticsCombat
|
||||
StatisticsGraphKey: StatisticsGraph
|
||||
StatisticsArmyGraphKey: StatisticsArmyGraph
|
||||
X: 25
|
||||
Y: 50
|
||||
Width: 1025
|
||||
|
||||
Reference in New Issue
Block a user