01-24-2017, 07:08 PM
There shouldn't be a problem with changing it, no.
This is the code we did for a Textile flagged gatherer.
Code:
ResourceLimitUIConfig resourceLimitConfig
{
ResourceLimit _resourceLimit = Textile;
}
RibbonDescription resourceLimit
{
Alignment _alignment = TopRight;
bool vertical = false;
int _topPad = 8;
int _cellPad = 8;
ElementDescription _elements
[
"labelLimit",
"editLimit",
]
Dialog _toolTipDialog = "Dialog/ToolTip.rsc";
StringTable _toolTipStringTable = "UI/ColonialStringTable.rsc";
String _toolTipText = "TextileLimitTip";
}
LabelDescription labelLimit
{
Alignment _alignment = MidLeft;
Font _font = "Font\FontSmall.rsc";
int _imageWidth = 20;
int _imageHeight = 20;
int _spacing = 4;
LabelPosition _labelPosition = TextRight;
Alignment _textAlignment = MidLeft;
StringTable _stringTable = "UI/ColonialStringTable.rsc";
String _text = "TextileLimitShort";
SpriteSheet _spriteSheet = "UI/ColonialSpriteSheet.rsc";
String _spriteName = "Rug";
}
SpinnerDescription editLimit : "Dialog/SharedElements.rsc:spinnerSmall6"
{
int _increment = 100;
ElementDescription _border = "Dialog/SharedElements.rsc:flatButtonEnabledBorder";
}