BIS fnc guiMessage TKOH: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix formatting)
(Redirect to BIS_fnc_guiMessage)
Tag: New redirect
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
#REDIRECT [[BIS_fnc_guiMessage]]
____________________________________________________________________________________________
 
| TKOH |Game name=
 
|1.00|Game version=
____________________________________________________________________________________________
 
| Shows customized native message box to user.
{{Feature arma3|For the {{arma3}} syntax, see [[BIS_fnc_guiMessage]].}} |DESCRIPTION=
____________________________________________________________________________________________
 
| [message, header, position, isCancel, parent, pause] call BIS_fnc_guiMessage; |SYNTAX=
|p1= 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)
When variable '''BIS_fnc_guiMessage_cursel''' is defined as a [[Number]], item with this index will be selected. |Parameter1=
 
|p2= header: [[String]] or [[Structured Text]] - (Optional, default "") header text |PARAMETER2=
 
|p3= position: [[Array]] - (Optional) position in format [x,y,w,h] |PARAMETER3=
 
|p4= isCancel: [[Boolean]] or [[Array]] - (Optional, default [[true]]) true to display cancel button or array with button texts [okText, cancelText] |PARAMETER4=
 
|p5= parent: [[Display]] - (Optional) parent display |PARAMETER5=
 
|p6= pause: [[Boolean]] - (Optional) true to pause simulation when message window is open |PARAMETER6=
 
| [[Array]] - [endState, lbId]
* endState: [[Boolean]] - [[true]] when clicked OK button, [[false]] when escaped or clicked on Cancel button
* lbId: [[Number]] - (Optional, returned if listbox was used) selected listbox item
Returned only after message box is closed. |RETURNVALUE=
 
|x1= <code>["Hello World"] [[spawn]] [[BIS_fnc_guiMessage TKOH|BIS_fnc_guiMessage]];</code>|Example1=
 
|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=
 
|x3= <code>[["Enabled Item", ["Disabled Item"]], "Header"] [[spawn]] [[BIS_fnc_guiMessage TKOH|BIS_fnc_guiMessage]];</code>|Example3=
____________________________________________________________________________________________
 
| [[hintC]], [[BIS_fnc_GUIhint]] |SEEALSO=
 
|exec= spawn
}}
 
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
 
<!-- Note Section END -->
</dl>
 
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Take_On_Helicopters:_Functions|guiMessage]]
[[Category:Function Group: GUI|guiMessage]]

Latest revision as of 19:20, 18 May 2021

Redirect to: