01-11-2017, 06:00 PM
I would like to change value max length used to set resource limit(like food, log, iron, stone...etc) in produce building and trading building.
I tried to modify some .rsc file and rebuild them, but it's not working.
\resource\Dialog\SharedElements.rsc
Code:
NumberEditDescription spinnerEditSmall
{
ElementDescription _border = "SharedElements.rsc:sunkenBorder";
int _minWidth = 32;//change to 72
int _rightPad = 2;
int _leftPad = 2;
Font _font = "Font\FontSmall.rsc";
int _initialValue = 0;
int _maxLength = 4;//change to 7
int _minValue = 0;
int _maxValue = 9999;//change to 9999999
bool _allowNegative = false;
}
Code:
NumberEditDescription spinnerEditSmall5
{
ElementDescription _border = "SharedElements.rsc:sunkenBorder";
int _minWidth = 32;//change to 72
int _rightPad = 2;
int _leftPad = 2;
Font _font = "Font\FontSmall.rsc";
int _initialValue = 0;
int _maxLength = 5;//change to 7
int _minValue = 0;
int _maxValue = 99999;//change to 9999999
bool _allowNegative = false;
}
Code:
NumberEditDescription spinnerEditSmall6
{
ElementDescription _border = "SharedElements.rsc:sunkenBorder";
int _minWidth = 42;//change to 72
int _rightPad = 2;
int _leftPad = 2;
Font _font = "Font\FontSmall.rsc";
int _initialValue = 0;
int _maxLength = 6;//change to 7
int _minValue = 0;
int _maxValue = 999999;//change to 9999999
bool _allowNegative = false;
}
resource.rsc
"\Dialog\SharedElements.rsc:spinnerEditSmall"
"\Dialog\SharedElements.rsc:spinnerEditSmall5"
"\Dialog\SharedElements.rsc:spinnerEditSmall6"
Do I miss something?[img]<fileStore.core_Emoticons>/emoticons/huh.png[/img]/emoticons/huh@2x.png 2x" title="o.O" width="20" />