[ Converted text/html to text/plain ] So is this normal then? Thanks! Alfred Reynolds wrote:
In PaintBackground() of the panel that is the parent of the menu we actually do a fullscreen DrawFilledRect() with a non zero alpha to cause the darkening effect (after we render the background texture). - Alfred ----Original Message---- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kamran Sent: Wednesday, June 29, 2005 4:38 PM To: [EMAIL PROTECTED] Subject: Re: [hlcoders] Making "EditablePanel" bg transparent [ Converted text/html to text/plain ] I mean, for example, click "Options". The background will go black (I have a background01 image). My EditablePanel doesn't fade out, meaning I can still see the image. Here's an example: http://www.intrepidstudios.com/art/temp/Menu_before.gif[1[4]] http://www.intrepidstudios.com/art/temp/Menu_after.gif[2[5]] Alfred Reynolds wrote: Do you mean the darkening effect when you hover the mouse over an item? Perhaps a screenshot of the problem would help? - Alfred ----Original Message---- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, June 29, 2005 3:55 PM To: [EMAIL PROTECTED] Subject: RE: [hlcoders] Making "EditablePanel" bg transparent Hey guys, thanks for your help, wow. It works now, I added an ImagePanel instead with a VTF with a transparent background and it all works. My next problem (same panel) is that, you know when you click a menu option how the BG turns black? My image wont fade to black... it stays and although looks nice I would like it to disappear like everything else. It disappears on the Quit menu and Loading box. I guess I should also note that it's a material ;) "hud_stamina" { "file" "vgui/flfhud/hud_icons" "x" "133" "y" "5" "width" "56" "height" "56" } And of course the vmt/vtf is vgui/flfhud/hud_icons.vmt/vtf -----Original Message----- From: Tony "omega" Sergi [mailto:[EMAIL PROTECTED] Sent: June 29, 2005 5:23 PM To: [EMAIL PROTECTED] Subject: RE: [hlcoders] Making "EditablePanel" bg transparent Here's an example of one of my hud elements that uses an icon with a toggleable background: <snip> I can toggle the background on or off with SetBackgroundEnabled() and the icon still draws. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.8.6/33 - Release Date: 28/06/2005 _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders[9[12]] _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders[10[13]] _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders[11[14]] _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders[15] -- Kamran A Get Firefox! Safer, Faster, Better.[16] Down with Internet Explorer! Say "NO!" to Spyware! Use Firefox ===References:=== 1. mailto:[EMAIL PROTECTED] 2. mailto:[EMAIL PROTECTED] 3. mailto:[email protected] 4. http://www.intrepidstudios.com/art/temp/Menu_before.gif%5B1 5. http://www.intrepidstudios.com/art/temp/Menu_after.gif%5B2 6. mailto:[EMAIL PROTECTED] 7. mailto:[EMAIL PROTECTED] 8. mailto:[EMAIL PROTECTED] 9. mailto:[EMAIL PROTECTED] 10. mailto:[EMAIL PROTECTED] 11. mailto:[EMAIL PROTECTED] 12. http://list.valvesoftware.com/mailman/listinfo/hlcoders%5B9 13. http://list.valvesoftware.com/mailman/listinfo/hlcoders%5B10 14. http://list.valvesoftware.com/mailman/listinfo/hlcoders%5B11 15. http://list.valvesoftware.com/mailman/listinfo/hlcoders 16. http://www.spreadfirefox.com/?q=affiliates&id=0&t=85 _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

