2015-04-11 21:40:46 +00:00
|
|
|
/*
|
|
|
|
* Author: Ruthberg
|
|
|
|
* Updates the scope unit fields
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* Nothing
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Nothing
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* call ace_atragmx_fnc_update_scope_unit
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-04-06 13:51:59 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-04-21 09:24:59 +00:00
|
|
|
ctrlSetText [2000, GVAR(scopeUnits) select GVAR(currentScopeUnit)];
|
|
|
|
ctrlSetText [2001, Str(GVAR(currentScopeClickNumber))];
|
|
|
|
|
2015-04-19 10:07:27 +00:00
|
|
|
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];
|
|
|
|
};
|
2015-04-19 10:07:27 +00:00
|
|
|
} else {
|
|
|
|
ctrlSetText [5000, GVAR(scopeUnits) select GVAR(currentScopeUnit)];
|
2015-04-21 09:24:59 +00:00
|
|
|
ctrlShow [2001, false];
|
|
|
|
};
|