|
|
|
|
Help!
by VoroneTZ. 10/14/25 05:04
|
|
|
|
|
|
2 registered members (Grant, joenxxx),
9,921
guests, and 0
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
TRANSLUCENT flag on panels ignored
#340684
09/06/10 16:36
09/06/10 16:36
|
Joined: Jul 2008
Posts: 1,178 England
MrGuest
OP
Serious User
|
OP
Serious User
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
#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: Tobias]
#340735
09/07/10 11:53
09/07/10 11:53
|
Joined: Sep 2007
Posts: 62 Germany
bodden
Junior Member
|
Junior Member
Joined: Sep 2007
Posts: 62
Germany
|
From the manual: 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
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|
|
|