PANEL/OnMouseWheeled

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Added the first argument, otherwise this will just screw with people... as it did me.)
(Undo revision 20931 by Saikred (talk) - The passed panel is implied with the colon. See http://www.lua.org/pil/5.html.)
Line 1: Line 1:
 
{{Hook
 
{{Hook
|Description=Called whenever the mouse wheel was used.
 
|Realm=Client
 
|Predicted=No
 
 
|Name=OnMouseWheeled
 
|Name=OnMouseWheeled
 
|Parent=PANEL
 
|Parent=PANEL
}}
+
|Description=Called whenever the mouse wheel was used.
{{Arg
+
|Realm=Client
|type=Panel
+
|name=self
+
|desc=The panel object.
+
 
}}
 
}}
 
{{Arg
 
{{Arg

Revision as of 03:19, 10 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