Gamestudio Links
Zorro Links
Newest Posts
the company
by dabolong. 11/06/26 08:25
Removing outliers from files
by jcl. 11/04/26 10:30
[MED] Import from FBX (2010) missing!!!
by rayp. 11/03/26 14:33
What are you working on?
by rayp. 11/02/26 13:57
No connection to MT4
by JeyKey II. 10/29/26 09:34
Zorro plugin for Hyperliquid.xyz
by opm. 10/28/26 13:50
Icon "OP"
by JeyKey II. 10/27/26 07:03
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (dabolong, Quad, 1 invisible), 9,548 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
dabolong, MaliceTheMaker, Haitao_Ren, JimSimons, julienp
19249 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,146
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,146
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,141
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,141
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