mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
5e396a3793
This reverts commit 4d1a5194ea
.
25 lines
526 B
Plaintext
25 lines
526 B
Plaintext
/*
|
|
* Author: Ruthberg
|
|
* Shows/Hides the gun ammo data controls
|
|
*
|
|
* Arguments:
|
|
* visible - <BOOL>
|
|
*
|
|
* Return Value:
|
|
* Nothing
|
|
*
|
|
* Example:
|
|
* false call ace_atragmx_fnc_show_gun_ammo_data
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
GVAR(showGunAmmoData) = _this;
|
|
|
|
{ctrlShow [_x, _this]} forEach [12000, 120000, 12001, 120010, 12002, 120020, 12003, 120030, 12004, 120040, 12005, 120050, 12006, 120060, 120061, 12007, 12008, 12009, 12010, 12011];
|
|
|
|
if (_this) then {
|
|
[] call FUNC(update_gun_ammo_data);
|
|
};
|