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
|
namespace OpenRA.Mods.Common.Widgets.Logic
|
||||||
{
|
{
|
||||||
[ChromeLogicArgsHotkeys("StatisticsBasicKey", "StatisticsEconomyKey", "StatisticsProductionKey", "StatisticsCombatKey", "StatisticsGraphKey")]
|
[ChromeLogicArgsHotkeys("StatisticsBasicKey", "StatisticsEconomyKey", "StatisticsProductionKey", "StatisticsCombatKey", "StatisticsGraphKey", "StatisticsArmyGraphKey")]
|
||||||
public class MenuButtonsChromeLogic : ChromeLogic
|
public class MenuButtonsChromeLogic : ChromeLogic
|
||||||
{
|
{
|
||||||
readonly World world;
|
readonly World world;
|
||||||
|
|||||||
@@ -21,9 +21,9 @@ using OpenRA.Widgets;
|
|||||||
|
|
||||||
namespace OpenRA.Mods.Common.Widgets.Logic
|
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
|
public class ObserverStatsLogic : ChromeLogic
|
||||||
{
|
{
|
||||||
readonly ContainerWidget basicStatsHeaders;
|
readonly ContainerWidget basicStatsHeaders;
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ Background@INGAME_OBSERVERSTATS_BG:
|
|||||||
StatisticsProductionKey: StatisticsProduction
|
StatisticsProductionKey: StatisticsProduction
|
||||||
StatisticsCombatKey: StatisticsCombat
|
StatisticsCombatKey: StatisticsCombat
|
||||||
StatisticsGraphKey: StatisticsGraph
|
StatisticsGraphKey: StatisticsGraph
|
||||||
|
StatisticsArmyGraphKey: StatisticsArmyGraph
|
||||||
X: (WINDOW_RIGHT - WIDTH) / 2
|
X: (WINDOW_RIGHT - WIDTH) / 2
|
||||||
Y: (WINDOW_BOTTOM - HEIGHT) / 2
|
Y: (WINDOW_BOTTOM - HEIGHT) / 2
|
||||||
Width: 1005
|
Width: 1005
|
||||||
|
|||||||
@@ -111,6 +111,7 @@ Container@OBSERVER_WIDGETS:
|
|||||||
StatisticsProductionKey: StatisticsProduction
|
StatisticsProductionKey: StatisticsProduction
|
||||||
StatisticsCombatKey: StatisticsCombat
|
StatisticsCombatKey: StatisticsCombat
|
||||||
StatisticsGraphKey: StatisticsGraph
|
StatisticsGraphKey: StatisticsGraph
|
||||||
|
StatisticsArmyGraphKey: StatisticsArmyGraph
|
||||||
Children:
|
Children:
|
||||||
LogicKeyListener@OBSERVER_KEY_LISTENER:
|
LogicKeyListener@OBSERVER_KEY_LISTENER:
|
||||||
MenuButton@OPTIONS_BUTTON:
|
MenuButton@OPTIONS_BUTTON:
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ Container@OBSERVER_WIDGETS:
|
|||||||
StatisticsProductionKey: StatisticsProduction
|
StatisticsProductionKey: StatisticsProduction
|
||||||
StatisticsCombatKey: StatisticsCombat
|
StatisticsCombatKey: StatisticsCombat
|
||||||
StatisticsGraphKey: StatisticsGraph
|
StatisticsGraphKey: StatisticsGraph
|
||||||
|
StatisticsArmyGraphKey: StatisticsArmyGraph
|
||||||
Children:
|
Children:
|
||||||
LogicKeyListener@OBSERVER_KEY_LISTENER:
|
LogicKeyListener@OBSERVER_KEY_LISTENER:
|
||||||
MenuButton@OPTIONS_BUTTON:
|
MenuButton@OPTIONS_BUTTON:
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ Background@INGAME_OBSERVERSTATS_BG:
|
|||||||
StatisticsProductionKey: StatisticsProduction
|
StatisticsProductionKey: StatisticsProduction
|
||||||
StatisticsCombatKey: StatisticsCombat
|
StatisticsCombatKey: StatisticsCombat
|
||||||
StatisticsGraphKey: StatisticsGraph
|
StatisticsGraphKey: StatisticsGraph
|
||||||
|
StatisticsArmyGraphKey: StatisticsArmyGraph
|
||||||
X: 25
|
X: 25
|
||||||
Y: 50
|
Y: 50
|
||||||
Width: 1025
|
Width: 1025
|
||||||
|
|||||||
@@ -41,3 +41,7 @@ StatisticsCombat: F4
|
|||||||
StatisticsGraph: F5
|
StatisticsGraph: F5
|
||||||
Description: Statistics graph
|
Description: Statistics graph
|
||||||
Types: Observer, Replay
|
Types: Observer, Replay
|
||||||
|
|
||||||
|
StatisticsArmyGraph: F6
|
||||||
|
Description: Army value graph
|
||||||
|
Types: Observer, Replay
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ Container@OBSERVER_WIDGETS:
|
|||||||
StatisticsProductionKey: StatisticsProduction
|
StatisticsProductionKey: StatisticsProduction
|
||||||
StatisticsCombatKey: StatisticsCombat
|
StatisticsCombatKey: StatisticsCombat
|
||||||
StatisticsGraphKey: StatisticsGraph
|
StatisticsGraphKey: StatisticsGraph
|
||||||
|
StatisticsArmyGraphKey: StatisticsArmyGraph
|
||||||
X: 9
|
X: 9
|
||||||
Y: 7
|
Y: 7
|
||||||
Children:
|
Children:
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ Container@OBSERVER_WIDGETS:
|
|||||||
StatisticsProductionKey: StatisticsProduction
|
StatisticsProductionKey: StatisticsProduction
|
||||||
StatisticsCombatKey: StatisticsCombat
|
StatisticsCombatKey: StatisticsCombat
|
||||||
StatisticsGraphKey: StatisticsGraph
|
StatisticsGraphKey: StatisticsGraph
|
||||||
|
StatisticsArmyGraphKey: StatisticsArmyGraph
|
||||||
Children:
|
Children:
|
||||||
LogicKeyListener@OBSERVER_KEY_LISTENER:
|
LogicKeyListener@OBSERVER_KEY_LISTENER:
|
||||||
MenuButton@OPTIONS_BUTTON:
|
MenuButton@OPTIONS_BUTTON:
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ Background@INGAME_OBSERVERSTATS_BG:
|
|||||||
StatisticsProductionKey: StatisticsProduction
|
StatisticsProductionKey: StatisticsProduction
|
||||||
StatisticsCombatKey: StatisticsCombat
|
StatisticsCombatKey: StatisticsCombat
|
||||||
StatisticsGraphKey: StatisticsGraph
|
StatisticsGraphKey: StatisticsGraph
|
||||||
|
StatisticsArmyGraphKey: StatisticsArmyGraph
|
||||||
X: 25
|
X: 25
|
||||||
Y: 50
|
Y: 50
|
||||||
Width: 1025
|
Width: 1025
|
||||||
|
|||||||
Reference in New Issue
Block a user