Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/19/24 18:45
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
3 registered members (7th_zorro, AndrewAMD, TedMar), 837 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
TRANSLUCENT flag on panels ignored #340684
09/06/10 16:36
09/06/10 16:36
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline OP
Serious User
MrGuest  Offline OP
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
Hey,

If resetting a translucent flag on a panel, the image is not being drawn intransparent

v8.02.0 commercial
Code:
#include <acknex.h>
#include <default.c>

#define PRAGMA_PATH "%EXE_DIR%\templates\images";

BMAP* bmp_backPack = "ammo_hud.tga";
PANEL* pnl = {
	bmap = bmp_backPack;
	flags = SHOW;
}

void main(){
	
	wait(-2);
	while(pnl.alpha > 20){
		
		pnl.alpha -= time_step;
		wait(1);
	}
	reset(pnl, TRANSLUCENT);
	beep();
}



Re: TRANSLUCENT flag on panels ignored [Re: MrGuest] #340727
09/07/10 11:11
09/07/10 11:11
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Who can help MrGuest with his panel problem?

Re: TRANSLUCENT flag on panels ignored [Re: jcl] #340731
09/07/10 11:19
09/07/10 11:19
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
You have not even set the TRANSLUCENT flag, so it makes no sense to reset it. Probably your image is already transparent.

Re: TRANSLUCENT flag on panels ignored [Re: Tobias] #340735
09/07/10 11:53
09/07/10 11:53
Joined: Sep 2007
Posts: 62
Germany
B
bodden Offline
Junior Member
bodden  Offline
Junior Member
B

Joined: Sep 2007
Posts: 62
Germany
From the manual:
Quote:
For panel transparency, the TRANSLUCENT flag must be set or an alpha channel image ( TGA 32 bit, or DDS) must be used.


As you are using a tga, your panel is always "transparent". Set alpha back to it's starting value (50 or 100? not sure), to reset the transparence of the image

Re: TRANSLUCENT flag on panels ignored [Re: bodden] #341006
09/09/10 15:48
09/09/10 15:48
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline OP
Serious User
MrGuest  Offline OP
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
my bad... didn't realise tga ignores the translucent flag. thanks Bodden!


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