Jump to content
Sign in to follow this  
Thirster

Text formatting within BIS_fnc_establishingShot

Recommended Posts

[[4545.45,21477.1,0],"SITUATION

<br/><br/>Paragraph 1

<br/><br/>Paragraph 2

<br/><br/>Paragraph 3

",500,200,80,1,[]] spawn BIS_fnc_establishingShot;

the <br/> doesnt seem to work, and I cant find any info anywhere on what to use to create a new paragaph within the UAV style sitrep briefing

any help or direction to info would be brilliant

thanks in advance!

Edited by Thirster

Share this post


Link to post
Share on other sites

Author: Thomas Ryan

Description:
Play a fake UAV observational sequence which serves as an establishing shot.

Parameters:
	_this select 0: OBJECT or ARRAY - Target position/object
	_this select 1: STRING - Text to display
	_this select 2 (Optional): NUMBER - Altitude (in meters)
	_this select 3 (Optional): NUMBER - Radius of the circular movement (in meters)
	_this select 4 (Optional): NUMBER - Viewing angle (in degrees)
	_this select 5 (Optional): NUMBER - Direction of camera movement (0: anti-clockwise, 1: clockwise, default: random)
	_this select 6 (Optional): ARRAY -	Objects/positions/groups to display icons over
						Syntax: [[icon, color, target, size X, size Y, angle, text, shadow]]
	_this select 7 (Optional): NUMBER - Mode (0: normal (default), 1: world scenes)

Line breaks should be <br/>, if that doesnt work maybe using \n?

Edited by cobra4v320

Share this post


Link to post
Share on other sites

yeah sorry I wrote it wrong in the post the <br/> doesnt work either.

Share this post


Link to post
Share on other sites

Give this a shot, LOL. It will give you 3 paragraphs, copy/paste into your init.sqf.

[[4545.45,21477.1,0],"Paragraph 1                                                                                                                                                                                   Paragraph 2                                                                                                                                                                                              Paragraph 3",
500,200,80,1,[]] spawn BIS_fnc_establishingShot;

The briefing is made for all the mission specifics, the establishingshot is good for an overview of the area, date, time, and the mission name.

Share this post


Link to post
Share on other sites

nor does \n (it just types it out), or <\n> (tried just in case), hahaha yeah I was thinking of using alot of spaces, but I can forsee problems with different resolutions. Ill give it a shot though.

---------- Post added at 16:00 ---------- Previous post was at 15:35 ----------

spaces dont work either it truncates them down to a couple only. yeah I know, I just wanted the general situation of the mission to be shown over the UAV est shot. it's repeated again in the briefing text. which is annoying because these commands work there.

strangely it looks like it registers the <br/> command and then decides to ignore it and continue on the same line.

Share this post


Link to post
Share on other sites

Yup I noticed that it ignores the break line also, I dont think it was intended for tons of text.

Share this post


Link to post
Share on other sites

surely they would have a command that they are using for the breaks between lines, I'm not talking pages and pages, its just 3 paragraphs that look very messy if they are combined. hmmm

Share this post


Link to post
Share on other sites

|

is used for breakline. So,

[[4545.45,21477.1,0],"SITUATION

||Paragraph 1

||Paragraph 2

||Paragraph 3

",500,200,80,1,[]] spawn BIS_fnc_establishingShot;

Edited by cuel

Share this post


Link to post
Share on other sites

Never mind (didnt refresh page see Cuel saw the formatting in the script aswell)

Share this post


Link to post
Share on other sites

Cuel, thankyou so much!!!. is there a list of any other commands for formatting text in this way?

Share this post


Link to post
Share on other sites

It is not an actual format but part of the establish shot script, when it process the string it finds all | and replaces them with <br/>.

Its to do with the way the script does the teletype print out, as it actually splits the string up into an array of single characters, so | is easier to find than trying to search across several array indexs looking for <, b, r, /, >.

Share this post


Link to post
Share on other sites

Using the | no longer works. BIS changed the code of BIS_fnc_establishingShot

FROM

//_SITREP = format [localize "STR_A3_BIS_fnc_establishingShot_SITREP" + "||%1|%2||" + localize "STR_A3_BIS_fnc_establishingShot_Time", toUpper _txt, _date, _time];

TO

_SITREP = [

[_date + " ", ""],

[_time, "font = 'PuristaMedium'"],

["", "<br/>"],

[toUpper _txt, ""]

];

I've tried everything to get newline to show up but no joy. I believe I'm going to have to go through every one of my missions and kill my briefing during establishing shot. Anyone else experience this but find a workaround?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×