mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
33 lines
738 B
Plaintext
33 lines
738 B
Plaintext
/*
|
|
* Author: Garth de Wet (LH)
|
|
* Prepares the select menu for use
|
|
*
|
|
* Arguments:
|
|
* 0: Header Text <STRING>
|
|
* 1: Approve Button Text <STRING>
|
|
*
|
|
* Return value:
|
|
* Container object <ARRAY/NUMBER>
|
|
*
|
|
* Example:
|
|
* _array = ["Select Explosive", "Place"] call ace_interaction_fnc_prepareSelectMenu
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
private ["_buttonAction", "_header", "_buttonText", "_cancelButton"];
|
|
closeDialog 0;
|
|
_header = _this select 0;
|
|
_buttonText = _this select 1;
|
|
if (isNil "_buttonText" or {_buttonText == ""}) then {
|
|
_buttonText = localize "STR_ACE_Interaction_MakeSelection";
|
|
};
|
|
createDialog "RscACE_SelectAnItem";
|
|
ctrlSetText [8860, _buttonText];
|
|
ctrlSetText [8870, _header];
|
|
|
|
lbClear 8866;
|
|
|
|
8866
|