mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
6843a221ad
Co-authored-by: commy2 <commy-2@gmx.de> Co-authored-by: PabstMirror <pabstmirror@gmail.com> Co-authored-by: jonpas <jonpas33@gmail.com>
29 lines
626 B
Plaintext
Executable File
29 lines
626 B
Plaintext
Executable File
#include "script_component.hpp"
|
|
/*
|
|
* Author: frankplow
|
|
* Applies scale from on slider position change.
|
|
*
|
|
* Arguments:
|
|
* 0: Slider (idc 1420) <CONTROL>
|
|
* 1: Slider Data (scale: 0.5...2.0) <NUMBER>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [slider, 1.5] call ace_markers_fnc_onSliderPosChangedScale
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_ctrl", "_data"];
|
|
TRACE_2("params",_ctrl,_data);
|
|
|
|
private _scale = _data * 100;
|
|
_scale = round _scale;
|
|
_scale = _scale / 100;
|
|
|
|
((ctrlParent _ctrl) displayCtrl IDC_ACE_INSERT_MARKER_SCALE_TEXT) ctrlSetText format [localize LSTRING(MarkerScale), _scale];
|
|
|
|
GVAR(currentMarkerScale) = _data;
|