From 628d33984d9228f1781d13a65fbb80f35facc899 Mon Sep 17 00:00:00 2001 From: hybrid Date: Thu, 11 Jun 2026 19:55:24 +0300 Subject: init --- Client/GUI/GUI_Display_Parameters.sqf | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Client/GUI/GUI_Display_Parameters.sqf (limited to 'Client/GUI/GUI_Display_Parameters.sqf') diff --git a/Client/GUI/GUI_Display_Parameters.sqf b/Client/GUI/GUI_Display_Parameters.sqf new file mode 100644 index 0000000..84e7956 --- /dev/null +++ b/Client/GUI/GUI_Display_Parameters.sqf @@ -0,0 +1,30 @@ +/* Ingame parameters dump. */ + +for [{_i = 0},{_i < (count (missionConfigFile/"Params"))},{_i = _i + 1}] do { + _paramName = (configName ((missionConfigFile >> "Params") select _i)); + _text = getText (missionConfigFile >> "Params" >> _paramName >> "title"); + _values = getArray (missionConfigFile >> "Params" >> _paramName >> "values"); + _texts = getArray (missionConfigFile >> "Params" >> _paramName >> "texts"); + + _value = if (isMultiplayer) then {paramsArray select _i} else {getNumber (missionConfigFile >> "Params" >> _paramName >> "default")}; + _status = _texts select (_values find _value); + + lnbAddRow [22003,[_text,_status]]; +}; + +while {alive player && dialog} do { +/*---it is in the Main Menu now //MrNiceGuy + _uptime = Call GetTime; + ctrlSetText [22005,Format[localize 'STR_WF_MAIN_Uptime',_uptime select 0,_uptime select 1,_uptime select 2, _uptime select 3]]; +*/ + sleep 0.1; + if (side player != sideJoined) exitWith {closeDialog 0}; + if (!dialog) exitWith {}; + + //--- Back Button. + if (MenuAction == 1) exitWith { //---added-MrNiceGuy + MenuAction = -1; + closeDialog 0; + createDialog "WF_Menu"; + }; +}; \ No newline at end of file -- cgit v1.3.1