Talk:VGUI Documentation

From Valve Developer Community
Revision as of 18:59, 19 November 2006 by Imatard (talk | contribs)
Jump to: navigation, search

What is the shortcut or console command to reload the menu resource files while in-game?


--tantoedge 04:03, 30 Jun 2005 (PDT)

Anyone know how to remove textures when they've been finished with? I know normally you would want to keep any textures loaded to cut load time between maps, but I found an unusual case. After working on the OVERVIEW_PANEL for some time, I've managed to get it to load different player icons depending on the team they've joined. Unfortunately it only does this when the server is first started, and keeps the textures loaded through each map change. The down side is that if a player changed teams between map changes he'll end up displaying the wrong icon on the next round, as his previous texture is still loaded. Ideally I'd like it to flush the icons, sos each time the panel is invoked, it reloads the correct ones. (Fallen)


In my programming, I found that you must set DrawSetColor before calling DrawTexturedRect, or you don't get anything on the screen if the texture has any transparency. I've added a line in the example to reflect this. Please remove it if I am wrong.


This is correct...this is the fallout of previous calls to DrawSetColor—ts2do 18:20, 6 Oct 2006 (PDT)

For those who want to know, the localization file is preferred to be encoded UTF-16 (Unicode).

ImaTard 17:59, 19 Nov 2006 (PST)