#include "script_component.hpp" #include "..\defines.hpp" /* * Author: Alganthe * Clear the provided searchbar. * * Arguments: * 0: Arsenal display * 1: Searchbar control * 2: Right button state * * Return Value: * None * * Public: No */ params ["_display", "_control", "_rightButton"]; if (_rightButton != 1) exitWith {}; _control ctrlSetText ''; if (ctrlIDC _control == IDC_leftSearchbar) then { [_display, _display displayCtrl GVAR(currentLeftPanel)] call FUNC(fillLeftPanel); } else { [_display, _display displayCtrl GVAR(currentRightPanel)] call FUNC(fillRightPanel); };