BIS fnc 3DENShowMessage: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *T([a-z ])" to "$1 - t$2") |
||
(25 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 1.58 | |version1= 1.58 | ||
|gr1= Eden Editor | |||
|descr= Shows a pop-up message. | |descr= Shows a pop-up message. | ||
In order to skip any optional parameter in between other parameters, send [[nil]] as parameter. | |||
{{Feature|informative|The following [[Stringtable.xml|stringtable]] entries are useful to add custom [[Code]] but keep the default button texts: | |||
* {{hl|"STR_DISP_OK"}} | |||
* {{hl|"STR_DISP_CLOSE"}} | |||
* {{hl|"STR_DISP_CANCEL"}} | |||
}} | |||
|s1= [text, title, buttonOK, buttonCancel, icon] | |s1= [text, title, buttonOK, buttonCancel, icon, parentDisplay] call [[BIS_fnc_3DENShowMessage]] | ||
|p1= text: [[String]] - | |p1= text: [[String]] - text to display | ||
|p2= title: [[String]] - (Optional, default "") | |p2= title: [[String]] - (Optional, default "") title header | ||
|p3= buttonOK: [[String]] - (Optional, default "") | |p3= buttonOK: [[String]], [[Boolean]] or [[Array]] - (Optional, default "") can be one of: | ||
* [[String]] - button's text | |||
* [[Boolean]] - show button or not | |||
* [[Array]] - in format [<nowiki/>[[String]] or [[Boolean]], [[Code]]]: | |||
** [[String]] or [[Boolean]] - same as above | |||
** [[Code]] - code executed when button is pressed | |||
|p4= buttonCancel: [[String]] - (Optional, default "") | |p4= buttonCancel: [[String]], [[Boolean]] or [[Array]] - (Optional, default "") can be one of: | ||
* [[String]] - button's text | |||
* [[Boolean]] - show button or not | |||
* [[Array]] - in format [<nowiki/>[[String]] or [[Boolean]], [[Code]]]: | |||
** [[String]] or [[Boolean]] - same as above | |||
** [[Code]] - code executed when button is pressed | |||
|p5= icon: [[String]] - (Optional, default "") | |p5= icon: [[String]] - (Optional, default "") path to an icon which will be shown on the left side of the message | ||
|p6= parentDisplay: [[Display]] - (Optional, default | |p6= parentDisplay: [[Display]] - (Optional, default <sqf inline>findDisplay 313</sqf> (Eden Display)) display from which the window is opened | ||
|r1= [[Display]] | |r1= [[Display]] | ||
|x1= < | |x1= <sqf>["Message","Title of the Message"] call BIS_fnc_3DENShowMessage;</sqf> | ||
|x2= < | |x2= <sqf> | ||
[ | |||
"Are you sure you want to delete / modify the selected variables?", | "Are you sure you want to delete / modify the selected variables?", | ||
"Delete / Modify", | "Delete / Modify", | ||
[ | [ | ||
"Yes", | "Yes", | ||
{BIS_Message_Confirmed = | { BIS_Message_Confirmed = true } | ||
], | ], | ||
[ | [ | ||
"No", | "No", | ||
{BIS_Message_Confirmed = | { BIS_Message_Confirmed = false } | ||
], | ], | ||
"\A3\ui_f\data\map\markers\handdrawn\warning_CA.paa", | "\A3\ui_f\data\map\markers\handdrawn\warning_CA.paa", | ||
findDisplay 313 | |||
] | ] call BIS_fnc_3DENShowMessage; | ||
</sqf> | |||
| | |x3= <sqf> | ||
// Only change the OK button's code | |||
[ | |||
"Are you sure you want to delete / modify the selected variables?", | |||
"Delete / Modify", | |||
[ | |||
nil, | |||
{ BIS_Message_Confirmed = true } | |||
], | |||
nil, | |||
"\A3\ui_f\data\map\markers\handdrawn\warning_CA.paa", | |||
findDisplay 313 | |||
] call BIS_fnc_3DENShowMessage; | |||
</sqf> | |||
|seealso= [[BIS_fnc_guiMessage]] | |||
}} | }} | ||
Latest revision as of 15:50, 8 November 2023
Description
- Description:
- Shows a pop-up message. In order to skip any optional parameter in between other parameters, send nil as parameter.
- Execution:
- call
- Groups:
- Eden Editor
Syntax
- Syntax:
- [text, title, buttonOK, buttonCancel, icon, parentDisplay] call BIS_fnc_3DENShowMessage
- Parameters:
- text: String - text to display
- title: String - (Optional, default "") title header
- buttonOK: String, Boolean or Array - (Optional, default "") can be one of:
- buttonCancel: String, Boolean or Array - (Optional, default "") can be one of:
- icon: String - (Optional, default "") path to an icon which will be shown on the left side of the message
- parentDisplay: Display - (Optional, default findDisplay 313 (Eden Display)) display from which the window is opened
- Return Value:
- Display
Examples
- Example 1:
- Example 2:
- Example 3:
Additional Information
- See also:
- BIS_fnc_guiMessage
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