Difference between revisions of "VN fnc showSubtitle"

From Savage Game Design Wiki
Jump to navigation Jump to search
m (Text replacement - " |e=" to " |a= |e=")
m (Some wiki formatting)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
 
{{Function
 
{{Function
  
 
|v= 1.00
 
|v= 1.00
  
|author= Thomas Ryan, updated by Karel Moricky, edited by Ethan Johnson
+
|author= Ethan Johnson, from {{Biki|BIS_fnc_showSubtitle}}
  
 
|a=
 
|a=
  
|e=
+
|e= local
  
 
|g1= vn_subtitle_functions
 
|g1= vn_subtitle_functions
  
|d= <pre>/*
+
|d= Displays a subtitle at the bottom of the screen. See {{Biki|BIS_fnc_showSubtitle}}.
Author: Thomas Ryan, updated by Karel Moricky, edited by Ethan Johnson
 
 
 
Description:
 
Displays a subtitle at the bottom of the screen.
 
 
 
Parameters:
 
_this select 0: STRING - Name of the person speaking.
 
_this select 1: STRING - Contents of the subtitle.
 
 
 
Returns:
 
SCRIPT - Script controlling the displayed subtitle.
 
*/
 
  
#define POS_W (0.4 * safeZoneW)
+
|s= [from, text, useTitleRsc, useCamPos] call [[VN_fnc_showSubtitle]]
#define POS_H (safeZoneH)
 
#define POS_X (0.5 - POS_W / 2)
 
#define POS_Y (safeZoneY + (7/8) * safeZoneH)
 
#define POS_Y_CAM (safeZoneY + (31/32) * safeZoneH)
 
  
</pre><small>''(Placeholder description extracted from the function header by '''LM_exportFunctionsToWiki.sqf''')''</small>
+
|p1n= from
 +
|p1t= string
 +
|p1d= speaker's display name
 +
|p1v= ""
  
|s= [] call [[VN_fnc_showsubtitle]];
+
|p2n= text
 +
|p2t= string
 +
|p2d= subtitle content
 +
|p2v= ""
  
|p1n=
+
|p3n= useTitleRsc
|p1t=
+
|p3t= boolean
|p1d=
+
|p3d= forces {{Biki|titleRsc}} usage for subtitles
|p1v=
+
|p3v= {{Biki|false}}
  
|p2n=
+
|p4n= useCamPos
|p2t=
+
|p4t= boolean
|p2d=
+
|p4d= forces the text to the bottom of the {{Biki|SafeZone}}
|p2v=
+
|p4v= {{Biki|false}}
  
|r1t=
+
|r1t= script
|r1d=
+
|r1d= script controlling the displayed subtitle
  
|x1= <code>-</code>
+
|x1= <code>[name player, "Wow, it's so warm here!"] call [[VN_fnc_showSubtitle]];</code>
 
}}
 
}}

Latest revision as of 20:23, 26 February 2021

← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Ethan Johnson, from BIS_fnc_showSubtitle
Argument(s): n/a
Effect(s): local

Description

Displays a subtitle at the bottom of the screen. See BIS_fnc_showSubtitle.

Syntax

Syntax
[from, text, useTitleRsc, useCamPos] call VN_fnc_showSubtitle
Parameters
from: String - (Optional, default "") speaker's display name
text: String - (Optional, default "") subtitle content
useTitleRsc: Boolean - (Optional, default false) forces titleRsc usage for subtitles
useCamPos: Boolean - (Optional, default false) forces the text to the bottom of the SafeZone
Return value
Script (Handle) - script controlling the displayed subtitle

Examples

Example 1
[name player, "Wow, it's so warm here!"] call VN_fnc_showSubtitle;