taskHint: Difference between revisions
| Lou Montana (talk | contribs) m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *=  +" to " |$1= ") | Lou Montana (talk | contribs)  m (Some wiki formatting) | ||
| Line 17: | Line 17: | ||
| |eff= local | |eff= local | ||
| |descr= Shows info about new, changed or failed task. The text can contain several lines.  | |descr= Shows info about new, changed or failed task. The text can contain several lines. {{hl|\n}} 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.}} | ||
| |s1= [[taskHint]] [text, colour, icon] | |s1= [[taskHint]] [text, colour, icon] | ||
| |p1=  | |p1= text: [[String]] | ||
| |p2=  | |p2= colour: [[Array]] - format [[Color|Color (RGBA)]] | ||
| |p3 | |p3= icon: [[String]] - one of: | ||
| * "taskNew" | * "taskNew" | ||
| * "taskCurrent" | * "taskCurrent" | ||
| Line 41: | Line 39: | ||
| }} | }} | ||
| {{Note | |||
| |user= Kyliana | |||
| |timestamp= 20110715033700 | |||
| |text= Here are the BIS colors: | |||
| <code>[[taskHint]] ["New Task!\nHere's your new task!", [1, 1, 1, 1], "taskNew"]; | <code>[[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 Assigned!\nDo this now!", [1, 1, 1, 1], "taskCurrent"]; | ||
| Line 51: | Line 49: | ||
| [[taskHint]] ["Task Canceled!\nNever mind!", [0.75,0.75,0.75,1], "taskFailed"]; | [[taskHint]] ["Task Canceled!\nNever mind!", [0.75,0.75,0.75,1], "taskFailed"]; | ||
| </code> | </code> | ||
| }} | |||
Revision as of 23:50, 15 November 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: 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
- Posted on Jul 15, 2011 - 03:37 (UTC)
- 
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"];
 
	



