mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
29 lines
628 B
Plaintext
29 lines
628 B
Plaintext
|
/*
|
||
|
* Author: Alganthe
|
||
|
* Clear the provided searchbar.
|
||
|
*
|
||
|
* Arguments:
|
||
|
* 0: Arsenal display <DISPLAY>
|
||
|
* 1: Searchbar control <CONTROL>
|
||
|
* 2: Right button state <BOOL>
|
||
|
*
|
||
|
* Return Value:
|
||
|
* None
|
||
|
*
|
||
|
* Public: No
|
||
|
*/
|
||
|
#include "script_component.hpp"
|
||
|
#include "..\defines.hpp"
|
||
|
|
||
|
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);
|
||
|
};
|