taskHint: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (template:command argument fix)
Line 12: Line 12:
| '''taskHint''' [hintText, [r, g, b, a], icon] |= Syntax
| '''taskHint''' [hintText, [r, g, b, a], icon] |= Syntax


|p1= [hintText, [r, g, b, a], icon]: [[Array]] |= PARAMETER1
|p1= [hintText, [r, g, b, a], icon]: [[Array]] |PARAMETER1=  


|p2= hintText: [[String]] |= PARAMETER2
|p2= hintText: [[String]] |PARAMETER2=  


|p3= [r, g, b, a]: [[Array]] - format [[Color]] |= PARAMETER3
|p3= [r, g, b, a]: [[Array]] - format [[Color]] |PARAMETER3=  


|p4= icon: [[String]] - possible values: taskNew, taskDone, taskFailed, taskCurrent |= PARAMETER4
|p4= icon: [[String]] - possible values: taskNew, taskDone, taskFailed, taskCurrent |PARAMETER4=  


| [[Nothing]] |= RETURNVALUE
| [[Nothing]] |RETURNVALUE=  




|x1= <code>taskhint ["Task failed!\nBad job!", [1, 0, 0, 1], "taskFailed"]</code>|= EXAMPLE1
|x1= <code>taskhint ["Task failed!\nBad job!", [1, 0, 0, 1], "taskFailed"]</code>|EXAMPLE1=  


____________________________________________________________________________________________
____________________________________________________________________________________________


| [[BIS_fnc_showNotification]] |= SEEALSO
| [[BIS_fnc_showNotification]] |SEEALSO=  


|  |= MPBEHAVIOUR
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
____________________________________________________________________________________________
}}
}}

Revision as of 10:38, 7 April 2019

Hover & click on the images for description

Description

Description:
Shows info about new, changed or failed task. The text can contain several lines. \n is used to indicate the end of a line.

Arma 3
To maintain Arma 3 visual style, it's recommended to use BIS_fnc_showNotification instead.
Groups:
Uncategorised

Syntax

Syntax:
taskHint [hintText, [r, g, b, a], icon]
Parameters:
[hintText, [r, g, b, a], icon]: Array
hintText: String
[r, g, b, a]: Array - format Color
icon: String - possible values: taskNew, taskDone, taskFailed, taskCurrent
Return Value:
Nothing

Examples

Example 1:
taskhint ["Task failed!\nBad job!", [1, 0, 0, 1], "taskFailed"]

Additional Information

See also:
BIS_fnc_showNotification

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

Unknown
Here are the BIS colors: taskHint ["New Task!\nHere's your new task!", [1, 1, 1, 1], "taskNew"]; taskHint ["Task Assigned!\nDo this now!", [1, 1, 1, 1], "taskCurrent"]; taskHint ["Task Succeeded!\nGood job!", [0.600000,0.839215,0.466666,1], "taskDone"]; taskHint ["Task Failed!\nBad job!", [0.972549,0.121568,0,1], "taskFailed"]; taskHint ["Task Canceled!\nNever mind!", [0.75,0.75,0.75,1], "taskFailed"];

Bottom Section