Way to use "vgui" textures in map?

Avatar
mironos
66 Posts
Posted May 22, 2011
I've been trying to use a vgui texture ("vgui/screens/vgui_level_select_icon") in my map, and can't get it to appear correctly.

I've tried using an overlay (the icon/texture displays, but is visible through walls), and also tried using the vgui_screen entity after adding the particular texture to the vgui_screens.txt file (doesn't appear on the map at all).

Can someone point me in the right direction on how to do this?

Advertisement
Registered users don’t see ads! Register now!
Avatar
Nacimota
345 Posts
Posted May 22, 2011
Replied 28 minutes later
Pretty sure the shader for that texture won't let you use it they way you're trying to
Avatar
msleeper
4,136 Posts
Admin
Posted May 22, 2011
Replied 5 minutes later
Is this the level select material used in the Coop maps? I only have some small experience working with VGUI's so I'm not 100% sure on the solution.
Avatar
mironos
66 Posts
Posted May 22, 2011
Replied 9 minutes later
Not sure where exactly it's used in the game, but given its name, that may be right.

It looks similar to the lighted sign icons you see at the start of the single-player levels. I've attached a screenshot of the icon:

icon.jpg

That's similar to the use I had in mind for it -- sort of an "exit sign". Just not sure how to do it.

Images 1
Post image 1
Avatar
ZeronFX
32 Posts
Posted May 22, 2011
Replied 29 minutes later
There's an identical overlay texture under the signage/ term. Search for "signage" to get all the instructional signs.
Avatar
mironos
66 Posts
Posted May 22, 2011
Replied 14 minutes later
Wow. Totally didn't catch that. :redface:

Yes, that works perfectly for what I was trying to do. Thanks for the help.

Sorry I didn't see that before, guys.

Advertisement
Registered users don’t see ads! Register now!
Avatar
Omnicoder
299 Posts
Posted May 22, 2011
Replied 1 hour later
For the future, if you ever want to use vgui materials you'll need to make a copy without ignorez in the vmt.