I’m creating a list of elements using a loop and using the command AddListBoxRow. What i need to know is the name the objects that are added to the list.
For example, i have this:
<UIListbox name="AUGMENTS_MINUS" x=308 y=40 width=19 height=320 xPadding=0 yPadding=0
showpartialchild=true unequalcontrols=true >
<!-- Skill Prototype -->
<UIPane name="AUGMENTS_MINUS_PROTO" width=PARENT_WIDTH height=26 prototype=true tupple=true
OnLeftClick0=UIObject_Misc_ExtractData("self:","string",1,local:10)
OnLeftClick1=UIObject_Misc_ExtractData("self:","string",2,local:11)
OnLeftClick2=UIObject_Misc_ExecuteServerScript(gui_soulbinding_aug_alter_val,local:10,local:11)
OnLeftClick3=UIObject_Misc_ExecuteServerScript(gui_soulbinding_refresh_aug_val) >
<UIButton name="AUGMENT_DECREASE" width=PARENT_WIDTH height=19 >
<UIFrame state=up fill="gui_tom_minus_btn2_up.tga" />
<UIFrame state=down fill="gui_tom_minus_btn2_up.tga" />
<UIFrame state=focused fill="gui_tom_minus_btn2_up.tga" />
<UIFrame state=hilited fill="gui_tom_minus_btn2_up.tga" />
<UIFrame state=hifocus fill="gui_tom_minus_btn2_up.tga" />
<UIFrame state=disabled fill="gui_tom_minus_btn2_d.tga" />
</UIButton>
</UIPane>
</UIListbox>
I need to know the names of the “AUGMENTS_MINUS_PROTO” and “AUGMENT_DECREASE” that are created using the command AddListBoxRow so later i can use the command SetGUIObjectDisabled when i do other stuff in the UI.
For reference, here is a picture of what i’m doing, what is inside the red square is being created with a loop and the command AddListBoxRow and i need to disable the + button when you don’t have more points left(the big - 0 -) or disable the - button when you haven’t spent points in a bonification.
The solution that i though is to doing it manually in the XML like this(but is what i want to avoid):
<UIButton name="AUGMENT_DECREASE_1" width=19 height=19
OnLeftClick0=UIObject_Misc_ExecuteServerScript(gui_soulbinding_aug_alter_val,1,-1)
OnLeftClick1=UIObject_Misc_ExecuteServerScript(gui_soulbinding_refresh_aug_val) >
<UIFrame state=up fill="gui_tom_minus_btn2_up.tga" />
<UIFrame state=down fill="gui_tom_minus_btn2_up.tga" />
<UIFrame state=focused fill="gui_tom_minus_btn2_up.tga" />
<UIFrame state=hilited fill="gui_tom_minus_btn2_up.tga" />
<UIFrame state=hifocus fill="gui_tom_minus_btn2_up.tga" />
<UIFrame state=disabled fill="gui_tom_minus_btn2_d.tga" />
</UIButton>
<UIButton name="AUGMENT_DECREASE_2" y=20 width=19 height=19
OnLeftClick0=UIObject_Misc_ExecuteServerScript(gui_soulbinding_aug_alter_val,2,-1)
OnLeftClick1=UIObject_Misc_ExecuteServerScript(gui_soulbinding_refresh_aug_val) >
<UIFrame state=up fill="gui_tom_minus_btn2_up.tga" />
<UIFrame state=down fill="gui_tom_minus_btn2_up.tga" />
<UIFrame state=focused fill="gui_tom_minus_btn2_up.tga" />
<UIFrame state=hilited fill="gui_tom_minus_btn2_up.tga" />
<UIFrame state=hifocus fill="gui_tom_minus_btn2_up.tga" />
<UIFrame state=disabled fill="gui_tom_minus_btn2_d.tga" />
</UIButton>
...
<UIButton name="AUGMENT_DECREASE_X" y=X width=19 height=19
OnLeftClick0=UIObject_Misc_ExecuteServerScript(gui_soulbinding_aug_alter_val,X,-1)
OnLeftClick1=UIObject_Misc_ExecuteServerScript(gui_soulbinding_refresh_aug_val) >
<UIFrame state=up fill="gui_tom_minus_btn2_up.tga" />
<UIFrame state=down fill="gui_tom_minus_btn2_up.tga" />
<UIFrame state=focused fill="gui_tom_minus_btn2_up.tga" />
<UIFrame state=hilited fill="gui_tom_minus_btn2_up.tga" />
<UIFrame state=hifocus fill="gui_tom_minus_btn2_up.tga" />
<UIFrame state=disabled fill="gui_tom_minus_btn2_d.tga" />
</UIButton>