mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
afb3dad22b
* Add timestamps to markers * Tiny tweaks * Update addons/markers/functions/fnc_canTimestamp.sqf Co-authored-by: Brett <brett@bmandesigns.com> * Update addons/markers/functions/fnc_initInsertMarker.sqf Co-authored-by: Brett <brett@bmandesigns.com> * Add timestamp format setting * Script cleanup, move checkbox under desc * Fix stringtable validation * Tweaks * Remove styling from stringtable * Edit timestamps instead of append Credits to @PabstMirror Co-authored-by: Brett <brett@bmandesigns.com>
31 lines
633 B
Plaintext
31 lines
633 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: commy2
|
|
* Angle Slider Pos changed
|
|
*
|
|
* Arguments:
|
|
* 0: Slider (idc 1210) <CONTROL>
|
|
* 1: Slider Data (angle: -180..180) <NUMBER>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [Slider, 2] call ace_markers_fnc_onSliderPosChangedAngle;
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_ctrl", "_data"];
|
|
TRACE_2("params",_ctrl,_data);
|
|
|
|
private _direction = round _data;
|
|
|
|
if (_direction < 0) then {
|
|
_direction = _direction + 360;
|
|
};
|
|
|
|
((ctrlParent _ctrl) displayCtrl IDC_ACE_INSERT_MARKER_ANGLE_TEXT) ctrlSetText format [localize LSTRING(MarkerDirection), _direction];
|
|
|
|
GVAR(currentMarkerAngle) = _data;
|