Quote:
Originally Posted by xP3NG3Rx
If you use ui.PythonScriptLoader to load your gui why did you write like this?
Code:
self.hthadd = self.GetChild("HTH_Add")
self.hthadd.SetNumberMode()
self.hthadd.SetText("0")
self.editLineDict["ht"] = self.hthadd
Code:
{
"name" : "INT_Add",
"type" : "editline",
"x" : 61/2,
"y" : 3,
"width" : 20,
"height" : 18,
"text" : "0",#!!
"only_number" : 1,#!!
"input_limit" : 2,
"enable_codepage" : 0,
"r" : 1.0,
"g" : 1.0,
"b" : 1.0,
"a" : 1.0,
"text_horizontal_align" : "center",
},
However thanks.
And a little customization by me(shorter&sexier): [Only registered and activated users can see links. Click Here To Register...]
|
Code:
0417 16:03:31742 :: Traceback (most recent call last):
0417 16:03:31743 :: File "ui.py", line 1020, in CallEvent
0417 16:03:31743 :: File "game.py", line 2372, in __OpenStatusUp
0417 16:03:31743 :: AttributeError
0417 16:03:31743 :: :
0417 16:03:31743 :: 'module' object has no attribute 'StatusUp'
0417 16:03:31743 ::
btw, I write 90 and click on '+'.
Wasn't this supposed to give automatically 90 stat points instead of growing one by one?