value_param
This type represents a value data used by some control types.
Note, that this part: <type>
is used to designate what exact type the instance of this type is holding. For example, when it says value_param<bool>
, it means that get
will return a bool
value, and set
will accept only the type bool
as it's val
parameter.
get
Returns the value.
Arguments
None.
Returns
Type
Description
<type>
Value.
Example
get_direct
Returns the value disrgarding any active keybinds.
Arguments
None.
Returns
Type
Description
<type>
Value.
Example
set
Sets the value.
It is advised to use set_value
method of the control, if any.
Arguments
Name
Type
Description
val
<type>
Value.
Returns
Nothing.
Example
get_hotkey_state
Returns true
if there's any active hotkeys.
Arguments
None.
Returns
Type
Description
bool
true
if any hotkey is active.
Example
disable_hotkeys
Disables all active hotkeys. This allows you to override the value.
Arguments
None.
Returns
Nothing.
Example
Last updated