Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (henrybane), 1,499 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
overlay doesnt work when transparent flag is on #93350
10/06/06 20:30
10/06/06 20:30
Joined: Dec 2005
Posts: 252
MyOwnKingdom
nipx Offline OP
Member
nipx  Offline OP
Member

Joined: Dec 2005
Posts: 252
MyOwnKingdom
Hi there!

Ive a really strange problem with my panels.

best I start with a bit code:

Code:

bmap tgaMsg_headshot=<msg_headshot.tga>;

panel pnlMsg_headshot
{
bmap=tgaMsg_headshot;
layer=2;
pos_x=0;
pos_y=0;
alpha=80;
flags=transparent, overlay;
}

function fshow_msgHeadshot
{
pnlMsg_Headshot.visible=on;
}



Ok, hope code is correct, i cant remember exactly.

The problem is:
There are still black(0,0,0) parts on my panels. When I disabel the transparent flag it works.
But I d like to fade out my panel with alpha.

Does anyone know why?

thx nipx

PS: the scale_x( panel.scale_x=4; is correct, right?) doesnt work too..? Do I need to set a flag?

Re: overlay doesnt work when transparent flag is o [Re: nipx] #93351
10/06/06 20:44
10/06/06 20:44
Joined: Jan 2003
Posts: 1,738
Nashua New Hampshire
anonymous_alcoho Offline
Senior Developer
anonymous_alcoho  Offline
Senior Developer

Joined: Jan 2003
Posts: 1,738
Nashua New Hampshire
Does your targa have an alpha channel?


"Oh no, it's true! I'm a love magnet!" Calvin from Calvin and Hobbes My name's Anonymous_Alcoholic.
Re: overlay doesnt work when transparent flag is o [Re: anonymous_alcoho] #93352
10/06/06 21:27
10/06/06 21:27
Joined: Dec 2005
Posts: 252
MyOwnKingdom
nipx Offline OP
Member
nipx  Offline OP
Member

Joined: Dec 2005
Posts: 252
MyOwnKingdom
Hmmm... dont know, im not at home now.

Does it matter?

I only paint/wrote text and then saved it. So I think I m not using an alpha channel.

Re: overlay doesnt work when transparent flag is o [Re: nipx] #93353
10/06/06 22:24
10/06/06 22:24
Joined: Jan 2003
Posts: 1,738
Nashua New Hampshire
anonymous_alcoho Offline
Senior Developer
anonymous_alcoho  Offline
Senior Developer

Joined: Jan 2003
Posts: 1,738
Nashua New Hampshire
try adding an alpha channel. I'm no expert on it, but that may be it.


"Oh no, it's true! I'm a love magnet!" Calvin from Calvin and Hobbes My name's Anonymous_Alcoholic.
Re: overlay doesnt work when transparent flag is o [Re: anonymous_alcoho] #93354
10/06/06 22:41
10/06/06 22:41
Joined: Aug 2005
Posts: 1,185
Ukraine
Lion_Ts Offline
Serious User
Lion_Ts  Offline
Serious User

Joined: Aug 2005
Posts: 1,185
Ukraine
Quote:

For panel transparency, the transparent flag must be set or an alpha channel image (TGA, DDS) must be used.
Alpha channel images (TGA, DDS) are displayed at their normal transparency with the default alpha value of 50. To make them 'more transparent', use alpha values below 50.



key word is OR not AND


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1