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.)
Line 5: Line 5:
 
|Name=OnMouseWheeled
 
|Name=OnMouseWheeled
 
|Parent=PANEL
 
|Parent=PANEL
}}
 
{{Arg
 
|type=number
 
|name=ScrollDelta
 
|desc=The scroll delta, indicating how much the user turned the mouse wheel.
 
 
}}
 
}}
 
{{Arg
 
{{Arg
Line 15: Line 10:
 
|name=PanelData
 
|name=PanelData
 
|desc=The X, Y, Width and Height of the panel.
 
|desc=The X, Y, Width and Height of the panel.
 +
}}
 +
{{Arg
 +
|type=number
 +
|name=ScrollDelta
 +
|desc=The scroll delta, indicating how much the user turned the mouse wheel.
 
}}
 
}}

Revision as of 22:35, 9 June 2015

 PANEL:OnMouseWheeled( )

Description

Called whenever the mouse wheel was used.

Arguments

table PanelData

The X, Y, Width and Height of the panel.

Arguments

number ScrollDelta

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