mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
32 lines
561 B
Plaintext
32 lines
561 B
Plaintext
|
/*
|
||
|
* Author: Alganthe
|
||
|
* Toggle the stats control group
|
||
|
*
|
||
|
* Arguments:
|
||
|
* 0: Arsenal display <DISPLAY>
|
||
|
* 1: Button control <CONTROL>
|
||
|
*
|
||
|
* Return Value:
|
||
|
* None
|
||
|
*
|
||
|
* Public: No
|
||
|
*/
|
||
|
#include "script_component.hpp"
|
||
|
#include "..\defines.hpp"
|
||
|
|
||
|
params ["_display"];
|
||
|
|
||
|
(_display displayCtrl IDC_statsButton) ctrlShow GVAR(showStats);
|
||
|
GVAR(showStats) = !GVAR(showStats);
|
||
|
|
||
|
{
|
||
|
(_display displayCtrl _x) ctrlShow GVAR(showStats);
|
||
|
} foreach [
|
||
|
IDC_statsBox,
|
||
|
IDC_statsPreviousPage,
|
||
|
IDC_statsNextPage,
|
||
|
IDC_statsCurrentPage,
|
||
|
IDC_statsButtonClose
|
||
|
];
|
||
|
|