taskHint: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " " to " ")
m (Fix username)
 
(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma2
|game1= arma2
|version1= 1.00


|gr1= Briefing
|game2= arma2oa
|version2= 1.50


|1.00
|game3= tkoh
|version3= 1.00


|eff= local |MP Effects=
|game4= arma3
|version4= 0.50


| Shows info about new, changed or failed task. The text can contain several lines. <tt>\n</tt> is used to set a line return.
|gr1= Briefing
{{Feature|arma3 | It is recommended to use [[BIS_fnc_showNotification]] in order to maintain {{arma3}}'s visual style.}}


| [[taskHint]] [text, colour, icon]
|eff= local


|p1= [text, colour, icon]: [[Array]]
|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.}}


|p2= text: [[String]]
|s1= [[taskHint]] [text, colour, icon]


|p3= colour: [[Array]] - format [[Color|Color (RGBA)]]
|p1= text: [[String]]


|p4= icon: [[String]] - one of:
|p2= colour: [[Array]] format [[Color|Color (RGBA)]]
 
|p3= icon: [[String]] - one of:
{{Columns|2|
* "taskNew"
* "taskNew"
* "taskCurrent"
* "taskCurrent"
* "taskDone"
* "taskDone"
* "taskFailed"
* "taskFailed"
}}


| [[Nothing]]
|r1= [[Nothing]]


|x1= <code>[[taskHint]] ["Task failed.\nBad job!", [1, 0, 0, 1], "taskFailed"];</code>
|x1= <sqf>taskHint ["Task failed.\nBad job!", [1, 0, 0, 1], "taskFailed"];</sqf>


| [[BIS_fnc_showNotification]] [[Task]]
|seealso= [[BIS_fnc_showNotification]] [[Task]]
}}
}}


<dl class='command_description'>
{{Note
<!-- Note Section BEGIN -->
|user= Kylania
 
|timestamp= 20110715033700
<dt class="note">Unknown</dt>
|text= Here are the BIS colors:
<dd class="note">Here are the BIS colors:
<sqf>
<code>[[taskHint]] ["New Task!\nHere's your new task!", [1, 1, 1, 1], "taskNew"];
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"];
[[taskHint]] ["Task Succeeded!\nGood job!", [0.600000,0.839215,0.466666,1], "taskDone"];
taskHint ["Task Succeeded!\nGood job!", [0.60,0.839215,0.466666,1], "taskDone"];
[[taskHint]] ["Task Failed!\nBad job!", [0.972549,0.121568,0,1], "taskFailed"];
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"];
taskHint ["Task Canceled!\nNever mind!", [0.75,0.75,0.75,1], "taskFailed"];
</code>
</sqf>
 
}}
<!-- Note Section END -->
</dl>
 
 
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Latest revision as of 00:11, 30 April 2024

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: 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
Kylania - c
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.60,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"];