Sign in to follow this  
Followers 0
Adam Kadmon

Rcs Button

3 posts in this topic

So I am having a problem with Rcs Button, 

I have this script that has the dialog built like this:

	class Controls
	{
		class RscPicture_White: RscMenuButton
		{
			idc = 1200;
			text = "";
			colorBackground[] ={1,1,1,1};
			colorFocused[] ={1,1,1,1};
			colorBackgroundActive[] ={1,1,1,0.6};
			x = -1 * GUI_GRID_W + GUI_GRID_X;
			y = 8 * GUI_GRID_H + GUI_GRID_Y;
			w = 6 * GUI_GRID_W;
			h = 5 * GUI_GRID_H;
			tooltip = "White";
			action = "['White'] spawn fnc_Script_onButtonClick";
		};

and the Define like this:

class RscButtonPicture
{
	deletable = 0;
	fade = 0;
	access = 0;
	type = 0;
	idc = -1;
	style = 48;
	colorBackground[] ={0,0,0,0};
	colorText[] ={1,1,1,1};
	font = "TahomaB";
	sizeEx = 0;
	lineSpacing = 0;
	text = "";
	fixedWidth = 0;
	shadow = 0;
	x = 0;
	y = 0;
	w = 0.2;
	h = 0.15;
	tooltipColorText[] ={1,1,1,1};
	tooltipColorBox[] ={1,1,1,1};
	tooltipColorShade[] ={0,0,0,0.65};
};

 

Now I can't figure out how to make it so that instead of having a white texture in the white button, I can put an actual custom texture from a .paa file.

 

Anyone has any clue on this?

Share this post


Link to post
Share on other sites
On 12/14/2016 at 8:00 AM, Beowulfv said:

I added mine to the 


text = "";

field and it worked for me.

Damn didn't see this.

But yeah, I tried that and it actually shows the text inside the box.

I guess it has to do with the type or style that has to be set in order for the text field to work as a texture instead of showing the actual text

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.