BIS fnc OM Module initSmallValueSilder: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "(\|p[0-9]+ *= *[^(]+\(Optional(, default[^)]*)\) )M([a-z])" to "$1m$3")
m (Text replacement - "(\|p[0-9]+ *= *[^(]+\(Optional(, default[^)]*)\) )W([a-z])" to "$1w$3")
Line 16: Line 16:
|p3= unit: [[String]] - (Optional, default "%") measurement unit added behind the number
|p3= unit: [[String]] - (Optional, default "%") measurement unit added behind the number


|p4= defaultValue: [[Number]] - (Optional, default nil) When present, only the value is set, functionality is not initialized
|p4= defaultValue: [[Number]] - (Optional, default nil) when present, only the value is set, functionality is not initialized


|r1= [[Boolean]]
|r1= [[Boolean]]

Revision as of 13:33, 8 November 2023

Hover & click on the images for description

Description

Description:
Initialize slider with edit box showing its value supporting small decimal numbers.
Execution:
call
Groups:
Old Man

Syntax

Syntax:
[ctrlSlider, ctrlEdit, unit, defaultValue] call BIS_fnc_OM_Module_initSmallValueSilder
Parameters:
ctrlSlider: Control - Slider Control
ctrlEdit: Control - Edit Control
unit: String - (Optional, default "%") measurement unit added behind the number
defaultValue: Number - (Optional, default nil) when present, only the value is set, functionality is not initialized
Return Value:
Boolean

Examples

Example 1:
[_ctrlSlider,_ctrlEdit,"m",500] call BIS_fnc_OM_Module_initSmallValueSilder;//Set default value only.
Example 2:
[_ctrlSlider,_ctrlEdit,"m"] call BIS_fnc_OM_Module_initSmallValueSilder;//Initialize functionality.

Additional Information

See also:
BIS_fnc_initSliderValue

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note