BIS fnc dataTerminalColor: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|gr([0-9]+) = " to "|gr$1= ")
m (Text replacement - " |s1=[" to " |s1= [")
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{RV|type=function
{{RV|type=function


| arma3
|game1= arma3
 
|version1= 1.42
|1.42


|gr1= Scripts
|gr1= Scripts


| Set Data Terminal colors for its different steps. Steps are:
|descr= Set Data Terminal colors for its different steps. Steps are:
# closed terminal
# closed terminal
# opening terminal
# opening terminal
Line 15: Line 14:
See [[BIS_fnc_dataTerminalAnimate]] to animate a terminal.
See [[BIS_fnc_dataTerminalAnimate]] to animate a terminal.


| [dataTerminal, step1color, step2color, step3color] call [[BIS_fnc_dataTerminalColor]]
|s1= [dataTerminal, step1color, step2color, step3color] call [[BIS_fnc_dataTerminalColor]]


|p1= dataTerminal: [[Object]]
|p1= dataTerminal: [[Object]]
Line 32: Line 31:
|p4= step3color: [[String]] - step 3 color
|p4= step3color: [[String]] - step 3 color


| [[Boolean]] - [[false]] if data terminal is null, [[true]] if the script ends properly
|r1= [[Boolean]] - [[false]] if data terminal is null, [[true]] if the script ends properly


|x1= <code>[myTerminal, "purple", "red", "orange"] [[call]] [[BIS_fnc_dataTerminalColor]];</code>
|x1= <sqf>[myTerminal, "purple", "red", "orange"] call BIS_fnc_dataTerminalColor;</sqf>


|seealso= [[MP End Game|End Game (MP mode)]], [[BIS_fnc_dataTerminalAnimate]]
|seealso= [[MP End Game|End Game (MP mode)]] [[BIS_fnc_dataTerminalAnimate]]
}}
}}

Latest revision as of 00:11, 13 July 2022

Hover & click on the images for description

Description

Description:
Set Data Terminal colors for its different steps. Steps are:
  1. closed terminal
  2. opening terminal
  3. emitting terminal.
Default step colors are "blue", "orange", "green". See BIS_fnc_dataTerminalAnimate to animate a terminal.
Execution:
call
Groups:
Scripts

Syntax

Syntax:
[dataTerminal, step1color, step2color, step3color] call BIS_fnc_dataTerminalColor
Parameters:
dataTerminal: Object
step1color: String - step 1 color. Can be one of:
  • "blue"
  • "orange"
  • "green"
  • "red"
  • "purple"
If not set, the selection color will simply not be changed.
step2color: String - step 2 color
step3color: String - step 3 color
Return Value:
Boolean - false if data terminal is null, true if the script ends properly

Examples

Example 1:
[myTerminal, "purple", "red", "orange"] call BIS_fnc_dataTerminalColor;

Additional Information

See also:
End Game (MP mode) BIS_fnc_dataTerminalAnimate

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