mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
74 lines
2.0 KiB
Plaintext
74 lines
2.0 KiB
Plaintext
|
private ["_fieldManual","_btnAbort"];
|
||
|
|
||
|
_fieldManual = _display displayCtrl 122;
|
||
|
_fieldManual ctrlEnable false;
|
||
|
_btnSave = _display displayCtrl 103;
|
||
|
_btnSave ctrlEnable false;
|
||
|
_btnAbort = _display displayCtrl 104;
|
||
|
_btnAbort ctrlEnable false;
|
||
|
|
||
|
|
||
|
_respawnButton = _display displayCtrl 1010;
|
||
|
_respawnButton ctrlEnable false;
|
||
|
|
||
|
//Change to a scheduled environment
|
||
|
|
||
|
[_btnAbort,_display] spawn {
|
||
|
disableSerialization;
|
||
|
_startTime = diag_tickTime+10;
|
||
|
_btnAbort = _this select 0;
|
||
|
_display = _this select 1;
|
||
|
waitUntil {
|
||
|
_time = _startTime - diag_tickTime;
|
||
|
if (isNull _display || _time <= 0) exitWith {true};
|
||
|
_btnAbort ctrlSetText format[localize "str_epoch_abort",[_time,"SS.MS"] call BIS_fnc_secondsToString];
|
||
|
false
|
||
|
};
|
||
|
if (!isNull _display) then {
|
||
|
_btnAbort ctrlSetText localize "str_disp_int_abort";
|
||
|
_btnAbort ctrlEnable true;
|
||
|
};
|
||
|
};
|
||
|
[_display,_btnAbort,_fieldManual,_btnSave] spawn {
|
||
|
disableSerialization;
|
||
|
_display = _this select 0;
|
||
|
_btnAbort = _this select 1;
|
||
|
_fieldManual = _this select 2;
|
||
|
_btnSave = _this select 3;
|
||
|
_profilName = _display displayctrl 109;
|
||
|
_pauseText = _display displayctrl 523;
|
||
|
_pauseSetText = toUpper(localize "str_a3_cfguigrids_gui_0");
|
||
|
_fieldManualText = toUpper(localize "str_a3_rscdisplaywelcome_pare_list3_title");
|
||
|
_btnSaveText = toUpper(localize "str_disp_int_save");
|
||
|
|
||
|
waitUntil {
|
||
|
_fieldManual ctrlShow true;
|
||
|
_fieldManual ctrlEnable false;
|
||
|
_fieldManual ctrlSetText _fieldManualText;
|
||
|
|
||
|
_btnSave ctrlShow true;
|
||
|
_btnSave ctrlSetText _btnSaveText;
|
||
|
|
||
|
_pauseText ctrlSetText _pauseSetText;
|
||
|
_profilName ctrlSetText profileName;
|
||
|
|
||
|
uiSleep 0.2;
|
||
|
isNull _display
|
||
|
};
|
||
|
};
|
||
|
[_display] spawn {
|
||
|
disableSerialization;
|
||
|
_display = _this select 0;
|
||
|
_pushCustomVar = compile preprocessFileLineNumbers "\x\addons\a3_epoch_code\compile\functions\EPOCH_pushCustomVar.sqf";
|
||
|
false call _pushCustomVar;
|
||
|
|
||
|
_startTime = diag_tickTime+5;
|
||
|
waitUntil {
|
||
|
uiSleep 0.2;
|
||
|
(isNull _display) || ((_startTime - diag_tickTime) <= 0)
|
||
|
};
|
||
|
if (!isNull _display) then {
|
||
|
true call _pushCustomVar;
|
||
|
};
|
||
|
};
|
||
|
true
|