[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [paragui-users] transparent background & PG_MPEGPlayer
From: |
Steffen Blume |
Subject: |
Re: [paragui-users] transparent background & PG_MPEGPlayer |
Date: |
Sat, 20 Apr 2002 13:57:06 +0200 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am Mittwoch, 17. April 2002 23:01 schrieben Sie:
> Am Mit, 2002-04-17 um 19.18 schrieb Steffen Blume:
> > Hi!
> >
> > Wow, the lsit is up again :-)
>
> Yo. Back in business :))
>
> > I've got a problem with an image with transparency (saved as png), which
> > I use as background for a button. When the button is displayed for the
> > first time, it's transparent. But when I move the mouse over it, the
> > transparency gets lost.
> > In SDL_image the png loaded an the colorkey is set with SDL_SetColorKey.
> > Perhaps I only have to add this call in pgbutton.cpp somewhere (but
> > where)?
>
> Can you provide a minimal sample (+images) showing the bug ?
> That would help us a lot in nailing the bug down :))
I have an PGImage in the Background and added three PGButtons like this:
AddWidget(new PG_Image(NULL,p, "menu.png"));
AddWidget(new PG_Button(NULL, MN_SINGLEPLAYER,
PG_Rect(50,300,247,99),"","localgame")); AddWidget(new PG_Button(NULL,
MN_MULTIPLAYER, PG_Rect(400,130,303,99),"","networkgame")); AddWidget(new
PG_Button(NULL, MN_QUIT, PG_Rect(332,450,137,99), "","quit"));
Here is are the three sections out of my theme:
<widget>
<type value="localgame"/>
<object>
<name value="Button"/>
<filename name="background0" value="conquest/localgame_d.png"/>
<filename name="background1" value="conquest/localgame_l.png"/>
<filename name="background2" value="conquest/localgame_n.png"/>
<property name="backmode0" value="TILE"/>
<property name="backmode1" value="TILE"/>
<property name="backmode2" value="TILE"/>
<property name="blend0" value="0"/>
<property name="blend1" value="0"/>
<property name="blend2" value="0"/>
<property name="bordersize0" value="0"/>
<property name="bordersize1" value="0"/>
<property name="bordersize2" value="0"/>
<property name="transparency0" value="100"/>
<property name="transparency1" value="0"/>
<property name="transparency2" value="0"/>
<filename name="iconup" value="none"/>
<filename name="icondown" value="none"/>
<property name="colokey" value="0x00000000"/>
</object>
</widget>
<widget>
<type value="networkgame"/>
<object>
<name value="Button"/>
<filename name="background0" value="conquest/networkgame_d.png"/>
<filename name="background1" value="conquest/networkgame_l.png"/>
<filename name="background2" value="conquest/networkgame_n.png"/>
<property name="backmode0" value="TILE"/>
<property name="backmode1" value="TILE"/>
<property name="backmode2" value="TILE"/>
<property name="blend0" value="0"/>
<property name="blend1" value="0"/>
<property name="blend2" value="0"/>
<property name="bordersize0" value="0"/>
<property name="bordersize1" value="0"/>
<property name="bordersize2" value="0"/>
<property name="transparency0" value="0"/>
<property name="transparency1" value="0"/>
<property name="transparency2" value="0"/>
<filename name="iconup" value="none"/>
<filename name="icondown" value="none"/>
<property name="colokey" value="0x00000000"/>
</object>
</widget>
<widget>
<type value="quit"/>
<object>
<name value="Button"/>
<filename name="background0" value="conquest/quit_d.png"/>
<filename name="background1" value="conquest/quit_l.png"/>
<filename name="background2" value="conquest/quit_n.png"/>
<property name="backmode0" value="TILE"/>
<property name="backmode1" value="TILE"/>
<property name="backmode2" value="TILE"/>
<property name="blend0" value="0"/>
<property name="blend1" value="0"/>
<property name="blend2" value="0"/>
<property name="bordersize0" value="0"/>
<property name="bordersize1" value="0"/>
<property name="bordersize2" value="0"/>
<property name="transparency0" value="0"/>
<property name="transparency1" value="0"/>
<property name="transparency2" value="0"/>
<filename name="iconup" value="none"/>
<filename name="icondown" value="none"/>
<property name="colokey" value="0x00000000"/>
</object>
</widget>
How can I submit the images?
> Alex
Steffen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8wVeUv0NFVQKH0zgRArYiAJ9uq6GSme+WushG+VvFIe8oLY6KLQCfTidn
79ZLMiFSeyaKUs4knjmiqhs=
=pjfZ
-----END PGP SIGNATURE-----