class RscTextD
{
type = CT_STATIC;
idc = -1;
style = ST_LEFT;
colorBackground[] = {0, 0, 0, 0};
colorText[] = {1, 1, 1, 1};
font = FontS;
sizeEx = 0.04;
};
class RscButtonD
{
type = CT_BUTTON;
idc = -1;
style = ST_CENTER;
colorText[] = {0, 0, 1, 1};
font = FontHTML;
sizeEx = 0.025;
soundPush[] = {, 0.2, 1};
soundClick[] = {"ui\ui_ok", 0.2, 1};
soundEscape[] = {"ui\ui_cc", 0.2, 1};
default = false;
};
class Info1
{
idd = -1;
movingEnable = true;
controlsBackground[] = {BACKGROUND,FRAME};
objects[] = { };
controls[] = {EXIT,TEXT};
class BACKGROUND : RscTextD
{
colorBackground[] = {0, 0, 0, 1};
text = ;
x = 0.1;
y = 0.1;
w = 0.8;
h = 0.8;
};
class FRAME : RscTextD
{
idc = 100;
style = ST_FRAME;
colorText[] = {1, 1, 1, 1};
text = "Info Sheet 1";
sizeEx = 0.02;
x = 0.108;
y = 0.105;
w = 0.78;
h = 0.78;
};
class EXIT : RscButtonD
{
idc = 101;
x = 0.43;
y = 0.84;
w = 0.17;
h = 0.037;
text = "Exit";
action = "closedialog 0";
};
class TEXT : RscTextD
{
style="0.5";
lineSpacing=0.5;
text=$STRN_In1;
x=0.14;
y=0.05;
w=0.7;
h=0.7;
colorText[]={1,1,1,1};
font="tahomaB36";
size=0.8;
};
This dialog works, but my problem is that I can't display the text ($STRN_In1 defined in the .csv) the way I want, because:
-1 My attempts in moving upside the box that contains the text always fails (if i'm not wrong it should be defined by the y value in the class TEXT resource).
-2 When displayed, even by using the "\n" command to start a new line, the text is not interrupted.
Example
"TESTLINE\nTESTLINE"
instead of
"TESTLINE
TESTLINE"
I've checked some dialogs made by others missionmakers but I can't find a solution and that's why I ask for your help.
Thanks in advance
Klavan