Scripting/Client/GUI/list.SetCallbackFunc
Called when the player clicks a row (also the row that was already selected): callback(index, text). A function with fewer parameters gets fewer arguments - function onPick(index) and function onPick() work too. Setting Selected from a script does not call it.
Syntax
list.SetCallbackFunc(callback)Arguments
- string callback
Example
function onScriptLoad()
{
// list is a list handle (see List boxes and dropdown boxes)
list.SetCallbackFunc( "myFunction" );
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
Section: List boxes and dropdown boxes
Categories: Client functions | List boxes and dropdown boxes