Difference between revisions of "VN fnc showMultipleOptionsModal"
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " {{Function" to "Category:TODO {{Function") |
Lou Montana (talk | contribs) m (Text replacement - "]]; |p1n=" to "]] |p1n=") |
||
| Line 48: | Line 48: | ||
</pre><small>''(Placeholder description extracted from the function header by '''LM_exportFunctionsToWiki.sqf''')''</small> | </pre><small>''(Placeholder description extracted from the function header by '''LM_exportFunctionsToWiki.sqf''')''</small> | ||
| − | |s= [] call [[VN_fnc_showMultipleOptionsModal]] | + | |s= [] call [[VN_fnc_showMultipleOptionsModal]] |
|p1n= | |p1n= | ||
Revision as of 21:02, 20 January 2021
| ← 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
-