BIS fnc initSliderValue: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Function|Comments=
{{Function|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 7: Line 6:


|gr1= Eden Editor |GROUP1=
|gr1= Eden Editor |GROUP1=
____________________________________________________________________________________________


| Initialises a slider attribute control within the [[Eden Editor]]. Can also be used outside of [[Eden Editor]]. {{Informative| The slider and the edit control have to share the same controls group!}}|DESCRIPTION=
| Initialises a slider attribute control within the [[Eden Editor]]. Can also be used outside of [[Eden Editor]]. {{Informative| The slider and the edit control have to share the same controls group!}}|DESCRIPTION=
____________________________________________________________________________________________


| [ctrlSlider, ctrlEdit, unit, default] [[call]] [[BIS_fnc_initSliderValue]];
| [ctrlSlider, ctrlEdit, unit, default] [[call]] [[BIS_fnc_initSliderValue]];
Line 20: Line 17:


| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________


|x1= <code>[_this [[controlsGroupCtrl]] 100, _this [[controlsGroupCtrl]] 101, "m", 50] [[call]] [[BIS_fnc_initSliderValue]];</code> |EXAMPLE1=
|x1= <code>[_this [[controlsGroupCtrl]] 100, _this [[controlsGroupCtrl]] 101, "m", 50] [[call]] [[BIS_fnc_initSliderValue]];</code> |EXAMPLE1=
____________________________________________________________________________________________


|[[Eden Editor: Configuring Attributes]]|SEEALSO=
|[[Eden Editor: Configuring Attributes]]|SEEALSO=

Revision as of 23:24, 16 January 2021

Hover & click on the images for description

Description

Description:
Initialises a slider attribute control within the Eden Editor. Can also be used outside of Eden Editor.
The slider and the edit control have to share the same controls group!
Execution:
call
Groups:
Eden Editor

Syntax

Syntax:
[ctrlSlider, ctrlEdit, unit, default] call BIS_fnc_initSliderValue;
Parameters:
ctrlSlider: Control - Slider control, usually the first control within the controls group
ctrlEdit: Control - Edit Box, usually the second control within the controls group
unit: String - Measurement unit added behind the number within the edit box ("%" by default)
default: Number - When present, only the value is set, functionality is not initialized
Return Value:
Nothing

Examples

Example 1:
[_this controlsGroupCtrl 100, _this controlsGroupCtrl 101, "m", 50] call BIS_fnc_initSliderValue;

Additional Information

See also:
Eden Editor: Configuring Attributes

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

Notes

Bottom Section