PANEL/OnMouseWheeled

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Undo 20927 - The passed panel is implied with the colon. See http://www.lua.org/pil/5.html.)
Line 1: Line 1:
 
{{Hook
 
{{Hook
 +
|Name=OnMouseWheeled
 +
|Parent=PANEL
 
|Description=Called whenever the mouse wheel was used.
 
|Description=Called whenever the mouse wheel was used.
 
|Realm=Client
 
|Realm=Client
|Predicted=No
 
|Name=OnMouseWheeled
 
|Parent=PANEL
 
}}
 
{{Arg
 
|type=table
 
|name=PanelData
 
|desc=The X, Y, Width and Height of the panel.
 
 
}}
 
}}
 
{{Arg
 
{{Arg
 
|type=number
 
|type=number
|name=ScrollDelta
+
|name=scrollDelta
 
|desc=The scroll delta, indicating how much the user turned the mouse wheel.
 
|desc=The scroll delta, indicating how much the user turned the mouse wheel.
 
}}
 
}}

Revision as of 23:08, 9 June 2015

 PANEL:OnMouseWheeled( )

Description

Called whenever the mouse wheel was used.

Arguments

number scrollDelta

The scroll delta, indicating how much the user turned the mouse wheel.
Personal tools
Navigation