DNumSlider/ValueChanged

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{PanelFunc |Parent=DSlider |Name=ValueChanged |Description=Called when the value has been changed. This will also be called when the user manually changes the value trough th...")
 
(Internal, sp.)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{PanelFunc
 
{{PanelFunc
 +
|Description={{Internal}} Called when the value has been changed. This will also be called when the user manually changes the value through the text panel.
 +
 +
This is an internal function. Override {{ClassFunction|DNumSlider|OnValueChanged}} instead.
 
|Parent=DSlider
 
|Parent=DSlider
 
|Name=ValueChanged
 
|Name=ValueChanged
|Description=Called when the value has been changed. This will also be called when the user manually changes the value trough the text panel.
 
 
}}
 
 
{{Arg
 
|type=DNumSlider
 
|name=panel
 
|desc=The slider panel that has been changed.
 
 
}}
 
}}
 
{{Arg
 
{{Arg
 
|type=number
 
|type=number
 
|name=value
 
|name=value
|desc=The value it has been changed to.
+
|desc=The value the slider has been changed to.
 
}}
 
}}

Latest revision as of 19:23, 22 February 2016

 DNumSlider:ValueChanged( )

DescriptionPanelFunc

This is an internal function or feature.
This means you will be able to use it, but you really shouldn't.
Called when the value has been changed. This will also be called when the user manually changes the value through the text panel.

This is an internal function. Override DNumSlider:OnValueChanged instead.

Arguments

number value

The value the slider has been changed to.
Personal tools
Navigation