mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
0b19a8d527
* Initial commit * Add/remove items and switching between categories * Add ability to change mode * Save attribute and clear button * Search bar and double click to toggle * Add export button * Add attribute init function * Fix multiple selection with different items * Correct bad code and remove unneeded include * Update stringtable.xml From common pbo whitelist (modified) and a3 stringtables * Disable attribute on humans * Move includes to top ref #6407
27 lines
668 B
Plaintext
27 lines
668 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: mharis001
|
|
* Handles double clicking a row in 3DEN attribute listbox.
|
|
*
|
|
* Arguments:
|
|
* 0: Listbox <CONTROL>
|
|
* 1: Row index <NUMBER>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [CONTROL, 0] call ace_arsenal_fnc_attributeDblClick
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_listbox", "_currentRow"];
|
|
TRACE_1("Double click toggle",_currentRow);
|
|
|
|
// Get toggle mode (add or remove item)
|
|
private _itemClassname = _listbox lnbData [_currentRow, 1];
|
|
private _addItem = !(_itemClassname in ((uiNamespace getVariable [QGVAR(attributeValue), [[], 0]]) select 0));
|
|
|
|
[ctrlParentControlsGroup _listbox, _addItem] call FUNC(attributeSelect);
|