2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-04-11 21:40:46 +00:00
|
|
|
/*
|
|
|
|
* Author: Ruthberg
|
|
|
|
* Updates the scope unit fields
|
|
|
|
*
|
|
|
|
* Arguments:
|
2017-06-08 13:31:51 +00:00
|
|
|
* None
|
2015-04-11 21:40:46 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
2017-06-08 13:31:51 +00:00
|
|
|
* None
|
2015-04-11 21:40:46 +00:00
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* call ace_atragmx_fnc_update_scope_unit
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-04-06 13:51:59 +00:00
|
|
|
|
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];
|
2017-06-08 13:31:51 +00:00
|
|
|
};
|