Add hotkey for Army value statistics panel

This commit is contained in:
Ivaylo Draganov
2019-01-02 13:31:00 +02:00
committed by Paul Chote
parent f26905f5d0
commit caead311cb
10 changed files with 14 additions and 3 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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

View File

@@ -111,6 +111,7 @@ Container@OBSERVER_WIDGETS:
StatisticsProductionKey: StatisticsProduction
StatisticsCombatKey: StatisticsCombat
StatisticsGraphKey: StatisticsGraph
StatisticsArmyGraphKey: StatisticsArmyGraph
Children:
LogicKeyListener@OBSERVER_KEY_LISTENER:
MenuButton@OPTIONS_BUTTON:

View File

@@ -5,6 +5,7 @@ Container@OBSERVER_WIDGETS:
StatisticsProductionKey: StatisticsProduction
StatisticsCombatKey: StatisticsCombat
StatisticsGraphKey: StatisticsGraph
StatisticsArmyGraphKey: StatisticsArmyGraph
Children:
LogicKeyListener@OBSERVER_KEY_LISTENER:
MenuButton@OPTIONS_BUTTON:

View File

@@ -5,6 +5,7 @@ Background@INGAME_OBSERVERSTATS_BG:
StatisticsProductionKey: StatisticsProduction
StatisticsCombatKey: StatisticsCombat
StatisticsGraphKey: StatisticsGraph
StatisticsArmyGraphKey: StatisticsArmyGraph
X: 25
Y: 50
Width: 1025

View File

@@ -41,3 +41,7 @@ StatisticsCombat: F4
StatisticsGraph: F5
Description: Statistics graph
Types: Observer, Replay
StatisticsArmyGraph: F6
Description: Army value graph
Types: Observer, Replay

View File

@@ -36,6 +36,7 @@ Container@OBSERVER_WIDGETS:
StatisticsProductionKey: StatisticsProduction
StatisticsCombatKey: StatisticsCombat
StatisticsGraphKey: StatisticsGraph
StatisticsArmyGraphKey: StatisticsArmyGraph
X: 9
Y: 7
Children:

View File

@@ -5,6 +5,7 @@ Container@OBSERVER_WIDGETS:
StatisticsProductionKey: StatisticsProduction
StatisticsCombatKey: StatisticsCombat
StatisticsGraphKey: StatisticsGraph
StatisticsArmyGraphKey: StatisticsArmyGraph
Children:
LogicKeyListener@OBSERVER_KEY_LISTENER:
MenuButton@OPTIONS_BUTTON:

View File

@@ -5,6 +5,7 @@ Background@INGAME_OBSERVERSTATS_BG:
StatisticsProductionKey: StatisticsProduction
StatisticsCombatKey: StatisticsCombat
StatisticsGraphKey: StatisticsGraph
StatisticsArmyGraphKey: StatisticsArmyGraph
X: 25
Y: 50
Width: 1025