BIS fnc 3DENNotification: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision imported: BIS Functions update 7/7)
m (Fix category)
Line 14: Line 14:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [Text,Type,Duration,Animate] |= Syntax
| [text, type, duration, animate] [[call]] [[BIS_fnc_3DENNotification]]; |= Syntax


|p1= Text: [[String]] - Either text or class from Cfg3DEN >> Notifications  |= Parameter 1
|p1= text: [[String]] - Either text or class from Cfg3DEN >> Notifications  |= Parameter 1


|p2= (Optional) Type: [[Number]] - 0: Notification (Green,default) 1: Warning (Red) |= Parameter 2
|p2= type: [[Number]] - (Optional, default 0) 0: Notification (Green,default) 1: Warning (Red) |= Parameter 2


|p3= (Optional) Duration: [[Number]] - Duration (Default 2 sec. + 1 sec for each new line) |= Parameter 3
|p3= duration: [[Number]] - (Optional, default 2) duration in seconds (+ 1 sec for each new line) |= Parameter 3


|p4= (Optional) Animate: [[Bool]] - Animation (Default: true) |= Parameter 4
|p4= animate: [[Bool]] - (Optional, default true) is animated |= Parameter 4


| [Number] - Selected Mode |= Return Value
| [Number] - Selected Mode |= Return Value
|exec= call |= Execution By (defaults to [[call]] if omitted)
__________________________________________________________________________________________
__________________________________________________________________________________________


|x1= ["This is an animated notification.",0] [[call]] [[BIS_fnc_3DENNotification]] |= Example 1
|x1= ["This is an animated notification", 0] [[call]] [[BIS_fnc_3DENNotification]]; |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


|x2= ["This is a warning which is not animated.",1] [[call]] [[BIS_fnc_3DENNotification]] |= Example 2
|x2= ["This is a warning which is not animated", 1] [[call]] [[BIS_fnc_3DENNotification]]; |= Example 2
____________________________________________________________________________________________
____________________________________________________________________________________________


| SEEALSO |= See Also
| |= See Also
}}


}}


<dl class="command_description">
<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- BEGIN Note Section -->
<!-- For example:
 
<dd class="notedate">Posted on Month Day, Year - Time (UTC)</dd>
<dt class="note">'''[[User:User Name|User Name]]'''</dt>
<dd class="note">This is an example note. It is true and verifiable, and contains a little code snippet.
<code>[[if]] ([[_this]] == anExample) [[then]] { [[hint]] "Leave it here for others to read"; };</code></dd>
-->
<!-- END Note Section -->
<!-- END Note Section -->
</dl>
</dl>
Line 51: Line 45:
<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
<!-- Appropriate categories go here -->
<!-- Appropriate categories go here -->
[[Category:Arma 3: Functions|{{uc:{{PAGENAME}}}}]]
[[Category:Arma 3: Functions|{{uc:3DENNotification}}]]

Revision as of 17:39, 21 April 2018

Hover & click on the images for description

Description

Description:
Show notification in the Eden Editor
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[text, type, duration, animate] call BIS_fnc_3DENNotification;
Parameters:
text: String - Either text or class from Cfg3DEN >> Notifications
type: Number - (Optional, default 0) 0: Notification (Green,default) 1: Warning (Red)
duration: Number - (Optional, default 2) duration in seconds (+ 1 sec for each new line)
animate: Bool - (Optional, default true) is animated
Return Value:
[Number] - Selected Mode

Examples

Example 1:
["This is an animated notification", 0] call BIS_fnc_3DENNotification;
Example 2:
["This is a warning which is not animated", 1] call BIS_fnc_3DENNotification;

Additional Information

See also:
See also needed

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


Bottom Section