summaryrefslogtreecommitdiffstats
path: root/Client/GUI/GUI_Display_Parameters.sqf
diff options
context:
space:
mode:
authorhybrid <hybrid@hybridlabs.pro>2026-06-11 19:55:04 +0300
committerhybrid <hybrid@hybridlabs.pro>2026-06-11 19:55:04 +0300
commitb06990293397d4b6d0374097f09d1cc5679216e3 (patch)
tree5719922562e317a8083250c178f24376b6692569 /Client/GUI/GUI_Display_Parameters.sqf
downloada2wf_saralite-b06990293397d4b6d0374097f09d1cc5679216e3.tar.gz
a2wf_saralite-b06990293397d4b6d0374097f09d1cc5679216e3.tar.bz2
a2wf_saralite-b06990293397d4b6d0374097f09d1cc5679216e3.zip
init
Diffstat (limited to '')
-rw-r--r--Client/GUI/GUI_Display_Parameters.sqf30
1 files changed, 30 insertions, 0 deletions
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