mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add more functions headers, finish code review
This commit is contained in:
@ -1,3 +1,16 @@
|
||||
/*
|
||||
* Author: Alganthe
|
||||
* Handles selection changes on the left panel.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Left panel control <CONTROL>
|
||||
* 1: Left panel selection <SCALAR>
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
#include "script_component.hpp"
|
||||
#include "..\defines.hpp"
|
||||
|
||||
@ -382,4 +395,4 @@ switch (GVAR(currentLeftPanel)) do {
|
||||
};
|
||||
};
|
||||
|
||||
(_display displayCtrl IDC_totalWeightText) ctrlSetText (GVAR(center) call EFUNC(movement,getWeight)); // TBL
|
||||
(_display displayCtrl IDC_totalWeightText) ctrlSetText (GVAR(center) call EFUNC(movement,getWeight));
|
||||
|
@ -1,3 +1,16 @@
|
||||
/*
|
||||
* Author: Alganthe
|
||||
* Handles selection changes on loadouts panel.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Loadouts panel control <CONTROL>
|
||||
* 1: Loadouts panel selection <SCALAR>
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
#include "script_component.hpp"
|
||||
#include "..\defines.hpp"
|
||||
|
||||
|
@ -1,3 +1,16 @@
|
||||
/*
|
||||
* Author: Alganthe
|
||||
* Handles selection changes on the right panel.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Right panel control <CONTROL>
|
||||
* 1: Right panel selection <SCALAR>
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
#include "script_component.hpp"
|
||||
#include "..\defines.hpp"
|
||||
|
||||
@ -121,4 +134,4 @@ switch (GVAR(currentRightPanel)) do {
|
||||
};
|
||||
};
|
||||
};
|
||||
(_display displayCtrl IDC_totalWeightText) ctrlSetText (GVAR(center) call EFUNC(movement,getWeight)); // TBL
|
||||
(_display displayCtrl IDC_totalWeightText) ctrlSetText (GVAR(center) call EFUNC(movement,getWeight));
|
||||
|
@ -1,3 +1,16 @@
|
||||
/*
|
||||
* Author: Alganthe
|
||||
* Handles selection changes on the right panel (listnbox).
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Right panel control <CONTROL>
|
||||
* 1: Right panel selection <SCALAR>
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
#include "script_component.hpp"
|
||||
#include "..\defines.hpp"
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Author: Alganthe
|
||||
* Open ACE3 arsenal.
|
||||
* Open arsenal.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Box <OBJECT>
|
||||
|
@ -1,10 +1,10 @@
|
||||
/*
|
||||
* Author: Alganthe
|
||||
* Remove arsenal from box
|
||||
* Remove arsenal from target.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Box <OBJECT>
|
||||
* 1: Global <BOOL>
|
||||
* 0: Target <OBJECT>
|
||||
* 1: Remove globally <BOOL>
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
|
@ -1,5 +1,22 @@
|
||||
/*
|
||||
* Author: Alganthe
|
||||
* Remove 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_removeVirtualItems
|
||||
* [_box, true, false] call ace_arsenal_fnc_removeVirtualItems
|
||||
*
|
||||
* Public: Yes
|
||||
*/
|
||||
#include "script_component.hpp"
|
||||
#include "..\defines.hpp"
|
||||
|
||||
params [ ["_object", objNull, [objNull]], ["_items", [], [true, [""]]], ["_global", false, [false]] ];
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Author: Alganthe
|
||||
* "Show" something, depend on which tab the user is currently in
|
||||
* Change unit animation / play sound preview.
|
||||
*
|
||||
* Arguments:
|
||||
* None
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Author: Alganthe, Dedmen
|
||||
* Sort arsenal panel
|
||||
* Sort arsenal panel.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Panel's control to sort <CONTROL>
|
||||
|
@ -1,3 +1,16 @@
|
||||
/*
|
||||
* Author: Alganthe
|
||||
* Update the right panel (listnbox).
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Right panel control <CONTROL>
|
||||
* 1: Max load of the current container <SCALAR>
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
#include "script_component.hpp"
|
||||
#include "..\defines.hpp"
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Author: Alganthe
|
||||
* Verify the provided loadout
|
||||
* Verify the provided loadout.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Loadout <ARRAY> (getUnitLoadout format)
|
||||
|
Reference in New Issue
Block a user