taskHint: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{uc:{{PAGENAME}}}}" to "")
m (Text replacement - "Color" to "Color (RGBA)")
Line 22: Line 22:
|p2= text: [[String]] |PARAMETER2=
|p2= text: [[String]] |PARAMETER2=


|p3= colour: [[Array]] - format [[Color]] |PARAMETER3=
|p3= colour: [[Array]] - format [[Color|Color (RGBA)]] |PARAMETER3=


|p4= icon: [[String]] - one of:
|p4= icon: [[String]] - one of:

Revision as of 15:49, 16 October 2020

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 set a line return.
Arma 3
It is recommended to use BIS_fnc_showNotification in order to maintain Arma 3's visual style.
Groups:
Briefing

Syntax

Syntax:
taskHint [text, colour, icon]
Parameters:
[text, colour, icon]: Array
text: String
colour: Array - format Color (RGBA)
icon: String - one of:
  • "taskNew"
  • "taskCurrent"
  • "taskDone"
  • "taskFailed"
Return Value:
Nothing

Examples

Example 1:
taskHint ["Task failed.\nBad job!", [1, 0, 0, 1], "taskFailed"];

Additional Information

See also:
BIS_fnc_showNotification Task

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