Jump to content
Sign in to follow this  
barbolani

Line jump text on dialogs

Recommended Posts

Hello,

I'm useless with dialogs, the best thing I could is to do the same thing in youtube tutorial + a bit of tuning.

In a dialog I use to recruit I need to "jump the line" don't know if is the right english expression. The button shows the type of unit to recruit and I want a line below, on the button, to say the price.

Yried <br/> and \n on the text thing with no results, it just shows "<br/>" or "\n".

Thanks in advance.

Share this post


Link to post
Share on other sites

You want a "line break".

You'll want to use parseText.

I cant remember if you need a Structured Text box or not... ie "RscStructuredText"

This is something from ym own project...

_title ctrlSetStructuredText parseText format [
				"<t size='1.2'>%1</t><br />Fuel: %2<br />Turrets: %3",
				_vehicle,
				_fuel,
				_strTurrets
			];

Share this post


Link to post
Share on other sites

Thanks Fight, but tryed this:

class HQ_button_load: RscButton

{

idc = -1;

text = parseText "Build AT Minefield<br/>1000 €"; //--- ToDo: Localize;

x = 0.272481 * safezoneW + safezoneX;

y = 0.317959 * safezoneH + safezoneY;

w = 0.175015 * safezoneW;

h = 0.0560125 * safezoneH;

action = "closeDialog 0;";

};

No luck.

Share this post


Link to post
Share on other sites

You wont be able to do it through the configs like that.

Share this post


Link to post
Share on other sites

oh, can you give me directions where to learn how to? Thanks.

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  

×