mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
29 lines
689 B
Plaintext
29 lines
689 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: Ruthberg
|
|
* Shows/Hides the range card setup controls
|
|
*
|
|
* Arguments:
|
|
* visible - <BOOL>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* false call ace_atragmx_fnc_show_range_card_setup
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
GVAR(showRangeCardSetup) = _this;
|
|
|
|
{ctrlShow [_x, _this]} forEach [10000, 10001, 10002, 10003, 10004, 10005, 10006, 10007, 10008, 10009];
|
|
|
|
if (_this) then {
|
|
ctrlSetFocus ((uiNamespace getVariable "ATragMX_Display") displayCtrl 10006);
|
|
|
|
ctrlSetText [10003, Str(Round(GVAR(rangeCardStartRange)))];
|
|
ctrlSetText [10004, Str(Round(GVAR(rangeCardEndRange)))];
|
|
ctrlSetText [10005, Str(Round(GVAR(rangeCardIncrement)))];
|
|
};
|