Closed R3D9477 closed 8 years ago
Sorry for late response. I tried to resolve this issue several times and failed. I can only suggest you switch to other targets, because current versions of neko+hscript act really wierd.
I checked now for -cpp target. This situation is relevant for this target, too. Labels and icons don't work for toggles, when it loaded with RTXml.
I've finally found the reason. Your example now works fine for me with latest StablexUI
many thanks! work's fine now!
Hi. Toggle don't display text when it loaded with RTXml
Gui.xml:
this example already work (with UIBuilder): Main.hx
and this code don't work (RTXml): Main.hx
Thanks.
same problem with Checkbox Gui.xml:
and for Group: Gui.xml
and for StateButton text not displayed, too Gui.xml
I think that RTXml can't parse field "states:ru.stblex.ui.DynamicList"
this differences between checkbox.states, who loaded via UIBuilder (normal):
Main.hx:20: { _hash => {down => { _ico => [object Bmp] }, up => { _ico => [object Bmp] }}, _cls => { __name__ => [ru,stablex,ui,misc,BtnState], __construct__ => #function:0, prototype => { skin => null, text => null, set_skinName => #function:1, __class__ => ..., skinName => null, set_ico => #function:1, __properties__ => { set_skinName => set_skinName, set_ico => set_ico, get_ico => get_ico }, __serialize => #function:0, get_ico => #function:0, _ico => null }, new => #function:0 } }
and checkbox.states, who loaded via RTXml (invalid):
Main.hx:23: { _hash => {up => {}}, _cls => { __name__ => [ru,stablex,ui,misc,BtnState], __construct__ => #function:0, prototype => { skin => null, text => null, set_skinName => #function:1, __class__ => ..., skinName => null, set_ico => #function:1, __properties__ => { set_skinName => set_skinName, set_ico => set_ico, get_ico => get_ico }, __serialize => #function:0, get_ico => #function:0, _ico => null }, new => #function:0 } }
xml: