Gamestudio Links
Zorro Links
Newest Posts
Help!
by VoroneTZ. 10/14/25 05:04
Zorro 2.70
by jcl. 10/13/25 09:01
ZorroGPT
by TipmyPip. 10/12/25 13:58
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 10/11/25 18:45
Reality Check results on my strategy
by dBc. 10/11/25 06:15
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (VoroneTZ), 9,291 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
joenxxx, Jota, krishna, DrissB, James168
19170 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: 28,028
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,028
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 | 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