VN_fnc_showMultipleOptionsModal
Revision as of 21:02, 20 January 2021 by Lou Montana (talk | contribs) (Text replacement - "]]; |p1n=" to "]] |p1n=")
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Heyoxe |
|
Description
/* File: fn_showMultipleOptionsModal.sqf Author: Heyoxe Date: 2020-09-19 Last Update: 2020-11-07 Public: Yes Description: Opens up the modal dialog. Parameter(s): _title - Title of the vote [String] _options - String array of options [[_optionTitle, _optionAction,_optionArguments][]] _onExit - Function called when a player exits the modal, a nested array is passed to the function. Nested array is as follow: [_this: See OnUnload EH, _selected: Array of selected option indexes] [Code] _radio - Do the options act as radio buttons (only 1 can be selected) or normal checkboxes (multiple can be selected) [Boolean, defaults to TRUE] Returns: Was the dialog successfully created. Functions fails when you provide an empty title, or no options [BOOLEAN] Example(s): [ "Do you like pineapple on pizza? ", [ ["Yes", { systemChat str _this; }, []], ["No", { systemChat str _this; }, []], ["No, but I never tried", { systemChat str _this; }, []], ["Yes, but I never tried", { systemChat str _this; }, []], ["I am neutral", { systemChat str _this; }, []] ], { systemChat str _this; }, true ] call VN_fnc_showMultipleOptionsModal; */(Placeholder description extracted from the function header by LM_exportFunctionsToWiki.sqf)
Syntax
- Syntax
- [] call VN_fnc_showMultipleOptionsModal
- Return value
- Nothing
Examples
- Example 1
-