2015-01-11 19:32:51 +00:00
|
|
|
/*
|
2015-05-09 02:47:15 +00:00
|
|
|
* Author: Garth de Wet (LH)
|
|
|
|
* Prepares the select menu for use
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Header Text <STRING>
|
|
|
|
* 1: Approve Button Text <STRING>
|
|
|
|
*
|
|
|
|
* Return value:
|
2015-05-14 18:00:56 +00:00
|
|
|
* Container object <NUMBER>
|
2015-05-09 02:47:15 +00:00
|
|
|
*
|
|
|
|
* Example:
|
2015-05-14 18:00:56 +00:00
|
|
|
* array = ["Select Explosive", "Place"] call ace_interaction_fnc_prepareSelectMenu
|
2015-05-09 02:47:15 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-01-11 23:13:47 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-05-09 20:14:00 +00:00
|
|
|
PARAMS_2(_header,_buttonText);
|
|
|
|
|
2015-01-11 19:32:51 +00:00
|
|
|
closeDialog 0;
|
2015-05-09 20:14:00 +00:00
|
|
|
|
2015-03-01 02:00:24 +00:00
|
|
|
if (isNil "_buttonText" or {_buttonText == ""}) then {
|
2015-05-28 19:59:04 +00:00
|
|
|
_buttonText = localize LSTRING(MakeSelection);
|
2015-03-01 02:00:24 +00:00
|
|
|
};
|
2015-05-09 20:14:00 +00:00
|
|
|
|
2015-03-01 02:00:24 +00:00
|
|
|
createDialog "RscACE_SelectAnItem";
|
|
|
|
ctrlSetText [8860, _buttonText];
|
|
|
|
ctrlSetText [8870, _header];
|
2015-01-11 19:32:51 +00:00
|
|
|
|
2015-03-01 02:00:24 +00:00
|
|
|
lbClear 8866;
|
2015-01-11 19:32:51 +00:00
|
|
|
|
2015-03-01 02:00:24 +00:00
|
|
|
8866
|