Author Topic: recalling trenchwars dirt and maxdirt amounts  (Read 608 times)

I'm currently trying to make the TrenchWars mod look nicer, however, I can't seem to get the dirt amoumts correct.
Code: [Select]
function GameConnection::updateDirt(%this)
{
if(%this.isInfiniteMiner)
{
%dirt = "°";
}
else
{
%dirt = TrenchDigSO.value[%this.getBLID(),"trenchDirtCount"];
}
%this.bottomPrint("<just:right><font:impact:24><color:ffff00>Dirt <font:impact:34><color:ffffff>@ %Dirt @/ @ $TrenchDig::dirtCount @ ",1,2,3,4);
}
Basically I want to to match T+T ammo interface, however I can't seem to get that just right, its in the center, and it isn't recalling the dirt amounts correctly.

Code: [Select]
function GameConnection::updateDirt(%this)
{
if(%this.isInfiniteMiner)
{
%dirt = "°";
}
else
{
%dirt = TrenchDigSO.value[%this.getBLID(),"trenchDirtCount"];
}
%this.bottomPrint("<just:right><font:impact:24><color:ffff00>Dirt <font:impact:34><color:ffffff>" @ %Dirt @ "/" @ $TrenchDig::dirtCount,1,2,3,4);
}
« Last Edit: January 21, 2013, 03:14:18 AM by !Trinick »

Code: [Select]
function GameConnection::updateDirt(%this)
{
if(%this.isInfiniteMiner)
{
%dirt = "°";
}
else
{
%dirt = TrenchDigSO.value[%this.getBLID(),"trenchDirtCount"];
}
%this.bottomPrint("<just:right><font:impact:24><color:ffff00>Dirt <font:impact:34><color:ffffff>" @ %Dirt @"/ "@ $TrenchDig::dirtCount,1,2,3,4);
}
You forgot "" around the / !

Oof, yes I did. Edited.