mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add more function headers
This commit is contained in:
@ -1,3 +1,19 @@
|
||||
/*
|
||||
* Author: Dedmen
|
||||
* Add a listbox row
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Config category <STRING> (must be "CfgWeapons", "CfgVehicles", "CfgMagazines", "CfgVoice")
|
||||
* 1: Classname <STRING>
|
||||
* 2: Panel control <CONTROL>
|
||||
* 3: Name of the picture entry in that Cfg class <STRING>
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
* Public: Yes
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
params ["_configCategory", "_className", "_ctrlPanel", ["_pictureEntryName", "picture", [""]]];
|
||||
|
||||
@ -6,7 +22,6 @@ private _cacheNamespace = _ctrlPanel; //For better readability.
|
||||
private _cachedItemInfo = _cacheNamespace getVariable [_configCategory+_className, []];
|
||||
|
||||
//_cachedItemInfo == [_displayName, _itemPicture, _modPicture, _modID]
|
||||
|
||||
if (_cachedItemInfo isEqualTo []) then {//Not in cache. So get info and put into cache.
|
||||
|
||||
private _configPath = configFile >> _configCategory >> _className;
|
||||
|
@ -1,3 +1,21 @@
|
||||
/*
|
||||
* Author: Alganthe, Dedmen
|
||||
* Add virtual items to the provided target
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Target <OBJECT>
|
||||
* 1: Items <ARRAY of strings> <BOOL>
|
||||
* 2: Add globally <BOOL>
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
* Example:
|
||||
* [_box, ["item1", "item2", "itemN"]] call ace_arsenal_fnc_addVirtualItems
|
||||
* [_box, true, false] call ace_arsenal_fnc_addVirtualItems
|
||||
*
|
||||
* Public: Yes
|
||||
*/
|
||||
#include "script_component.hpp"
|
||||
#include "..\defines.hpp"
|
||||
|
||||
|
@ -1,3 +1,16 @@
|
||||
/*
|
||||
* Author: Alganthe
|
||||
* Add or remove item(s) when the + or - button is pressed in the right panel
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Display <DISPLAY>
|
||||
* 1: Add or remove <SCALAR> (-1: remove, 1: Add)
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
#include "script_component.hpp"
|
||||
#include "..\defines.hpp"
|
||||
|
||||
|
@ -1,3 +1,15 @@
|
||||
/*
|
||||
* Author: Alganthe
|
||||
* Export current loadout / default loadouts list to clipboard
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Display <DISPLAY>
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
#include "script_component.hpp"
|
||||
|
||||
params ["_display"];
|
||||
|
@ -1,3 +1,15 @@
|
||||
/*
|
||||
* Author: Alganthe
|
||||
* Hide arsenal's interface
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Display <DISPLAY>
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
#include "script_component.hpp"
|
||||
#include "..\defines.hpp"
|
||||
|
||||
@ -22,7 +34,6 @@ if (_showToggle) then {
|
||||
IDC_totalWeight,
|
||||
IDC_menuBar,
|
||||
IDC_infoBox,
|
||||
IDC_stats,
|
||||
IDC_leftTabContent,
|
||||
IDC_rightTabContent,
|
||||
IDC_rightTabContentListnBox,
|
||||
@ -38,4 +49,4 @@ if (_showToggle) then {
|
||||
RIGHT_PANEL_ITEMS_BACKGROUND_IDCS,
|
||||
RIGHT_PANEL_ITEMS_IDCS,
|
||||
IDC_buttonRemoveAll
|
||||
];
|
||||
];
|
||||
|
Reference in New Issue
Block a user