On/Off Button textures

On/Off Button textures

Re: On/Off Button textures Posted by Dark Tree on Mon May 16th 2005 at 9:40am
Dark Tree
646 posts
Posted 2005-05-16 9:40am
646 posts 264 snarkmarks Registered: Apr 30th 2004 Occupation: DigiPen student Location: USA
In Half-Life 1 we had textures named +0_button1 and +A_button1. Is there a similar method for Half-Life 2 to make on/off textures? I read the tutorial on buttons...and the tutorial on textures....and searched adnausium but to no avail.

I'm sure you target the other vtf in one vmt....or maybe the second layer of the vtf....just not sure how.
Re: On/Off Button textures Posted by Rof on Mon May 16th 2005 at 4:36pm
Rof
210 posts
Posted 2005-05-16 4:36pm
Rof
member
210 posts 41 snarkmarks Registered: Dec 3rd 2004
You can do it with a multi-frame .vtf, a few extra lines in the .vmt,
and an env_texturetoggle entity, using the SetTextureIndex input.

I saw a really good tutorial for it over at VERC recently, but I can't locate it now.

Ah, found it:

http://forum.interlopers.net/viewtopic.php?t=2992&highlight=envtexturetoggle
VMEX, Pakrat & Entspy
Re: On/Off Button textures Posted by Dark Tree on Tue May 17th 2005 at 12:26am
Dark Tree
646 posts
Posted 2005-05-17 12:26am
646 posts 264 snarkmarks Registered: Apr 30th 2004 Occupation: DigiPen student Location: USA
Bingo! Thanks, Rof! :biggrin: