Jump to content

[SOLVED] How to i pass parameter from button callback?


photo

Recommended Posts

Posted

<callback type="clicked">TestGui::SelectButton(1)</callback>

 

This doesn't seem to work. So how do I pass variable "1" into the callback?

Posted

You can pass a string argument:

<callback type="clicked" string="1">TestGui::SelectButton</callback>

 

Or pass a script variable by it's name:

<callback type="clicked" variable="the_name_of_variable">TestGui::SelectButton</callback>

×
×
  • Create New...