OnClientGUISize: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (→See Also) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Client event}} | {{Client event}} | ||
__NOTOC__ | __NOTOC__ | ||
This event is triggered | This event is triggered when the local client resizes a GUI element. | ||
==Parameters== | ==Parameters== | ||
No parameters. | |||
==Source== | ==Source== | ||
The [[event system#Event source|source]] of this event is the GUI element | The [[event system#Event source|source]] of this event is the GUI element that was resized. | ||
==Example== | ==Example== | ||
This example | This example will output the type of GUI element that the client has resized, to the chatbox. | ||
<syntaxhighlight lang="lua">addEventHandler("onClientGUISize",guiRoot,function() | <syntaxhighlight lang="lua">addEventHandler("onClientGUISize",guiRoot,function() | ||
outputChatBox("You have resized | outputChatBox("You have resized a "..getElementType(source)..".",255,255,0) | ||
end) | end) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{GUI_events}} | {{GUI_events}} | ||
===Client event functions=== | ===Client event functions=== | ||
{{Client_event_functions}} | {{Client_event_functions}} |
Latest revision as of 14:31, 20 May 2018
This event is triggered when the local client resizes a GUI element.
Parameters
No parameters.
Source
The source of this event is the GUI element that was resized.
Example
This example will output the type of GUI element that the client has resized, to the chatbox.
addEventHandler("onClientGUISize",guiRoot,function() outputChatBox("You have resized a "..getElementType(source)..".",255,255,0) end)
See Also
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