2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-12-11 12:14:58 +00:00
|
|
|
/*
|
|
|
|
* 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>
|
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Example:
|
2024-01-06 21:26:46 +00:00
|
|
|
* [DISPLAY] call ace_inventory_fnc_currentItemListBox
|
2017-06-08 13:31:51 +00:00
|
|
|
*
|
2015-12-11 12:14:58 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
2015-12-11 00:02:15 +00:00
|
|
|
|
|
|
|
params ["_display"];
|
|
|
|
|
|
|
|
scopeName "main";
|
|
|
|
|
|
|
|
{
|
|
|
|
private _control = _display displayCtrl _x;
|
|
|
|
|
|
|
|
if (ctrlShown _control) then {
|
2015-12-11 12:14:58 +00:00
|
|
|
_control breakOut "main";
|
2015-12-11 00:02:15 +00:00
|
|
|
};
|
2024-01-06 21:26:46 +00:00
|
|
|
} forEach [IDC_ITEMLIST_GROUND, IDC_ITEMLIST_SOLDIER, IDC_ITEMLIST_UNIFORM, IDC_ITEMLIST_VEST, IDC_ITEMLIST_BACKPACK];
|
2015-12-11 00:02:15 +00:00
|
|
|
|
2021-07-27 17:39:45 +00:00
|
|
|
controlNull
|