Jump to content
Sign in to follow this  
Macser

Removing top and bottom bars from main screen

Recommended Posts

This may be 1.99 specific.As it seems 1.96 doesn't have this issue.

I'm assuming it's to do with the extra classes that were added to the resource.cpp

I'm trying to get rid of the black bars from the top and bottom of the screen.

So far I haven't had any luck.Removing entries out of the controlsbackground array

within the RscDisplaymain dialog has no effect.

Although it's possible to change the colour of the bars,the alpha value

being set to zero won't render them invisible.And that's within the

RscBackgroundStripeTop and RscBackgroundStripeBottom classes.

Anyone had any success with this?

Share this post


Link to post
Share on other sites

Yes.

Here's the main GUI for my upcoming FPW mod :

class RscDisplayMain:RscDisplayBackgroundStripesDark
{
access=3;
idd=0;
movingEnable=1;
controlsBackground[]={"Background1","Background2","Background3"};
controls[]={"WW1","WW2","WW3","Continue","Player","Game","SingleMission","Multiplayer","Custom","Options","Quit","Version","AllMissions","Copy","FPWversion"};

class copy:RscText
	{
	style="16 + 					2 + 				512";
	lineSpacing=1.0;
	text="$STR_CREDITS23";
	x=0.03;
	y=0.93;
	w=0.9;
	h=0.7;
	colorText[]={1,1,1,0.5};
	font="tahomaB24";
	sizeEx=0.016;
	};

class WW1:RscPicture
	{
	text="\FPW_gui\trans.paa";
	x=0.365;
	y=0.01;
	w=0.09;
	h=0.1;
	};

class WW2:RscPicture
	{
	text="\FPW_gui\FPW_gui.paa";
	x=0.0;
	y=0.01;
	w=1;
	h=1;
	};

class WW3:RscPicture
	{
	text="\FPW_gui\trans.paa";
	x=0.545;
	y=0.01;
	w=0.09;
	h=0.1;
	};

class Continue:RscActiveMenu
	{
	idc=114;
	x=0.05;
	y=0.155;
	w=0.0;
	h=0.0;
	font="SteelfishB128";
	sizeEx="0.6 * 0.098";
	text="$STR_DISP_MAIN_CONTINUE";
	};

class Player:RscActiveMenu
	{
	idc=109;
	x=0.02;
	y=0.145;
	w=0.5;
	h=0.05;
	font="SteelfishB128";
	sizeEx="0.6 * 0.098";
	text="$STR_DISP_ERROR";
	};

class Game:RscActiveMenu
	{
	font="SteelfishB128";
	sizeEx="0.6 * 0.098";
	idc=101;
	x=0.72;
	y=0.145;
	w=0.25;
	h=0.05;
	text="$STR_DISP_MAIN_GAME";
	};

class SingleMission:RscActiveMenu
	{
	font="SteelfishB128";
	sizeEx="0.6 * 0.098";
	idc=117;
	x=0.72;
	y=0.33;
	w=0.52;
	h=0.05;
	text="$STR_DISP_MAIN_SINGLE";
	default=1;
	};

class Multiplayer:RscActiveMenu
	{
	font="SteelfishB128";
	sizeEx="0.6 * 0.098";
	idc=105;
	x=0.72;
	y=0.39;
	w=0.52;
	h=0.05;
	text="$STR_DISP_MAIN_MULTI";
	};

class Custom:RscActiveMenu
	{
	font="SteelfishB128";
	sizeEx="0.6 * 0.098";
	style=1;
	idc=115;
	x=0.38;
	y=0.48;
	w=0.3;
	h=0.05;
	text="$STR_DISP_MAIN_CUSTOM";
	};

class Options:RscActiveMenu
	{
	font="SteelfishB128";
	sizeEx="0.6 * 0.098";
	idc=102;
	style=1;
	x=0.48;
	y=0.54;
	w=0.2;
	h=0.05;
	text="$STR_DISP_MAIN_OPTIONS";
	};

class Quit:RscActiveMenu
	{
	font="SteelfishB128";
	idc=106;
	x=0.72;
	y=0.8;
	w=0.2;
	h=0.05;
	sizeEx="0.6 * 0.098";
	text="$STR_DISP_MAIN_QUIT";
	};

class Date:RscText
	{
	idc=112;
	x=0.4;
	y=0.17;
	w=0.2;
	h=0.05;
	style=2;
	font="tahomaB24";
	sizeEx=0.02;
	text="$STR_DISP_ERROR";
	colorText[]={1,1,1,0.5};
	};

class Version:RscText
	{
	idc=118;
	x=0.35;
	y=0.09;
	w=0.2;
	h=0.05;
	style=2;
	font="tahomaB24";
	sizeEx=0.016;
	text="$STR_DISP_ERROR";
	colorText[]={1,1,1,0.5};
	};

class AllMissions:RscActiveMenu
	{
	idc=104;
	x=0.4;
	y=0.935;
	w=0.52;
	h=0.03;
	font="SteelfishB64";
	sizeEx="0.5 * 0.05";
	colorText[]={1,1,1,0.25};
	text="$STR_DISP_MAIN_DESIGN";
	};

class FPWversion : Version
	{
	idc=1;
	style=0;
	x=.48;
	text="FPW MOD 1.0 2014";
	};
};

Good luck :)

Share this post


Link to post
Share on other sites

Thanks for the reply Prof. :)

Although I don't see what will remove the bars.

If you didn't have the GUI image in the second control,would you see the desert island

with only the active text on-screen?

The problem I'm having seems to stem from the "stripe" classes above the "displaymain" class.

These classes weren't present in 1.96.The top and bottom bars were controls defined inside

of "displaymain".They could be set to full transparency.

I can't get the same result with the "stripe" classes.I can change the colour,but not the transparency.In fact.The only thing you can alter in those classes is the colour.If you

alter the dimensions or position you're again left with the black bars.

It seems like someone "hard-coded" the bars when 1.99 was being developed.

I can't find a class that affects them.

Perhaps I'm missing something obvious.But that's how it's working for me.

Edited by Maczer

Share this post


Link to post
Share on other sites

Ok, i got it. You're right, my GUI picture is only hiding those stripes, i thought i got rid of them but nope.

Share this post


Link to post
Share on other sites

Damn!I was hoping you'd performed some config magic. :D

Share this post


Link to post
Share on other sites

Excellent.Thanks for the reply and assistance Faguss. :)

Share this post


Link to post
Share on other sites

Cutscene borders are actually a 3D object (data3d\kino.p3d) so they could also be removed that way.

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  

×