ACE3/addons/markers/initSettings.inc.sqf

95 lines
2.7 KiB
Plaintext
Raw Normal View History

private _categoryName = format ["ACE %1", localize ELSTRING(map,Module_DisplayName)];
2018-01-06 06:52:57 +00:00
[
QGVAR(moveRestriction), "LIST",
[LSTRING(MoveRestriction), LSTRING(MoveRestriction_Description)],
[_categoryName, LLSTRING(Module_DisplayName)],
2018-01-06 06:52:57 +00:00
[
[
MOVE_RESTRICTION_NOBODY,
MOVE_RESTRICTION_ALL,
MOVE_RESTRICTION_ADMINS,
MOVE_RESTRICTION_GROUP_LEADERS,
MOVE_RESTRICTION_GROUP_LEADERS_ADMINS,
MOVE_RESTRICTION_OWNER
2018-01-06 06:52:57 +00:00
],
[
LSTRING(MoveRestriction_Nobody),
LSTRING(MoveRestriction_All),
LSTRING(MoveRestriction_Admins),
LSTRING(MoveRestriction_GroupLeaders),
LSTRING(MoveRestriction_GroupLeadersAndAdmins),
LSTRING(MoveRestriction_Owner)
2018-01-06 06:52:57 +00:00
],
1
]
2021-02-18 18:58:26 +00:00
] call CBA_fnc_addSetting;
[
QGVAR(timestampEnabled), "CHECKBOX",
[LSTRING(TimestampEnabled), LSTRING(TimestampEnabledDescription)],
[_categoryName, LLSTRING(Module_DisplayName)],
true
] call CBA_fnc_addSetting;
Markers - Add the option for UTC/System time timestamps (#9121) * Markers - Add setting for system timestamps * Moved time zone to different setting Added UTC Time zone Added UTC time offset slider Added translation in stringtable * Update fnc_onButtonClickConfirm.sqf Fixed mistake that added offset twice * - Removed tabs - Fixed calculating error * - Fixed tab problem Was a bit enthusiastic with removing tabs. This should to the trick. * - Changed tabs to spaces (Finaly) - Checked SQF with sqf_validator.py - Fixed decimal error by CBA menu * Delete build/_deps directory - This does not belong here * Update fnc_onButtonClickConfirm.sqf Added empty line back * Update addons/markers/functions/fnc_onButtonClickConfirm.sqf Formatting update Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com> * Update addons/markers/functions/fnc_onButtonClickConfirm.sqf Formatting update Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com> * Update initSettings.sqf Added newline at end of file * Update fnc_onButtonClickConfirm.sqf Fixed fnc header formatting * Update addons/markers/functions/fnc_onButtonClickConfirm.sqf Formatting Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com> * Update fnc_onButtonClickConfirm.sqf Updated formatting * Implemented review changes * Review suggestion * Bugfix return absolute positive number with modulo * Updated script to allow offset to exeed midnight in the past * Updated script to allow offset to exeed midnight in the past * Updated script to allow offset to exeed midnight in the past * Updated hour offset calculation * Add support for UTC+13 and +14 timezone * Add minutes UTC offset to timestamp * Add UTC minutes offset setting * Add translation for UTC minute offset setting * Prevent timestamp going over 24 after adding minutes offset * Modify english description for offset settings * Update addons/markers/initSettings.sqf * Properly handle minute offset with negative timezone * Implemented better solution to handle negative timestamp seconds offset * reverted 'Implemented better solution to handle negative timestamp seconds offset' * Revert "Implemented better solution to handle negative timestamp seconds offset" This reverts commit d2599bd9aa6d954552bc01ca05a17901dfa1df06. * Update timestamp calculation comments * Update timestamp calculation comments * Update documentation in UTC timestamp calculation --------- Co-authored-by: PabstMirror <pabstmirror@gmail.com> Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com> Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
2024-01-07 18:06:35 +00:00
[
QGVAR(timestampTimezone), "LIST",
[LSTRING(TimestampTimezone), LSTRING(TimestampTimezoneDescription)],
[_categoryName, LLSTRING(Module_DisplayName)],
[
[0, 1, 2],
[LSTRING(TimestampTimezoneIngameTime), LSTRING(TimestampTimezoneSystemTime), LSTRING(TimestampTimezoneUTCTime)],
0
],
true
] call CBA_fnc_addSetting;
[
QGVAR(timestampUTCOffset), "SLIDER",
[LSTRING(TimestampUTCOffset), LSTRING(TimestampUTCOffsetDescription)],
[_categoryName, LLSTRING(Module_DisplayName)],
[-12, 14, 0, 0],
true
] call CBA_fnc_addSetting;
[
QGVAR(TimestampUTCMinutesOffset), "LIST",
[LSTRING(TimestampUTCMinutesOffset), LSTRING(TimestampUTCMinutesOffsetDescription)],
[_categoryName, LLSTRING(Module_DisplayName)],
[
[0, 15, 30, 45],
[0, 15, 30, 45],
0
]
] call CBA_fnc_addSetting;
[
QGVAR(timestampHourFormat), "LIST",
[LSTRING(TimestampHourFormat), LSTRING(TimestampHourFormatDescription)],
[_categoryName, LLSTRING(Module_DisplayName)],
[
[24, 12],
[LSTRING(TimestampHourFormat24), LSTRING(TimestampHourFormat12)],
0
]
] call CBA_fnc_addSetting;
private _formatDescription = [
LLSTRING(TimestampFormatDescription0),
LLSTRING(TimestampFormatDescription1),
LLSTRING(TimestampFormatDescription2),
LLSTRING(TimestampFormatDescription3),
LLSTRING(TimestampFormatDescription4)
] joinString endl;
[
QGVAR(timestampFormat), "LIST",
[LSTRING(timestampFormat), _formatDescription],
[_categoryName, LLSTRING(Module_DisplayName)],
[
["HH", "HH:MM", "HH:MM:SS", "HH:MM:SS:MM"],
["HH", "HH:MM", "HH:MM:SS", "HH:MM:SS:MM"],
1
]
] call CBA_fnc_addSetting;