Jump to content
Sign in to follow this  
eJay

Move up text

Recommended Posts

How to change default position in PLAIN subtitles. I need to move up them a little bit (to the top of screen).

Share this post


Link to post
Share on other sites

You may be able to use a newline character "\n" in your text to push it up.

Eg: "My Text\n\n\n" - to push it up 3 lines.

Share this post


Link to post
Share on other sites

It doesn't work. Text is on default position (centre of screen).

Share this post


Link to post
Share on other sites

G'day, To get your text from the center you need a dialog I use the same as Zeno's version from domination, something like this

in the init;

Quote[/b] ]execVM "title.sqf";

title.sqf

Quote[/b] ]if (!(local player)) exitWith {};

sleep 4;

playMusic "ATrack5";

titleText ["Game-Name", "PLAIN DOWN", 1];

sleep 14;

titleRsc ["Titel1", "PLAIN"];

if (true) exitWith {};

add this to your description.exe

Quote[/b] ]#include "Dialog\IntroText.hpp"

introtext.hpp

Quote[/b] ]class RscTitles

{

class Titel1

{

idd=0;

movingEnable=0;

duration=10;

name="titel1";

controls[]={"titel1"};

class titel1: RscText

{

style="16+2+512";

lineSpacing=0.950000;

text="Hello World, line 1\n\n Good-bye World line 2";

x=0.39000000;

y=0.9100000;

w=0.900000;

h=0.700000;

colorBackground[]={0,0,0,0};

colorText[]={0.8,0.9,0.9,0.7};

size=0.57;

sizeEx = 0.026;

};

};

};

if you are not allready running another dialog you will need to define the

RscText

aswell.

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  

×