Squirrel/Client/Functions/GUIButton/SetCallbackFunc
From Liberty Unleashed Wiki
(Difference between revisions)
(Created page with '{{Squirrel/Title|GUIButton.SetCallbackFunc}} This function sets a click callback function for the button. If no callback function has been set, [[Squirrel/Client/Events/GUI/onCl…') |
m |
||
Line 6: | Line 6: | ||
This function can take different lists of parameters: | This function can take different lists of parameters: | ||
− | <code>bool GUIButton. | + | <code>bool GUIButton.SetCallbackFunc( string szFunction )</code> |
− | <code>bool GUIButton. | + | <code>bool GUIButton.SetCallbackFunc( closure pFunction )</code> |
== Arguments == | == Arguments == |
Latest revision as of 14:00, 31 October 2010
This function sets a click callback function for the button. If no callback function has been set, onClientClickButton will be called. The callback function does not have any arguments nor does it return anything.
[edit] Syntax
This function can take different lists of parameters:
bool GUIButton.SetCallbackFunc( string szFunction )
bool GUIButton.SetCallbackFunc( closure pFunction )
[edit] Arguments
- szFunction - This is the name of the callback function
- pFunction - This is a pointer to the callback function
[edit] Example
This function needs an example. You can help us complete the wiki by writing one, or maybe even more :o
Explanation here.
-- todo
[edit] Notes
Used functions and other notes here.