Difference between revisions of "VN fnc showMultipleOptionsModal"

From Savage Game Design Wiki
Jump to navigation Jump to search
m (Text replacement - " |e=" to " |a= |e=")
m (Text replacement - " {{Function" to "Category:TODO {{Function")
Line 1: Line 1:
 
+
[[Category:TODO]]
 
{{Function
 
{{Function
  

Revision as of 22:36, 5 January 2021

← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Heyoxe
Argument(s): n/a
Effect(s): unknown

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
-