Add more functions headers, finish code review

This commit is contained in:
Josuan Albin
2017-11-05 15:48:26 +01:00
parent a3b3d263c1
commit e6f784aa07
11 changed files with 92 additions and 10 deletions

View File

@ -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));

View File

@ -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"

View File

@ -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));

View File

@ -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"

View File

@ -1,6 +1,6 @@
/*
* Author: Alganthe
* Open ACE3 arsenal.
* Open arsenal.
*
* Arguments:
* 0: Box <OBJECT>

View File

@ -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

View File

@ -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]] ];

View File

@ -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

View File

@ -1,6 +1,6 @@
/*
* Author: Alganthe, Dedmen
* Sort arsenal panel
* Sort arsenal panel.
*
* Arguments:
* 0: Panel's control to sort <CONTROL>

View File

@ -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"

View File

@ -1,6 +1,6 @@
/*
* Author: Alganthe
* Verify the provided loadout
* Verify the provided loadout.
*
* Arguments:
* 0: Loadout <ARRAY> (getUnitLoadout format)