Markers - Add setting for system timestamps

This commit is contained in:
PabstMirror 2023-01-08 17:26:21 -06:00
parent a997ae60bf
commit 15372558b2
2 changed files with 7 additions and 2 deletions

View File

@ -42,6 +42,11 @@ if (cbChecked _aceTimestamp && {ACE_player call FUNC(canTimestamp)}) then {
_time = _time - 12;
_periodPostfix = " pm";
};
} else {
if (GVAR(timestampHourFormat) == 0) then {
systemTime params ["", "", "", "_hour", "_min", "_sec"];
_time = _hour + _min/60 + _sec/3600;
};
};
_description ctrlSetText format [

View File

@ -37,8 +37,8 @@ private _categoryName = format ["ACE %1", localize ELSTRING(map,Module_DisplayNa
[LSTRING(TimestampHourFormat), LSTRING(TimestampHourFormatDescription)],
[_categoryName, LLSTRING(Module_DisplayName)],
[
[24, 12],
[LSTRING(TimestampHourFormat24), LSTRING(TimestampHourFormat12)],
[24, 12, 0],
[LSTRING(TimestampHourFormat24), LSTRING(TimestampHourFormat12), "System"],
0
]
] call CBA_fnc_addSetting;