BIS fnc guiMessage TKOH: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page creation) |
Lou Montana (talk | contribs) m (Fix formatting) |
||
Line 31: | Line 31: | ||
* lbId: [[Number]] - (Optional, returned if listbox was used) selected listbox item | * lbId: [[Number]] - (Optional, returned if listbox was used) selected listbox item | ||
Returned only after message box is closed. |RETURNVALUE= | Returned only after message box is closed. |RETURNVALUE= | ||
|x1= <code>["Hello World"] spawn BIS_fnc_guiMessage;</code>|Example1= | |x1= <code>["Hello World"] [[spawn]] [[BIS_fnc_guiMessage TKOH|BIS_fnc_guiMessage]];</code>|Example1= | ||
|x2= [[File:TakeOn BIS fnc guiMessage.jpg|right|200px]] | |x2= [[File:TakeOn BIS fnc guiMessage.jpg|right|200px]] | ||
<code>["Message", "Header", [[nil]], [[true]]] [[spawn]] [[BIS_fnc_guiMessage TKOH|BIS_fnc_guiMessage]];</code><div style="clear: both"></div> |Example2= | <code>["Message", "Header", [[nil]], [[true]]] [[spawn]] [[BIS_fnc_guiMessage TKOH|BIS_fnc_guiMessage]];</code><div style="clear: both"></div> |Example2= | ||
|x3= <code>[["Enabled Item", ["Disabled Item"]], "Header"] | |x3= <code>[["Enabled Item", ["Disabled Item"]], "Header"] [[spawn]] [[BIS_fnc_guiMessage TKOH|BIS_fnc_guiMessage]];</code>|Example3= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 17:48, 23 April 2020
Description
- Description:
- Shows customized native message box to user.
- Execution:
- spawn
- Groups:
- Uncategorised
Syntax
- Syntax:
- [message, header, position, isCancel, parent, pause] call BIS_fnc_guiMessage;
- Parameters:
- message: String, Structured Text or Array:
- String or Structured Text - message
- Array - listbox, every item is defined as String (enabled) or String in Array (disabled)
- header: String or Structured Text - (Optional, default "") header text
- position: Array - (Optional) position in format [x,y,w,h]
- isCancel: Boolean or Array - (Optional, default true) true to display cancel button or array with button texts [okText, cancelText]
- parent: Display - (Optional) parent display
- pause: Boolean - (Optional) true to pause simulation when message window is open
- Return Value:
- Array - [endState, lbId] 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;
- Example 3:
[["Enabled Item", ["Disabled Item"]], "Header"] spawn BIS_fnc_guiMessage;
Additional Information
- See also:
- hintCBIS_fnc_GUIhint
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