GUIButton.SetCallbackFunc

From Liberty Unleashed Wiki
Revision as of 14:00, 31 October 2010 by Juppi (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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.

Syntax

This function can take different lists of parameters:

  1. bool GUIButton.SetCallbackFunc( string szFunction )
  1. bool GUIButton.SetCallbackFunc( closure pFunction )

Arguments

  • szFunction - This is the name of the callback function
  • pFunction - This is a pointer to the callback function

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.  

Notes

Used functions and other notes here.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox