Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
UpperM

[Dialog] Delete border on RscEdit

Recommended Posts

Hi !

 

I want to delete the gray border on the RscEdit box but after few searchs I didn't find how to ..

 

Anyone know how to do it ?

 

my common.hpp :

class UpperM_RscEdit
	{
		access = 0;
		type = 2;
		x = 0;
		y = 0;
		h = 0.04;
		w = 0.2;
		colorBackground[] = TRANSPARENT;
		colorText[] ={0.95,0.95,0.95,1};
		colorSelection[] ={	"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])",1};
		autocomplete = "";
		text = "";
		size = 0.2;
		shadow = 2;
		sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
		colorDisabled[] =
		{
			1,
			1,
			1,
			0.25
		};
		canModify = 1;
		style = 16;
        lineSpacing = 1;
	};
b49484f138.jpg

 

Thank

SOLUTION

Add 512 to the style. So your style instead of:

style = 16;

 

should look like:

 

style = "16 + 512";

 

http://killzonekid.com/arma-scripting-tutorials-gui-part-4/

Share this post


Link to post
Share on other sites

have you tried

 

borderSize = 0;
 
?

Share this post


Link to post
Share on other sites

 

have you tried

 

borderSize = 0;
 
?

 

 

Yes it's doesnt work. I tried in Common.hpp and in my dialog.hpp

Share this post


Link to post
Share on other sites

Yes it's doesnt work. I tried in Common.hpp and in my dialog.hpp

 

did you save the mission so that the change takes effect? you must always either save or load the mission to update dialog changes.

 

there's also this variable you could use (just set alpha to zero):

 

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

Share this post


Link to post
Share on other sites

Yes i load my mission on each update. I try colorBorder and BorderSize in my common.hpp and still dosent work

Share this post


Link to post
Share on other sites

I just noticed something strange. Using style = "16 + 512";, some longer strings like "BackgroundTrack02_F" have a linebreak, even though the edit box is more then wide enough to fit it into one line. Any explanation?

 

 

Edit: Seem like the length is not even impotant,  "Track05_Underwater2" for example is displayed correctly in one line and "BackgroundTrack01_F_EPC" looks like this:

BackgroundTrack01_F_EP                                                                                                                                                                                                                                         
C    

Share this post


Link to post
Share on other sites

 

I just noticed something strange. Using style = "16 + 512";, some longer strings like "BackgroundTrack02_F" have a linebreak, even though the edit box is more then wide enough to fit it into one line. Any explanation?

 

 

Edit: Seem like the length is not even impotant,  "Track05_Underwater2" for example is displayed correctly in one line and "BackgroundTrack01_F_EPC" looks like this:

BackgroundTrack01_F_EP                                                                                                                                                                                                                                         
C    

 

Fine here, the width of the box is important.

Share this post


Link to post
Share on other sites

The width seemed alright, gonna recheck tomorrow.

Share this post


Link to post
Share on other sites

I fixed the issue, was totally my fault. I set the text for the edit box first and changed the width afterwards. Swapping that around made it work.

Share this post


Link to post
Share on other sites

×