Answered Source Engine Base Not Showing Background

Status
Not open for further replies.

candy

G59 Terrorist
Staff member
Donator
Messages
1,300
Points
548
so im using the Source Engine Menu Base and I moved it around a lot
When the menu is open the alpha is set to 1

Here it is in StoreShaders
Code:
self.menu.background = self createRectangle("TOP","TOP",-100,0,150,10,(0,0,0),"white",1, 0);
and the Open/Close Menu
Code:
OpenMenu()
{
//just showing this other than everything else that doesnt really matter
self.menu.background.alpha = 1;
}
CloseMenu()
{
//just showing this other than everything else that doesnt really matter
self.menu.background.alpha = 0;
}
What it looks like -
You have to be logged in to view links Log in or register now.


Im really not sure why its not showing up, so Im not 100% on where to look
 
Last edited:

BaDSooD

Old CCM Member
Messages
614
Points
413
Hello,
Can you complete your thread please.
I give your 24 hours for this,
Thank's :tongueclosed:
 

Harry

Software Engineer
Premium Member
Messages
1,238
Points
548
Probably because you isn't 1337 haxOr
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
4,369
Points
553
so im using the Source Engine Menu Base and I moved it around a lot
When the menu is open the alpha is set to 1

Here it is in StoreShaders
Code:
self.menu.background = self createRectangle("TOP","TOP",-100,0,150,10,(0,0,0),"white",1, 0);
and the Open/Close Menu
Code:
OpenMenu()
{
//just showing this other than everything else that doesnt really matter
self.menu.background.alpha = 1;
}
CloseMenu()
{
//just showing this other than everything else that doesnt really matter
self.menu.background.alpha = 0;
}
What it looks like -
You have to be logged in to view links Log in or register now.


Im really not sure why its not showing up, so Im not 100% on where to look
I don't know maybe it is the .sort. Do you set the sort for the element?

Also try to set the Alpha to one in the creat function, maybe you open function don't thread to the end.
 

candy

G59 Terrorist
Staff member
Donator
Messages
1,300
Points
548
I don't know maybe it is the .sort. Do you set the sort for the element?

Also try to set the Alpha to one in the creat function, maybe you open function don't thread to the end.
I think I have found it, I set the sort to 1 in storeshaders, and it was showing up behind the top bar, I didnt have the "y" coordinates correct
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
4,369
Points
553
I think I have found it, I set the sort to 1 in storeshaders, and it was showing up behind the top bar, I didnt have the "y" coordinates correct
:grinning: ok fine
 
Status
Not open for further replies.

Top