BIS fnc guiMessage: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 18: | Line 18: | ||
<br /> | <br /> | ||
<br />When variable '''BIS_fnc_guiMessage_cursel''' is defined and is [[Number]], item with index equal to the variable will be selected by default. |= | <br />When variable '''BIS_fnc_guiMessage_cursel''' is defined and is [[Number]], item with index equal to the variable will be selected by default. |= | ||
|p3= '''header''' (Optional): [[String]] or [[Structured Text]] - header |= | |p3= '''header''' (Optional): [[String]] or [[Structured Text]] - header text |= | ||
|p4= '''position''' (Optional): [[Array]] - position in format [x,y,w,h] |= | |p4= '''position''' (Optional): [[Array]] - position in format [x,y,w,h] |= | ||
|p5= '''isCancel''' (Optional): [[Boolean]] or [[Array]] - true to display cancel button or array with button texts [okText,cancelText] |= | |p5= '''isCancel''' (Optional): [[Boolean]] or [[Array]] - true to display cancel button or array with button texts [okText,cancelText] |= | ||
Line 38: | Line 38: | ||
<br /> | <br /> | ||
<br />When variable '''BIS_fnc_guiMessage_cursel''' is defined and is [[Number]], item with index equal to the variable will be selected by default. |= | <br />When variable '''BIS_fnc_guiMessage_cursel''' is defined and is [[Number]], item with index equal to the variable will be selected by default. |= | ||
|p23= '''header''' (Optional): [[String | |p23= '''header''' (Optional): [[String]] - header text |= | ||
|p24= '''okButton''' (Optional): | |p24= '''okButton''' (Optional): | ||
<br />[[Boolean]] - enable | <br />[[Boolean]] - enable "OK" button (default: true) | ||
<br />[[String]] - custom text for "OK" button |= | <br />[[String]] - custom text for "OK" button |= | ||
|p25= '''cancelButton''' (Optional): | |p25= '''cancelButton''' (Optional): | ||
<br />[[Boolean]] - enable | <br />[[Boolean]] - enable "Cancel" button (default: false) | ||
<br />[[String]] - custom text for "Cancel" button |= | <br />[[String]] - custom text for "Cancel" button |= | ||
|p26= '''parent''' (Optional): [[Display]] - parent display |= | |p26= '''parent''' (Optional): [[Display]] - parent display |= |
Revision as of 07:22, 23 June 2014
Description
- Description:
- Shows customized native message box to user
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [message, (header, position, isCancel, parent, pause)] call BIS_fnc_guiMessage;
- Parameters:
- Take On Helicopters
- message:
String - message
Structured Text - message
Array - listbox, every item is defined as String (enabled) or String in Array (disabled)
When variable BIS_fnc_guiMessage_cursel is defined and is Number, item with index equal to the variable will be selected by default. - header (Optional): String or Structured Text - header text
- position (Optional): Array - position in format [x,y,w,h]
- isCancel (Optional): Boolean or Array - true to display cancel button or array with button texts [okText,cancelText]
- parent (Optional): Display - parent display
- pause (Optional): Boolean - true to pause simulation when message window is open
- Return Value:
- Array - [endState, (lbId)] Returned only after message box is closed.
Alternative Syntax
- Syntax:
- [message, (header, okButton, cancelButton, parent, useParentBox, pause)] call BIS_fnc_guiMessage;
- Parameters:
- Arma 3
- message:
String - message
Structured Text - message
Array - listbox, every item is defined as String (enabled) or String in Array (disabled)
When variable BIS_fnc_guiMessage_cursel is defined and is Number, item with index equal to the variable will be selected by default. - header (Optional): String - header text
- okButton (Optional):
Boolean - enable "OK" button (default: true)
String - custom text for "OK" button - cancelButton (Optional):
Boolean - enable "Cancel" button (default: false)
String - custom text for "Cancel" button - parent (Optional): Display - parent display
- useParentBox (Optional): Boolean - try to use control inherited from "RscMessageBox" in parent instead of creating a new one (default: false)
- pause (Optional): Boolean - pause simulation when message box is open (default: true)
- Return Value:
- Boolean - true if "OK" button was pressed, otherwise false
Returned only after message box is closed.
Examples
- Example 1:
["Hello World"] spawn BIS_fnc_guiMessage;
- Example 2:
["Message","Header",nil,true] spawn BIS_fnc_guiMessage;
Result:
- Example 3:
[["Enabled Item",["Disabled Item"]],"Header"] spawn BIS_fnc_guiMessage;
- Example 4:
_result = ["Are you sure?", "Confirm", true, true] call BIS_fnc_guiMessage; // Arma 3
Additional Information
- See also:
- See also needed
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note