ACE3/addons/atragmx/functions/fnc_update_scope_unit.sqf

30 lines
649 B
Plaintext
Raw Permalink Normal View History

#include "..\script_component.hpp"
/*
* Author: Ruthberg
* Updates the scope unit fields
*
* Arguments:
* None
*
* Return Value:
* None
*
* Example:
* call ace_atragmx_fnc_update_scope_unit
*
* Public: No
*/
2015-04-21 09:24:59 +00:00
ctrlSetText [2000, GVAR(scopeUnits) select GVAR(currentScopeUnit)];
ctrlSetText [2001, Str(GVAR(currentScopeClickNumber))];
if (GVAR(currentScopeUnit) == 3) then {
ctrlSetText [5000, format["Clicks=%1", GVAR(currentScopeClickNumber)]];
2015-04-21 09:24:59 +00:00
if (GVAR(showMainPage)) then {
ctrlShow [2001, true];
};
} else {
ctrlSetText [5000, GVAR(scopeUnits) select GVAR(currentScopeUnit)];
2015-04-21 09:24:59 +00:00
ctrlShow [2001, false];
};