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.)
m (Added the first argument, otherwise this will just screw with people... as it did me.)
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=Panel
 +
|name=self
 +
|desc=The panel object.
 
}}
 
}}
 
{{Arg
 
{{Arg

Revision as of 23:48, 9 June 2015

 PANEL:OnMouseWheeled( )

Description

Called whenever the mouse wheel was used.

Arguments

Panel self

The panel object.

Arguments

number scrollDelta

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