Squirrel/Client/Functions/GUIButton/SetCallbackFunc

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(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.SetCallbackFunction( string szFunction )</code>
+
<code>bool GUIButton.SetCallbackFunc( string szFunction )</code>
<code>bool GUIButton.SetCallbackFunction( closure pFunction )</code>
+
<code>bool GUIButton.SetCallbackFunc( closure pFunction )</code>
  
 
== Arguments ==
 
== Arguments ==

Latest revision as of 14:00, 31 October 2010

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events


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:

  1. bool GUIButton.SetCallbackFunc( string szFunction )
  1. 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.

  1.  
  2. -- todo
  3.  

[edit] Notes

Used functions and other notes here.

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox