mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix build error with make
This commit is contained in:
parent
ad7c5657c5
commit
5034dffec8
@ -2,36 +2,9 @@ class Cfg3DEN {
|
|||||||
class Attributes {
|
class Attributes {
|
||||||
class Slider;
|
class Slider;
|
||||||
class GVAR(slider): Slider {
|
class GVAR(slider): Slider {
|
||||||
attributeLoad = " \
|
attributeLoad = "params [""_ctrlGroup""]; private _slider = _ctrlGroup controlsGroupCtrl 100; private _edit = _ctrlGroup controlsGroupCtrl 101; _slider sliderSetPosition _value; _edit ctrlSetText ([_value, 1, 1] call CBA_fnc_formatNumber); ";
|
||||||
params [""_ctrlGroup""]; \
|
attributeSave = "params [""_ctrlGroup""]; sliderPosition (_ctrlGroup controlsGroupCtrl 100); ";
|
||||||
private _slider = _ctrlGroup controlsGroupCtrl 100; \
|
onLoad = "params [""_ctrlGroup""]; private _slider = _ctrlGroup controlsGroupCtrl 100; private _edit = _ctrlGroup controlsGroupCtrl 101; _slider sliderSetRange [0, 2]; _slider ctrlAddEventHandler [""SliderPosChanged"", { params [""_slider""]; private _edit = (ctrlParentControlsGroup _slider) controlsGroupCtrl 101; private _value = sliderPosition _slider; _edit ctrlSetText ([_value, 1, 1] call CBA_fnc_formatNumber); }]; _edit ctrlAddEventHandler [""KillFocus"", { params [""_edit""]; private _slider = (ctrlParentControlsGroup _edit) controlsGroupCtrl 100; private _value = ((parseNumber ctrlText _edit) min 2) max 0; _slider sliderSetPosition _value; _edit ctrlSetText str _value; }];";
|
||||||
private _edit = _ctrlGroup controlsGroupCtrl 101; \
|
|
||||||
_slider sliderSetPosition _value; \
|
|
||||||
_edit ctrlSetText ([_value, 1, 1] call CBA_fnc_formatNumber); \
|
|
||||||
";
|
|
||||||
attributeSave = " \
|
|
||||||
params [""_ctrlGroup""]; \
|
|
||||||
sliderPosition (_ctrlGroup controlsGroupCtrl 100); \
|
|
||||||
";
|
|
||||||
onLoad = " \
|
|
||||||
params [""_ctrlGroup""]; \
|
|
||||||
private _slider = _ctrlGroup controlsGroupCtrl 100; \
|
|
||||||
private _edit = _ctrlGroup controlsGroupCtrl 101; \
|
|
||||||
_slider sliderSetRange [0, 2]; \
|
|
||||||
_slider ctrlAddEventHandler [""SliderPosChanged"", { \
|
|
||||||
params [""_slider""]; \
|
|
||||||
private _edit = (ctrlParentControlsGroup _slider) controlsGroupCtrl 101; \
|
|
||||||
private _value = sliderPosition _slider; \
|
|
||||||
_edit ctrlSetText ([_value, 1, 1] call CBA_fnc_formatNumber); \
|
|
||||||
}]; \
|
|
||||||
_edit ctrlAddEventHandler [""KillFocus"", { \
|
|
||||||
params [""_edit""]; \
|
|
||||||
private _slider = (ctrlParentControlsGroup _edit) controlsGroupCtrl 100; \
|
|
||||||
private _value = ((parseNumber ctrlText _edit) min 2) max 0; \
|
|
||||||
_slider sliderSetPosition _value; \
|
|
||||||
_edit ctrlSetText str _value; \
|
|
||||||
}]; \
|
|
||||||
";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
class Object {
|
class Object {
|
||||||
|
Loading…
Reference in New Issue
Block a user