remove SplitOreAndCash from MoneyBinWidget; noone uses it anymore
This commit is contained in:
@@ -17,8 +17,6 @@ namespace OpenRA.Mods.RA.Widgets
|
|||||||
{
|
{
|
||||||
class MoneyBinWidget : Widget
|
class MoneyBinWidget : Widget
|
||||||
{
|
{
|
||||||
public bool SplitOreAndCash = false;
|
|
||||||
|
|
||||||
readonly World world;
|
readonly World world;
|
||||||
[ObjectCreator.UseCtor]
|
[ObjectCreator.UseCtor]
|
||||||
public MoneyBinWidget( [ObjectCreator.Param] World world )
|
public MoneyBinWidget( [ObjectCreator.Param] World world )
|
||||||
@@ -40,8 +38,7 @@ namespace OpenRA.Mods.RA.Widgets
|
|||||||
new float2(Bounds.Left, 0));
|
new float2(Bounds.Left, 0));
|
||||||
|
|
||||||
// Cash
|
// Cash
|
||||||
var cashDigits = (SplitOreAndCash ? playerResources.DisplayCash
|
var cashDigits = (playerResources.DisplayCash + playerResources.DisplayOre).ToString();
|
||||||
: (playerResources.DisplayCash + playerResources.DisplayOre)).ToString();
|
|
||||||
var x = Bounds.Right - 65;
|
var x = Bounds.Right - 65;
|
||||||
|
|
||||||
foreach (var d in cashDigits.Reverse())
|
foreach (var d in cashDigits.Reverse())
|
||||||
@@ -51,21 +48,6 @@ namespace OpenRA.Mods.RA.Widgets
|
|||||||
new float2(x, 6));
|
new float2(x, 6));
|
||||||
x -= 14;
|
x -= 14;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SplitOreAndCash)
|
|
||||||
{
|
|
||||||
x -= 14;
|
|
||||||
// Ore
|
|
||||||
var oreDigits = playerResources.DisplayOre.ToString();
|
|
||||||
|
|
||||||
foreach (var d in oreDigits.Reverse())
|
|
||||||
{
|
|
||||||
Game.Renderer.RgbaSpriteRenderer.DrawSprite(
|
|
||||||
ChromeProvider.GetImage( digitCollection, (d - '0').ToString()),
|
|
||||||
new float2(x, 6));
|
|
||||||
x -= 14;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,7 +81,6 @@ Container@INGAME_ROOT:
|
|||||||
Y:0
|
Y:0
|
||||||
Width:320
|
Width:320
|
||||||
Height: 32
|
Height: 32
|
||||||
SplitOreAndCash:No
|
|
||||||
Children:
|
Children:
|
||||||
OrderButton@SELL:
|
OrderButton@SELL:
|
||||||
Id:SELL
|
Id:SELL
|
||||||
@@ -283,4 +282,4 @@ Container@INGAME_ROOT:
|
|||||||
Y:260
|
Y:260
|
||||||
Width:200
|
Width:200
|
||||||
Height:20
|
Height:20
|
||||||
Text: Give Exploration
|
Text: Give Exploration
|
||||||
|
|||||||
@@ -90,7 +90,6 @@ Container@INGAME_ROOT:
|
|||||||
Y:0
|
Y:0
|
||||||
Width:320
|
Width:320
|
||||||
Height: 32
|
Height: 32
|
||||||
SplitOreAndCash:No
|
|
||||||
Children:
|
Children:
|
||||||
OrderButton@SELL:
|
OrderButton@SELL:
|
||||||
Id:SELL
|
Id:SELL
|
||||||
|
|||||||
Reference in New Issue
Block a user