BIS fnc showNotification: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (Created page with "{{Function|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |0.50|= Game version |eff= local |= ___...")
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 5: Line 4:
| arma3 |= Game name
| arma3 |= Game name


|1.00|= Game version
|0.50|= Game version
 
|eff= local |=
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Show [[Notification]]. |= Description
 
Description:
Shake mission notification.
When one is already shown, queue the new request and display it afterwards.
Uses templates defined in CfgNotifications.
 
Parameter(s):
_this select 0 (Optional): STRING - template from CfgNotifications
_this select 1 (Optional): ARRAY - arguments passed to the template
 
Returns:
BOOL
*/
 
//--- Don't show the notification on the misison start
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_showNotification]]; --> |= Syntax
| [template,(arguments)] spawn BIS_fnc_showNotification; |= Syntax


|p1= |= Parameter 1
|p1= '''template''': [[String]] - notification template from ''CfgNotifications'' |=
|p2= '''arguments''': [[Array]] - additional arguments passed to the template (default: []) |=


| |= Return value
| [[Boolean]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
 
|x1= <code>["TaskSucceeded",["Disable the nuke"]] call bis_fnc_showNotification;</code> |=


|x1= <code></code> |=  
|x2= <code>["ScoreAdded",["Disabled the nuke without triggering an alarm.",5]] call bis_fnc_showNotification;</code> |=
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[Notification]] |= See also


}}
}}
Line 49: Line 37:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: GUI|{{uc:showNotification}}]]
 
[[Category:Functions|{{uc:showNotification}}]]
[[Category:Arma 3:_Functions|endMission]]
[[Category:{{Name|arma3}}: Functions|{{uc:showNotification}}]]
[[Category:Function Group: Missions|endMission]]

Revision as of 14:51, 25 March 2013

Hover & click on the images for description

Description

Description:
Show Notification.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[template,(arguments)] spawn BIS_fnc_showNotification;
Parameters:
template: String - notification template from CfgNotifications
arguments: Array - additional arguments passed to the template (default: [])
Return Value:
Boolean

Examples

Example 1:
["TaskSucceeded",["Disable the nuke"]] call bis_fnc_showNotification;
Example 2:
["ScoreAdded",["Disabled the nuke without triggering an alarm.",5]] call bis_fnc_showNotification;

Additional Information

See also:
Notification

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

Notes

Bottom Section