2023-07-25 06:30:49 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
#include "..\defines.hpp"
|
|
|
|
/*
|
2023-07-25 06:41:15 +00:00
|
|
|
* Author: Brett Mayson, johnb43
|
|
|
|
* Refreshes the arsenal to show external changes.
|
2023-07-25 06:30:49 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2023-07-25 06:41:15 +00:00
|
|
|
// Update current item list
|
2023-07-25 06:30:49 +00:00
|
|
|
call FUNC(updateCurrentItemsList);
|
|
|
|
|
2023-07-25 06:41:15 +00:00
|
|
|
// This takes care of unique inventory items (arsenal doesn't have it whitelisted)
|
2023-07-25 06:30:49 +00:00
|
|
|
call FUNC(updateUniqueItemsList);
|
|
|
|
|
2023-07-25 06:41:15 +00:00
|
|
|
// Don't refresh left panel if in loadout tab
|
|
|
|
if (!isNull findDisplay IDD_loadouts_display) exitWith {};
|
|
|
|
|
|
|
|
private _display = findDisplay IDD_ace_arsenal;
|
|
|
|
|
2023-07-25 06:30:49 +00:00
|
|
|
[_display, _display displayCtrl GVAR(currentLeftPanel)] call FUNC(fillLeftPanel);
|