From 5034dffec8cfd8b165d297be5eeef6b97e0d6c5d Mon Sep 17 00:00:00 2001 From: Glowbal Date: Sun, 4 Sep 2016 21:51:13 +0200 Subject: [PATCH] Fix build error with make --- addons/advanced_fatigue/CfgEden.hpp | 33 +++-------------------------- 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/addons/advanced_fatigue/CfgEden.hpp b/addons/advanced_fatigue/CfgEden.hpp index dcabcc2ed6..8307c8a2a5 100644 --- a/addons/advanced_fatigue/CfgEden.hpp +++ b/addons/advanced_fatigue/CfgEden.hpp @@ -2,36 +2,9 @@ class Cfg3DEN { class Attributes { class Slider; class GVAR(slider): Slider { - 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); \ - "; - 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; \ - }]; \ - "; + 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); "; + 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 {