Arma 3 Scripting

Function in Eden Editor

BIS_fnc_3DENShowMessage

Also available as Markdown and JSON, or read the original wiki page.

Description

Shows a pop-up message. In order to skip any optional parameter in between other parameters, send nil as parameter.

Note

The following stringtable entries are useful to add custom Code but keep the default button texts:

  • "STR_DISP_OK"
  • "STR_DISP_CLOSE"
  • "STR_DISP_CANCEL"

Syntax

[text, title, buttonOK, buttonCancel, icon, parentDisplay] call BIS_fnc_3DENShowMessage

Parameters:

Returns: Display

Examples

Example 1

["Message","Title of the Message"] call BIS_fnc_3DENShowMessage;

Example 2

[
    "Are you sure you want to delete / modify the selected variables?",
    "Delete / Modify",
    [
        "Yes",
        { BIS_Message_Confirmed = true }
    ],
    [
        "No",
        { BIS_Message_Confirmed = false }
    ],
    "\A3\ui_f\data\map\markers\handdrawn\warning_CA.paa",
    findDisplay 313
] call BIS_fnc_3DENShowMessage;

Example 3

// 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;

See also

BIS_fnc_guiMessage