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.)
 
(One intermediate revision by one user not shown)
Line 3: Line 3:
 
|Realm=Client
 
|Realm=Client
 
|Predicted=No
 
|Predicted=No
|Name=OnMouseWheeled
 
|Parent=PANEL
 
}}
 
{{Arg
 
|type=Panel
 
|name=self
 
|desc=The panel object.
 
 
}}
 
}}
 
{{Arg
 
{{Arg
Line 15: Line 8:
 
|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.
 +
}}
 +
{{Ret
 +
|type=boolean
 +
|desc=Return true to suppress default action.
 
}}
 
}}

Latest revision as of 17:40, 31 May 2019

 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.

Returns

boolean

Return true to suppress default action.
Personal tools
Navigation