Title Effect Type: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (GUI Interaction moved to Title Effect Type: GUI Interaction not descriptive enough)
No edit summary
Line 1: Line 1:
{{Stub}}
{{Stub}}


Many commands relating to GUI Interaction require a string often called ''type''.  This type tells the game engine how to show text, objects, or resources.  If plain text is given, it is always white with a black shadow and in the center of the screen.
A '''Title Effect Type''' is a [[String]] parameter that is required by a few scripting commands.  The commands are used to display custom GUI elements on the front end or the back end.  Currently, there are six commands in OFP/ArmA that use this parameter:
* [[cutObj]]
* [[cutRsc]]
* [[cutText]]
* [[titleObj]]
* [[titleRsc]]
* [[titleText]]
 
The ''Title Effect'' simply tells the game engine how to display the object, resource, or text that is passed to the command.  If plain text is given, it is always white with a black shadow and in the center of the screen.  The different effects are described below.


The possible ''types'' and their descriptions are shown below:
{| border="1" cellPadding="5"
{| border="1" cellPadding="5"
! width="110"|Type
! width="110"|Type
Line 27: Line 34:
|-
|-
| "WHITE OUT"
| "WHITE OUT"
| Causes the screen to turn completely white, and displays the optional text, object, or resource given.  All other GUI is hidden behind this black 'curtain'.  This can easily blind the player and is not recommended.
| Causes the screen to turn completely white, and displays the optional text, object, or resource given.  All other GUI is hidden behind this black 'curtain'.  This can easily blind the player so it should be used with caution.  Make sure that a fade in time is set when calling the command.
|-
|-
| "WHITE IN"
| "WHITE IN"
| Withdraws a white 'curtain' revealing the GUI.
| Withdraws a white 'curtain' revealing the GUI.
|}
|}

Revision as of 04:53, 17 February 2007

Template:Stub

A Title Effect Type is a String parameter that is required by a few scripting commands. The commands are used to display custom GUI elements on the front end or the back end. Currently, there are six commands in OFP/ArmA that use this parameter:

The Title Effect simply tells the game engine how to display the object, resource, or text that is passed to the command. If plain text is given, it is always white with a black shadow and in the center of the screen. The different effects are described below.

Type Description
"PLAIN" Displays the text, object, or resource given.
"PLAIN DOWN" Displays the text, object, or resource given. Plain text is shown centered between the third and fourth quadrant of the screen. (ie. 25% up starting at the bottom)
"BLACK" Causes the screen to turn completely black, and displays the optional text, object, or resource given. All other GUI is hidden behind this black 'curtain'.
"BLACK FADED" Causes the screen to turn completely black without fading in, and displays the optional text, object, or resource given. All other GUI is hidden behind this black 'curtain'. If a 'speed' is not given, the 'curtain' and the displayed element disappears instantly after 5-10 seconds. Otherwise it will stay black with the element still visible.
"BLACK OUT" Same as "BLACK".
"BLACK IN" Reveals the GUI after a black 'curtain' is withdrawn along with the optional text, object, or resource that was given.
"WHITE OUT" Causes the screen to turn completely white, and displays the optional text, object, or resource given. All other GUI is hidden behind this black 'curtain'. This can easily blind the player so it should be used with caution. Make sure that a fade in time is set when calling the command.
"WHITE IN" Withdraws a white 'curtain' revealing the GUI.