taskHint: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma2 | | arma2 | ||
|gr1= Briefing | |gr1= Briefing | ||
|1.00 | |1.00 | ||
|eff= local |MP Effects= | |eff= local |MP Effects= | ||
| Shows info about new, changed or failed task. The text can contain several lines. <tt>\n</tt> is used to set a line return. | | Shows info about new, changed or failed task. The text can contain several lines. <tt>\n</tt> is used to set a line return. | ||
{{Feature|arma3 | It is recommended to use [[BIS_fnc_showNotification]] in order to maintain {{arma3}}'s visual style.}} | {{Feature|arma3 | It is recommended to use [[BIS_fnc_showNotification]] in order to maintain {{arma3}}'s visual style.}} | ||
| [[taskHint]] [text, colour, icon] | | [[taskHint]] [text, colour, icon] | ||
|p1= [text, colour, icon]: [[Array]] | |p1= [text, colour, icon]: [[Array]] | ||
|p2= text: [[String]] | |p2= text: [[String]] | ||
|p3= colour: [[Array]] - format [[Color|Color (RGBA)]] | |p3= colour: [[Array]] - format [[Color|Color (RGBA)]] | ||
|p4= icon: [[String]] - one of: | |p4= icon: [[String]] - one of: | ||
Line 26: | Line 26: | ||
* "taskCurrent" | * "taskCurrent" | ||
* "taskDone" | * "taskDone" | ||
* "taskFailed" | * "taskFailed" | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>[[taskHint]] ["Task failed.\nBad job!", [1, 0, 0, 1], "taskFailed"];</code> | |x1= <code>[[taskHint]] ["Task failed.\nBad job!", [1, 0, 0, 1], "taskFailed"];</code> | ||
| [[BIS_fnc_showNotification]] [[Task]] | | [[BIS_fnc_showNotification]] [[Task]] | ||
}} | }} | ||
Revision as of 11:27, 18 January 2021
Description
- Description:
- Shows info about new, changed or failed task. The text can contain several lines. \n is used to set a line return.
- 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"];