mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
a3aef6a066
Co-authored-by: LinkIsGrim <salluci.lovi@gmail.com>
28 lines
691 B
Plaintext
28 lines
691 B
Plaintext
#include "..\script_component.hpp"
|
|
#include "..\defines.hpp"
|
|
/*
|
|
* Author: Alganthe
|
|
* Handles the previous / next page buttons for stats.
|
|
*
|
|
* Arguments:
|
|
* 0: Arsenal display <DISPLAY>
|
|
* 1: Stats page <CONTROL>
|
|
* 2: Previous (false) or next (true) page <BOOL>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_display", "_control", "_nextPage"];
|
|
|
|
TRACE_1("control enabled",ctrlEnabled _control);
|
|
if !(ctrlEnabled _control) exitWith {};
|
|
|
|
GVAR(currentStatPage) = GVAR(currentStatPage) + ([-1, 1] select _nextPage);
|
|
|
|
GVAR(statsInfo) params ["", "_panelControl", "_curSel", "_itemCfg"];
|
|
|
|
[QGVAR(displayStats), [_display, _panelControl, _curSel, _itemCfg]] call CBA_fnc_localEvent;
|