Display support powers
This commit is contained in:
@@ -382,7 +382,8 @@
|
|||||||
<Compile Include="Widgets\Logic\ServerCreationLogic.cs" />
|
<Compile Include="Widgets\Logic\ServerCreationLogic.cs" />
|
||||||
<Compile Include="Widgets\Logic\SettingsMenuLogic.cs" />
|
<Compile Include="Widgets\Logic\SettingsMenuLogic.cs" />
|
||||||
<Compile Include="Widgets\MoneyBinWidget.cs" />
|
<Compile Include="Widgets\MoneyBinWidget.cs" />
|
||||||
<Compile Include="Widgets\ObserverBuildIconsWidget.cs" />
|
<Compile Include="Widgets\ObserverProductionIconsWidget.cs" />
|
||||||
|
<Compile Include="Widgets\ObserverSupportPowerIconsWidget.cs" />
|
||||||
<Compile Include="Widgets\OrderButtonWidget.cs" />
|
<Compile Include="Widgets\OrderButtonWidget.cs" />
|
||||||
<Compile Include="Widgets\PowerBinWidget.cs" />
|
<Compile Include="Widgets\PowerBinWidget.cs" />
|
||||||
<Compile Include="Widgets\RadarBinWidget.cs" />
|
<Compile Include="Widgets\RadarBinWidget.cs" />
|
||||||
|
|||||||
@@ -21,18 +21,13 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
{
|
{
|
||||||
public class ObserverStatsLogic
|
public class ObserverStatsLogic
|
||||||
{
|
{
|
||||||
class StatsDropDownOption
|
|
||||||
{
|
|
||||||
public string Title;
|
|
||||||
public Func<bool> IsSelected;
|
|
||||||
public Action OnClick;
|
|
||||||
}
|
|
||||||
|
|
||||||
ContainerWidget basicStatsHeaders;
|
ContainerWidget basicStatsHeaders;
|
||||||
ContainerWidget economicStatsHeaders;
|
ContainerWidget economicStatsHeaders;
|
||||||
|
ContainerWidget supportStatsHeaders;
|
||||||
ScrollPanelWidget playerStatsPanel;
|
ScrollPanelWidget playerStatsPanel;
|
||||||
ScrollItemWidget basicPlayerTemplate;
|
ScrollItemWidget basicPlayerTemplate;
|
||||||
ScrollItemWidget economicPlayerTemplate;
|
ScrollItemWidget economicPlayerTemplate;
|
||||||
|
ScrollItemWidget supportPlayerTemplate;
|
||||||
ScrollItemWidget teamTemplate;
|
ScrollItemWidget teamTemplate;
|
||||||
DropDownButtonWidget statsDropDown;
|
DropDownButtonWidget statsDropDown;
|
||||||
LabelWidget title;
|
LabelWidget title;
|
||||||
@@ -49,12 +44,15 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
|
|
||||||
basicStatsHeaders = widget.Get<ContainerWidget>("BASIC_STATS_HEADERS");
|
basicStatsHeaders = widget.Get<ContainerWidget>("BASIC_STATS_HEADERS");
|
||||||
economicStatsHeaders = widget.Get<ContainerWidget>("ECONOMIC_STATS_HEADERS");
|
economicStatsHeaders = widget.Get<ContainerWidget>("ECONOMIC_STATS_HEADERS");
|
||||||
|
supportStatsHeaders = widget.Get<ContainerWidget>("SUPPORT_STATS_HEADERS");
|
||||||
|
|
||||||
playerStatsPanel = widget.Get<ScrollPanelWidget>("PLAYER_STATS_PANEL");
|
playerStatsPanel = widget.Get<ScrollPanelWidget>("PLAYER_STATS_PANEL");
|
||||||
playerStatsPanel.Layout = new GridLayout(playerStatsPanel);
|
playerStatsPanel.Layout = new GridLayout(playerStatsPanel);
|
||||||
|
|
||||||
basicPlayerTemplate = playerStatsPanel.Get<ScrollItemWidget>("BASIC_PLAYER_TEMPLATE");
|
basicPlayerTemplate = playerStatsPanel.Get<ScrollItemWidget>("BASIC_PLAYER_TEMPLATE");
|
||||||
economicPlayerTemplate = playerStatsPanel.Get<ScrollItemWidget>("ECONOMIC_PLAYER_TEMPLATE");
|
economicPlayerTemplate = playerStatsPanel.Get<ScrollItemWidget>("ECONOMIC_PLAYER_TEMPLATE");
|
||||||
|
supportPlayerTemplate = playerStatsPanel.Get<ScrollItemWidget>("SUPPORT_PLAYER_TEMPLATE");
|
||||||
|
|
||||||
teamTemplate = playerStatsPanel.Get<ScrollItemWidget>("TEAM_TEMPLATE");
|
teamTemplate = playerStatsPanel.Get<ScrollItemWidget>("TEAM_TEMPLATE");
|
||||||
|
|
||||||
statsDropDown = widget.Get<DropDownButtonWidget>("STATS_DROPDOWN");
|
statsDropDown = widget.Get<DropDownButtonWidget>("STATS_DROPDOWN");
|
||||||
@@ -84,6 +82,17 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
statsDropDown.GetText = () => "Economic";
|
statsDropDown.GetText = () => "Economic";
|
||||||
LoadStats(EconomicStats);
|
LoadStats(EconomicStats);
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
new StatsDropDownOption
|
||||||
|
{
|
||||||
|
Title = "Support",
|
||||||
|
IsSelected = () => supportStatsHeaders.Visible,
|
||||||
|
OnClick = () =>
|
||||||
|
{
|
||||||
|
ClearStats();
|
||||||
|
statsDropDown.GetText = () => "Support";
|
||||||
|
LoadStats(SupportStats);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Func<StatsDropDownOption, ScrollItemWidget, ScrollItemWidget> setupItem = (option, template) =>
|
Func<StatsDropDownOption, ScrollItemWidget, ScrollItemWidget> setupItem = (option, template) =>
|
||||||
@@ -107,9 +116,10 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
playerStatsPanel.Children.Clear();
|
playerStatsPanel.Children.Clear();
|
||||||
basicStatsHeaders.Visible = false;
|
basicStatsHeaders.Visible = false;
|
||||||
economicStatsHeaders.Visible = false;
|
economicStatsHeaders.Visible = false;
|
||||||
|
supportStatsHeaders.Visible = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void LoadStats(Action<Player> forEachPlayer)
|
void LoadStats(Func<Player, ScrollItemWidget> forEachPlayer)
|
||||||
{
|
{
|
||||||
var teams = players.GroupBy(p => (world.LobbyInfo.ClientWithIndex(p.ClientIndex) ?? new Session.Client()).Team).OrderBy(g => g.Key);
|
var teams = players.GroupBy(p => (world.LobbyInfo.ClientWithIndex(p.ClientIndex) ?? new Session.Client()).Team).OrderBy(g => g.Key);
|
||||||
foreach (var t in teams)
|
foreach (var t in teams)
|
||||||
@@ -122,23 +132,30 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
foreach (var p in team)
|
foreach (var p in team)
|
||||||
{
|
{
|
||||||
var player = p;
|
var player = p;
|
||||||
forEachPlayer(player);
|
playerStatsPanel.AddChild(forEachPlayer(player));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void EconomicStats(Player player)
|
ScrollItemWidget SupportStats(Player player)
|
||||||
|
{
|
||||||
|
supportStatsHeaders.Visible = true;
|
||||||
|
var template = SetupPlayerScrollItemWidget(supportPlayerTemplate, player);
|
||||||
|
|
||||||
|
AddPlayerFlagAndName(template, player);
|
||||||
|
|
||||||
|
var supportPowers = template.Get<ObserverSupportPowerIconsWidget>("SUPPORT_POWERS");
|
||||||
|
supportPowers.GetPlayer = () => player;
|
||||||
|
|
||||||
|
return template;
|
||||||
|
}
|
||||||
|
|
||||||
|
ScrollItemWidget EconomicStats(Player player)
|
||||||
{
|
{
|
||||||
economicStatsHeaders.Visible = true;
|
economicStatsHeaders.Visible = true;
|
||||||
var template = SetupPlayerScrollItemWidget(economicPlayerTemplate, player);
|
var template = SetupPlayerScrollItemWidget(economicPlayerTemplate, player);
|
||||||
|
|
||||||
var flag = template.Get<ImageWidget>("FACTION_FLAG");
|
AddPlayerFlagAndName(template, player);
|
||||||
flag.GetImageName = () => player.Country.Race;
|
|
||||||
flag.GetImageCollection = () => "flags";
|
|
||||||
|
|
||||||
var playerName = template.Get<LabelWidget>("PLAYER");
|
|
||||||
playerName.GetText = () => player.PlayerName + (player.WinState == WinState.Undefined ? "" : " (" + player.WinState + ")");
|
|
||||||
playerName.GetColor = () => player.ColorRamp.GetColor(0);
|
|
||||||
|
|
||||||
var res = player.PlayerActor.Trait<PlayerResources>();
|
var res = player.PlayerActor.Trait<PlayerResources>();
|
||||||
template.Get<LabelWidget>("CASH").GetText = () => "$" + (res.DisplayCash + res.DisplayOre);
|
template.Get<LabelWidget>("CASH").GetText = () => "$" + (res.DisplayCash + res.DisplayOre);
|
||||||
@@ -147,9 +164,10 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
change.GetText = () => Math.Round(res.IncomeChange * 100, 1, MidpointRounding.AwayFromZero) + "%";
|
change.GetText = () => Math.Round(res.IncomeChange * 100, 1, MidpointRounding.AwayFromZero) + "%";
|
||||||
change.GetColor = () =>
|
change.GetColor = () =>
|
||||||
{
|
{
|
||||||
if (res.IncomeChange < 0) return Color.Red;
|
var c = Math.Round(res.IncomeChange, 1, MidpointRounding.AwayFromZero);
|
||||||
if (res.IncomeChange > 0) return Color.LimeGreen;
|
if (c < 0) return Color.Red;
|
||||||
else return Color.White;
|
if (c > 0) return Color.LimeGreen;
|
||||||
|
return Color.White;
|
||||||
};
|
};
|
||||||
|
|
||||||
var assets = template.Get<LabelWidget>("TOTAL_ASSETS");
|
var assets = template.Get<LabelWidget>("TOTAL_ASSETS");
|
||||||
@@ -160,21 +178,15 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
var numHarvesters = template.Get<LabelWidget>("NUMBER_HARVESTERS");
|
var numHarvesters = template.Get<LabelWidget>("NUMBER_HARVESTERS");
|
||||||
numHarvesters.GetText = () => world.Actors.Count(a => a.Owner == player && !a.IsDead() && a.HasTrait<Harvester>()).ToString();
|
numHarvesters.GetText = () => world.Actors.Count(a => a.Owner == player && !a.IsDead() && a.HasTrait<Harvester>()).ToString();
|
||||||
|
|
||||||
playerStatsPanel.AddChild(template);
|
return template;
|
||||||
}
|
}
|
||||||
|
|
||||||
void BasicStats(Player player)
|
ScrollItemWidget BasicStats(Player player)
|
||||||
{
|
{
|
||||||
basicStatsHeaders.Visible = true;
|
basicStatsHeaders.Visible = true;
|
||||||
var template = SetupPlayerScrollItemWidget(basicPlayerTemplate, player);
|
var template = SetupPlayerScrollItemWidget(basicPlayerTemplate, player);
|
||||||
|
|
||||||
var flag = template.Get<ImageWidget>("FACTION_FLAG");
|
AddPlayerFlagAndName(template, player);
|
||||||
flag.GetImageName = () => player.Country.Race;
|
|
||||||
flag.GetImageCollection = () => "flags";
|
|
||||||
|
|
||||||
var playerName = template.Get<LabelWidget>("PLAYER");
|
|
||||||
playerName.GetText = () => player.PlayerName + (player.WinState == WinState.Undefined ? "" : " (" + player.WinState + ")");
|
|
||||||
playerName.GetColor = () => player.ColorRamp.GetColor(0);
|
|
||||||
|
|
||||||
var res = player.PlayerActor.Trait<PlayerResources>();
|
var res = player.PlayerActor.Trait<PlayerResources>();
|
||||||
template.Get<LabelWidget>("CASH").GetText = () => "$" + (res.DisplayCash + res.DisplayOre);
|
template.Get<LabelWidget>("CASH").GetText = () => "$" + (res.DisplayCash + res.DisplayOre);
|
||||||
@@ -188,10 +200,10 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
template.Get<LabelWidget>("KILLS").GetText = () => player.Kills.ToString();
|
template.Get<LabelWidget>("KILLS").GetText = () => player.Kills.ToString();
|
||||||
template.Get<LabelWidget>("DEATHS").GetText = () => player.Deaths.ToString();
|
template.Get<LabelWidget>("DEATHS").GetText = () => player.Deaths.ToString();
|
||||||
|
|
||||||
var production = template.Get<ObserverBuildIconsWidget>("PRODUCTION_ICONS");
|
var production = template.Get<ObserverProductionIconsWidget>("PRODUCTION_ICONS");
|
||||||
production.GetPlayer = () => player;
|
production.GetPlayer = () => player;
|
||||||
|
|
||||||
playerStatsPanel.AddChild(template);
|
return template;
|
||||||
}
|
}
|
||||||
|
|
||||||
ScrollItemWidget SetupPlayerScrollItemWidget(ScrollItemWidget template, Player player)
|
ScrollItemWidget SetupPlayerScrollItemWidget(ScrollItemWidget template, Player player)
|
||||||
@@ -206,6 +218,17 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void AddPlayerFlagAndName(ScrollItemWidget template, Player player)
|
||||||
|
{
|
||||||
|
var flag = template.Get<ImageWidget>("FLAG");
|
||||||
|
flag.GetImageName = () => player.Country.Race;
|
||||||
|
flag.GetImageCollection = () => "flags";
|
||||||
|
|
||||||
|
var playerName = template.Get<LabelWidget>("PLAYER");
|
||||||
|
playerName.GetText = () => player.PlayerName + (player.WinState == WinState.Undefined ? "" : " (" + player.WinState + ")");
|
||||||
|
playerName.GetColor = () => player.ColorRamp.GetColor(0);
|
||||||
|
}
|
||||||
|
|
||||||
static void InitializeWidgets(params Widget[] widgets)
|
static void InitializeWidgets(params Widget[] widgets)
|
||||||
{
|
{
|
||||||
var args = new WidgetArgs();
|
var args = new WidgetArgs();
|
||||||
@@ -221,5 +244,12 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
if (state == PowerState.Low) return Color.Orange;
|
if (state == PowerState.Low) return Color.Orange;
|
||||||
return Color.LimeGreen;
|
return Color.LimeGreen;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class StatsDropDownOption
|
||||||
|
{
|
||||||
|
public string Title;
|
||||||
|
public Func<bool> IsSelected;
|
||||||
|
public Action OnClick;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ using System.Drawing;
|
|||||||
|
|
||||||
namespace OpenRA.Mods.RA.Widgets
|
namespace OpenRA.Mods.RA.Widgets
|
||||||
{
|
{
|
||||||
public class ObserverBuildIconsWidget : Widget
|
public class ObserverProductionIconsWidget : Widget
|
||||||
{
|
{
|
||||||
public Func<Player> GetPlayer;
|
public Func<Player> GetPlayer;
|
||||||
Dictionary<string, Sprite> iconSprites;
|
Dictionary<string, Sprite> iconSprites;
|
||||||
@@ -26,7 +26,7 @@ namespace OpenRA.Mods.RA.Widgets
|
|||||||
Dictionary<ProductionQueue, Animation> clocks;
|
Dictionary<ProductionQueue, Animation> clocks;
|
||||||
|
|
||||||
[ObjectCreator.UseCtor]
|
[ObjectCreator.UseCtor]
|
||||||
public ObserverBuildIconsWidget(World world, WorldRenderer worldRenderer)
|
public ObserverProductionIconsWidget(World world, WorldRenderer worldRenderer)
|
||||||
: base()
|
: base()
|
||||||
{
|
{
|
||||||
iconSprites = Rules.Info.Values.Where(u => u.Traits.Contains<BuildableInfo>() && u.Name[0] != '^')
|
iconSprites = Rules.Info.Values.Where(u => u.Traits.Contains<BuildableInfo>() && u.Name[0] != '^')
|
||||||
@@ -38,7 +38,7 @@ namespace OpenRA.Mods.RA.Widgets
|
|||||||
clocks = new Dictionary<ProductionQueue, Animation>();
|
clocks = new Dictionary<ProductionQueue, Animation>();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected ObserverBuildIconsWidget(ObserverBuildIconsWidget other)
|
protected ObserverProductionIconsWidget(ObserverProductionIconsWidget other)
|
||||||
: base(other)
|
: base(other)
|
||||||
{
|
{
|
||||||
GetPlayer = other.GetPlayer;
|
GetPlayer = other.GetPlayer;
|
||||||
@@ -101,7 +101,7 @@ namespace OpenRA.Mods.RA.Widgets
|
|||||||
|
|
||||||
public override Widget Clone()
|
public override Widget Clone()
|
||||||
{
|
{
|
||||||
return new ObserverBuildIconsWidget(this);
|
return new ObserverProductionIconsWidget(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
107
OpenRA.Mods.RA/Widgets/ObserverSupportPowerIconsWidget.cs
Normal file
107
OpenRA.Mods.RA/Widgets/ObserverSupportPowerIconsWidget.cs
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
#region Copyright & License Information
|
||||||
|
/*
|
||||||
|
* Copyright 2007-2012 The OpenRA Developers (see AUTHORS)
|
||||||
|
* This file is part of OpenRA, which is free software. It is made
|
||||||
|
* available to you under the terms of the GNU General Public License
|
||||||
|
* as published by the Free Software Foundation. For more information,
|
||||||
|
* see COPYING.
|
||||||
|
*/
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using OpenRA.Graphics;
|
||||||
|
using OpenRA.Widgets;
|
||||||
|
using System.Drawing;
|
||||||
|
|
||||||
|
namespace OpenRA.Mods.RA.Widgets
|
||||||
|
{
|
||||||
|
public class ObserverSupportPowerIconsWidget : Widget
|
||||||
|
{
|
||||||
|
public Func<Player> GetPlayer;
|
||||||
|
Dictionary<string, Sprite> iconSprites;
|
||||||
|
World world;
|
||||||
|
WorldRenderer worldRenderer;
|
||||||
|
Dictionary<string, Animation> clocks;
|
||||||
|
|
||||||
|
[ObjectCreator.UseCtor]
|
||||||
|
public ObserverSupportPowerIconsWidget(World world, WorldRenderer worldRenderer)
|
||||||
|
: base()
|
||||||
|
{
|
||||||
|
iconSprites = Rules.Info.Values.SelectMany(u => u.Traits.WithInterface<SupportPowerInfo>())
|
||||||
|
.Select(u => u.Image).Distinct()
|
||||||
|
.ToDictionary(
|
||||||
|
u => u,
|
||||||
|
u => Game.modData.SpriteLoader.LoadAllSprites(u)[0]);
|
||||||
|
this.world = world;
|
||||||
|
this.worldRenderer = worldRenderer;
|
||||||
|
clocks = new Dictionary<string, Animation>();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected ObserverSupportPowerIconsWidget(ObserverSupportPowerIconsWidget other)
|
||||||
|
: base(other)
|
||||||
|
{
|
||||||
|
GetPlayer = other.GetPlayer;
|
||||||
|
iconSprites = other.iconSprites;
|
||||||
|
world = other.world;
|
||||||
|
worldRenderer = other.worldRenderer;
|
||||||
|
clocks = other.clocks;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Draw()
|
||||||
|
{
|
||||||
|
var player = GetPlayer();
|
||||||
|
if (player == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var powers = player.PlayerActor.Trait<SupportPowerManager>().Powers
|
||||||
|
.Select((a, i) => new { a, i });
|
||||||
|
foreach (var power in powers)
|
||||||
|
{
|
||||||
|
if (!clocks.ContainsKey(power.a.Key))
|
||||||
|
{
|
||||||
|
clocks.Add(power.a.Key, new Animation("clock"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
foreach (var power in powers)
|
||||||
|
{
|
||||||
|
var item = power.a.Value;
|
||||||
|
if (item == null)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
var sprite = iconSprites[item.Info.Image];
|
||||||
|
var size = sprite.size / new float2(2, 2);
|
||||||
|
var location = new float2(RenderBounds.Location) + new float2(power.i * (int)size.Length, 0);
|
||||||
|
WidgetUtils.DrawSHP(sprite, location, worldRenderer, size);
|
||||||
|
|
||||||
|
var clock = clocks[power.a.Key];
|
||||||
|
clock.PlayFetchIndex("idle",
|
||||||
|
() => (item.TotalTime - item.RemainingTime)
|
||||||
|
* (clock.CurrentSequence.Length - 1) / item.TotalTime);
|
||||||
|
clock.Tick();
|
||||||
|
WidgetUtils.DrawSHP(clock.Image, location, worldRenderer, size);
|
||||||
|
|
||||||
|
var tiny = Game.Renderer.Fonts["Tiny"];
|
||||||
|
var text = GetOverlayForItem(item);
|
||||||
|
tiny.DrawTextWithContrast(text,
|
||||||
|
location + new float2(16, 16) - new float2(tiny.Measure(text).X / 2, 0),
|
||||||
|
Color.White, Color.Black, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static string GetOverlayForItem(SupportPowerManager.SupportPowerInstance item)
|
||||||
|
{
|
||||||
|
if (item.Disabled) return "ON HOLD";
|
||||||
|
if (item.Ready) return "READY";
|
||||||
|
return WidgetUtils.FormatTime(item.RemainingTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override Widget Clone()
|
||||||
|
{
|
||||||
|
return new ObserverSupportPowerIconsWidget(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -518,6 +518,27 @@ Container@OBSERVER_ROOT:
|
|||||||
Font:Bold
|
Font:Bold
|
||||||
Text:Harvesters
|
Text:Harvesters
|
||||||
Align:Right
|
Align:Right
|
||||||
|
Container@SUPPORT_STATS_HEADERS:
|
||||||
|
X:0
|
||||||
|
Y:0
|
||||||
|
Width:PARENT_RIGHT
|
||||||
|
Height:PARENT_BOTTOM
|
||||||
|
Children:
|
||||||
|
Label@PLAYER_HEADER:
|
||||||
|
X:85
|
||||||
|
Y:40
|
||||||
|
Width:160
|
||||||
|
Height:25
|
||||||
|
Font:Bold
|
||||||
|
Text:Player
|
||||||
|
Label@SUPPORT_POWERS_HEADER:
|
||||||
|
X:245
|
||||||
|
Y:40
|
||||||
|
Width:300
|
||||||
|
Height:25
|
||||||
|
Font:Bold
|
||||||
|
Text:Support Powers
|
||||||
|
Align:Center
|
||||||
ScrollPanel@PLAYER_STATS_PANEL:
|
ScrollPanel@PLAYER_STATS_PANEL:
|
||||||
X:25
|
X:25
|
||||||
Y:70
|
Y:70
|
||||||
@@ -543,7 +564,7 @@ Container@OBSERVER_ROOT:
|
|||||||
Width:PARENT_RIGHT-35
|
Width:PARENT_RIGHT-35
|
||||||
Height:25
|
Height:25
|
||||||
Children:
|
Children:
|
||||||
Image@FACTION_FLAG:
|
Image@FLAG:
|
||||||
X:20
|
X:20
|
||||||
Y:5
|
Y:5
|
||||||
Width:35
|
Width:35
|
||||||
@@ -583,7 +604,7 @@ Container@OBSERVER_ROOT:
|
|||||||
Width:40
|
Width:40
|
||||||
Height:PARENT_BOTTOM
|
Height:PARENT_BOTTOM
|
||||||
Align:Right
|
Align:Right
|
||||||
ObserverBuildIcons@PRODUCTION_ICONS:
|
ObserverProductionIcons@PRODUCTION_ICONS:
|
||||||
X:575
|
X:575
|
||||||
Y:0
|
Y:0
|
||||||
Width:240
|
Width:240
|
||||||
@@ -594,7 +615,7 @@ Container@OBSERVER_ROOT:
|
|||||||
Width:PARENT_RIGHT-35
|
Width:PARENT_RIGHT-35
|
||||||
Height:25
|
Height:25
|
||||||
Children:
|
Children:
|
||||||
Image@FACTION_FLAG:
|
Image@FLAG:
|
||||||
X:20
|
X:20
|
||||||
Y:5
|
Y:5
|
||||||
Width:35
|
Width:35
|
||||||
@@ -633,6 +654,30 @@ Container@OBSERVER_ROOT:
|
|||||||
Width:60
|
Width:60
|
||||||
Height:PARENT_BOTTOM
|
Height:PARENT_BOTTOM
|
||||||
Align:Right
|
Align:Right
|
||||||
|
ScrollItem@SUPPORT_PLAYER_TEMPLATE:
|
||||||
|
X:0
|
||||||
|
Y:0
|
||||||
|
Width:PARENT_RIGHT-35
|
||||||
|
Height:25
|
||||||
|
Children:
|
||||||
|
Image@FLAG:
|
||||||
|
X:20
|
||||||
|
Y:5
|
||||||
|
Width:35
|
||||||
|
Height:PARENT_BOTTOM-5
|
||||||
|
ImageName:random
|
||||||
|
ImageCollection:flags
|
||||||
|
Label@PLAYER:
|
||||||
|
X:55
|
||||||
|
Y:0
|
||||||
|
Width:160
|
||||||
|
Height:PARENT_BOTTOM
|
||||||
|
Font:Bold
|
||||||
|
ObserverSupportPowerIcons@SUPPORT_POWERS:
|
||||||
|
X:215
|
||||||
|
Y:0
|
||||||
|
Width:300
|
||||||
|
Height:PARENT_BOTTOM
|
||||||
Background@FMVPLAYER:
|
Background@FMVPLAYER:
|
||||||
Width:WINDOW_RIGHT
|
Width:WINDOW_RIGHT
|
||||||
Height:WINDOW_BOTTOM
|
Height:WINDOW_BOTTOM
|
||||||
|
|||||||
Reference in New Issue
Block a user