2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2015-04-11 21:40:46 +00:00
|
|
|
/*
|
|
|
|
* Author: Ruthberg
|
|
|
|
* Shows/Hides the range card setup controls
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* visible - <BOOL>
|
|
|
|
*
|
|
|
|
* Return Value:
|
2017-06-08 13:31:51 +00:00
|
|
|
* None
|
2015-04-11 21:40:46 +00:00
|
|
|
*
|
|
|
|
* Example:
|
2017-06-08 13:31:51 +00:00
|
|
|
* false call ace_atragmx_fnc_show_range_card_setup
|
2015-04-11 21:40:46 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-04-06 13:51:59 +00:00
|
|
|
|
2015-04-16 11:46:32 +00:00
|
|
|
GVAR(showRangeCardSetup) = _this;
|
|
|
|
|
2015-04-06 13:51:59 +00:00
|
|
|
{ctrlShow [_x, _this]} forEach [10000, 10001, 10002, 10003, 10004, 10005, 10006, 10007, 10008, 10009];
|
2015-04-16 11:46:32 +00:00
|
|
|
|
|
|
|
if (_this) then {
|
2015-04-16 17:52:20 +00:00
|
|
|
ctrlSetFocus ((uiNamespace getVariable "ATragMX_Display") displayCtrl 10006);
|
2016-05-03 00:32:44 +00:00
|
|
|
|
2015-04-16 11:46:32 +00:00
|
|
|
ctrlSetText [10003, Str(Round(GVAR(rangeCardStartRange)))];
|
|
|
|
ctrlSetText [10004, Str(Round(GVAR(rangeCardEndRange)))];
|
|
|
|
ctrlSetText [10005, Str(Round(GVAR(rangeCardIncrement)))];
|
|
|
|
};
|