BIS fnc guiMessage TKOH: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " " to " ")
(Redirect to BIS_fnc_guiMessage)
Tag: New redirect
 
Line 1: Line 1:
{{RV|type=function
#REDIRECT [[BIS_fnc_guiMessage]]
 
| TKOH
 
|1.00
 
|gr1= GUI
 
| Shows customized native message box to user.
{{Feature|arma3|For the {{arma3}} syntax, see [[BIS_fnc_guiMessage]].}}
 
| [message, header, position, isCancel, parent, pause] call BIS_fnc_guiMessage;
|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.
 
|p2= header: [[String]] or [[Structured Text]] - (Optional, default "") header text
 
|p3= position: [[Array]] - (Optional) position in format [x,y,w,h]
 
|p4= isCancel: [[Boolean]] or [[Array]] - (Optional, default [[true]]) true to display cancel button or array with button texts [okText, cancelText]
 
|p5= parent: [[Display]] - (Optional) parent display
 
|p6= pause: [[Boolean]] - (Optional) true to pause simulation when message window is open
 
| [[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.
 
|x1= <code>["Hello World"] [[spawn]] [[BIS_fnc_guiMessage TKOH|BIS_fnc_guiMessage]];</code>
 
|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>
 
|x3= <code>[["Enabled Item", ["Disabled Item"]], "Header"] [[spawn]] [[BIS_fnc_guiMessage TKOH|BIS_fnc_guiMessage]];</code>
 
| [[hintC]], [[BIS_fnc_GUIhint]]
 
|exec= spawn
}}
 
 
[[Category:Take_On_Helicopters:_Functions|guiMessage]]
[[Category:Function Group: GUI|guiMessage]]

Latest revision as of 19:20, 18 May 2021

Redirect to: