summaryrefslogtreecommitdiffstats
path: root/Client/GUI/GUI_Display_Parameters.sqf
blob: 84e7956bcae78bdb3a2538c0921320e22c83229b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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";
	};
};