mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
7f998c3234
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
33 lines
767 B
Plaintext
33 lines
767 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: commy2
|
|
* Returns the current item list box of given inventory display.
|
|
* These can be Ground, Soldier, Uniform, Backpack or Vest.
|
|
* Can also be Weapon since 1.52, but that apparently uses one of the above.
|
|
*
|
|
* Arguments:
|
|
* 0: Inventory display <DISPLAY>
|
|
*
|
|
* Return Value:
|
|
* Currently selected item list box <CONTROL>
|
|
*
|
|
* Example:
|
|
* [DISPLAY] call ace_inventory_fnc_currentItemListBox
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_display"];
|
|
|
|
scopeName "main";
|
|
|
|
{
|
|
private _control = _display displayCtrl _x;
|
|
|
|
if (ctrlShown _control) then {
|
|
_control breakOut "main";
|
|
};
|
|
} forEach [IDC_ITEMLIST_GROUND, IDC_ITEMLIST_SOLDIER, IDC_ITEMLIST_UNIFORM, IDC_ITEMLIST_VEST, IDC_ITEMLIST_BACKPACK];
|
|
|
|
controlNull
|