P.ActionSignal

From GMod Wiki

Revision as of 21:20, 3 November 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Event Hook
Hook NameActionSignal
SyntaxPANEL:ActionSignal( String key, value )
DescriptionThis is called on the parent frame when a child VGUI element is used. The key corresponds to what is set by Panel.SetCommand.
ReturnsNil
Lua StateNewerClient.png
BBCode[b][url=wiki.garrysmod.com/?title=P.ActionSignal]P.ActionSignal [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionPrints "MyButton was pressed!" to the console when activated.
Used onNewerClient.png
Code
 
function MyParentPanel:ActionSignal(key,value)
	if key == "MyButton" then
		Msg("MyButton was pressed!\n")
	end
end
 
OutputMyButton was pressed!


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox