BIS fnc 3DENNotification: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "Bool" to "Boolean")
m (Text replacement - "since= Arma3" to "since= arma3")
 
(35 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| Arma 3 |Game=
|game1= arma3
|version1= 1.58


|1.58|Game Version (number surrounded by NO SPACES)=
|eff= Local


|arg= Local |Multiplayer Arguments=
|gr1= Eden Editor


|eff= Local |Multiplayer Effects=
|descr= Shows notification banner with given text, animated or not, at the top of the screen in the [[:Category:Eden Editor|Eden Editor]].<br/>
____________________________________________________________________________________________
Since {{GVI|arma3|2.10}} this function will no longer throw an error outside of [[:Category:Eden Editor|Eden Editor]]. Because {{hl|Display3DEN}} (<sqf inline>findDisplay 313</sqf>) is not available, it will only play the sound according to the message type.
The sound is played through the UI channel with [[playSoundUI]].


| Show notification in the Eden Editor |DESCRIPTION=
|s1= [text, type, duration, animate] call [[BIS_fnc_3DENNotification]]
____________________________________________________________________________________________


| [text, type, duration, animate] [[call]] [[BIS_fnc_3DENNotification]]; |SYNTAX=
|p1= text: [[String]] or [[Structured Text]] - either text or class from <sqf inline>"Cfg3DEN" >> "Notifications"</sqf>


|p1= text: [[String]] - Either text or class from Cfg3DEN >> Notifications  |PARAMETER1=
|p2= type: [[Number]] - (Optional, default 0) 0: Notification (Green) 1: Warning (Red)


|p2= type: [[Number]] - (Optional, default 0) 0: Notification (Green,default) 1: Warning (Red) |PARAMETER2=
|p3= duration: [[Number]] - (Optional, default 2) duration in seconds (+ 1 sec for each new line)


|p3= duration: [[Number]] - (Optional, default 2) duration in seconds (+ 1 sec for each new line) |PARAMETER3=
|p4= animate: [[Boolean]] - (Optional, default [[true]]) toggle animation


|p4= animate: [[Boolean]] - (Optional, default true) is animated |PARAMETER4=
|p5= volume: [[Number]] - (Optional, default 1) volume adjustment
|p5since= arma3 2.10


| [Number] - Selected Mode |RETURNVALUE=
|r1= [[Number]] - selected Mode
__________________________________________________________________________________________


|x1= ["This is an animated notification", 0] [[call]] [[BIS_fnc_3DENNotification]]; |EXAMPLE1=
|x1= <sqf>["This is an animated notification", 0] call BIS_fnc_3DENNotification;</sqf>
____________________________________________________________________________________________


|x2= ["This is a warning which is not animated", 1, 2, false] [[call]] [[BIS_fnc_3DENNotification]]; |EXAMPLE2=
|x2= <sqf>["This is a warning that is not animated", 1, 2, false] call BIS_fnc_3DENNotification;</sqf>
____________________________________________________________________________________________


| [[Eden Editor]],[[BIS_fnc_3DENCamera]],[[BIS_fnc_3DENControlsHint]],[[BIS_fnc_3DENDiagCreateList]],[[BIS_fnc_3DENDiagFonts]],[[BIS_fnc_3DENDiagMouseControl]],[[BIS_fnc_3DENDrawLocations]],[[BIS_fnc_3DENEntityMenu]],[[BIS_fnc_3DENExportAttributes]],[[BIS_fnc_3DENExportOldSQM]],[[BIS_fnc_3DENExportTerrainBuilder]],[[BIS_fnc_3DENFlashlight]],[[BIS_fnc_3DENGrid]],[[BIS_fnc_3DENIntel]],[[BIS_fnc_3DENInterface]],[[BIS_fnc_3DENListLocations]],[[BIS_fnc_3DENMissionPreview]],[[BIS_fnc_3DENModuleDescription]],[[BIS_fnc_3DENShowMessage]],[[BIS_fnc_3DENToolbar]],[[BIS_fnc_3DENTutorial]],[[BIS_fnc_3DENVisionMode]] |SEEALSO=
|x3= <sqf>["For more information visit <t colorLink='#E69710'><a href='https://community.bistudio.com/wiki/BIS_fnc_3DENNotification'>Community Wiki</a></t>"] call BIS_fnc_3DENNotification;</sqf>
 
|seealso= [[:Category:Eden Editor|Eden Editor]] [[BIS_fnc_3DENShowMessage]]
}}
}}
<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- END Note Section -->
</dl>
<h3 style="display:none">Bottom Section</h3>
<!-- Appropriate categories go here -->
[[Category:Arma 3: Functions|{{uc:3DENNotification}}]]
[[Category:Functions|{{uc:3DENNotification}}]]

Latest revision as of 17:26, 9 February 2024

Hover & click on the images for description

Description

Description:
Shows notification banner with given text, animated or not, at the top of the screen in the Eden Editor.
Since Arma 3 logo black.png2.10 this function will no longer throw an error outside of Eden Editor. Because Display3DEN (findDisplay 313) is not available, it will only play the sound according to the message type. The sound is played through the UI channel with playSoundUI.
Execution:
call
Groups:
Eden Editor

Syntax

Syntax:
[text, type, duration, animate] call BIS_fnc_3DENNotification
Parameters:
text: String or Structured Text - either text or class from "Cfg3DEN" >> "Notifications"
type: Number - (Optional, default 0) 0: Notification (Green) 1: Warning (Red)
duration: Number - (Optional, default 2) duration in seconds (+ 1 sec for each new line)
animate: Boolean - (Optional, default true) toggle animation
since Arma 3 logo black.png2.10
volume: Number - (Optional, default 1) volume adjustment
Return Value:
Number - selected Mode

Examples

Example 1:
["This is an animated notification", 0] call BIS_fnc_3DENNotification;
Example 2:
["This is a warning that is not animated", 1, 2, false] call BIS_fnc_3DENNotification;
Example 3:
["For more information visit <t colorLink='#E69710'><a href='https://community.bistudio.com/wiki/BIS_fnc_3DENNotification'>Community Wiki</a></t>"] call BIS_fnc_3DENNotification;

Additional Information

See also:
Eden Editor BIS_fnc_3DENShowMessage

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