BIS fnc showNotification: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ :\\\-\/|()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
m (Link to CfgNotifications) |
||
(15 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 0.50 | |||
|0.50 | |||
|gr1= GUI | |gr1= GUI | ||
|eff= local | |eff= local | ||
| | |descr= Show a config-defined [[Arma 3: Notification|notification]]. | ||
| | |s1= [template, arguments] call [[BIS_fnc_showNotification]] | ||
| | |p1= '''template''': [[String]] - notification class name from [[Arma 3: Notification|CfgNotifications]] | ||
| | |p2= '''arguments''': [[Array]] - (Optional, default <sqf inline>[]</sqf>) additional [[format]] arguments to fill notification's fields ({{hl|title}}, {{hl|description}}, {{hl|iconPicture}}, {{hl|iconText}}, {{hl|soundRadio}}) | ||
| | |r1= [[Boolean]] | ||
|x1= <sqf>["TaskSucceeded", ["", "Disable the nuke"]] call BIS_fnc_showNotification;</sqf> | |||
|x2= <sqf>["ScoreAdded", ["Disabled the nuke without triggering an alarm.", 5]] call BIS_fnc_showNotification;</sqf> | |||
[[ | |seealso= [[Arma 3: Notification]] | ||
}} |
Latest revision as of 16:55, 26 December 2023
Description
- Description:
- Show a config-defined notification.
- Execution:
- call
- Groups:
- GUI
Syntax
- Syntax:
- [template, arguments] call BIS_fnc_showNotification
- Parameters:
- template: String - notification class name from CfgNotifications
- arguments: Array - (Optional, default []) additional format arguments to fill notification's fields (title, description, iconPicture, iconText, soundRadio)
- Return Value:
- Boolean
Examples
- Example 1:
- Example 2:
- ["ScoreAdded", ["Disabled the nuke without triggering an alarm.", 5]] call BIS_fnc_showNotification;
Additional Information
- See also:
- Arma 3: 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