OnClientGUISize: Difference between revisions
Jump to navigation
Jump to search
(New page: {{Client event}} __NOTOC__ This event is triggered each time the user resizes a GUI element. ==Parameters== ''None'' ==Source== The source of this event i...) |
No edit summary |
||
Line 10: | Line 10: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua"> | This example would output to the chatbox what the player is resizing. | ||
<syntaxhighlight lang="lua">addEventHandler("onClientGUISize",guiRoot,function() | |||
outputChatBox("You have resized :"..getElementType(source)) | |||
end) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 19: | Line 21: | ||
===Client event functions=== | ===Client event functions=== | ||
{{Client_event_functions}} | {{Client_event_functions}} | ||
Revision as of 06:48, 28 June 2012
This event is triggered each time the user resizes a GUI element.
Parameters
None
Source
The source of this event is the GUI element which was resized.
Example
This example would output to the chatbox what the player is resizing.
addEventHandler("onClientGUISize",guiRoot,function() outputChatBox("You have resized :"..getElementType(source)) end)
See Also
GUI events
Input
GUI
- onClientGUIAccepted
- onClientGUIBlur
- onClientGUIChanged
- onClientGUIClick
- onClientGUIComboBoxAccepted
- onClientGUIDoubleClick
- onClientGUIFocus
- onClientGUIMouseDown
- onClientGUIMouseUp
- onClientGUIMove
- onClientGUIScroll
- onClientGUISize
- onClientGUITabSwitched
- onClientMouseEnter
- onClientMouseLeave
- onClientMouseMove
- onClientMouseWheel
Client event functions
- triggerLatentServerEvent
- triggerServerEvent
- Shared
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- wasEventCancelled