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]
> http://www.intrepidstudios.com/art/temp/Menu_after.gif[2]
> 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]
>
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list
> archives, please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders[10]
>
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list
> archives, please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders[11]

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to