Answered Source Engine Base Not Showing Background

Status
Not open for further replies.

candy

G59 Terrorist
Staff member
Donator
Messages
1,322
Reaction score
752
Points
973
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 -
Please, Log in or Register to view URLs content!


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

Inactive Account

Old CCM Member
Premium Member
Messages
479
Reaction score
241
Points
913
Hello,
Can you complete your thread please.
I give your 24 hours for this,
Thank's :tongueclosed:
 

Harry

Certified Sick ℂunt
Premium Member
Messages
1,253
Reaction score
942
Points
973
Probably because you isn't 1337 haxOr
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
5,093
Reaction score
2,881
Points
1,103
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 -
Please, Log in or Register to view URLs content!


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,322
Reaction score
752
Points
973
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
5,093
Reaction score
2,881
Points
1,103
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