Lehona / LeGo

A daedalus library for the game Gothic. It contains various packages to support modders.
19 stars 7 forks source link

Bar_SetAlpha not applying to barTex but BackTex #13

Closed skydivin4ng3l closed 5 years ago

skydivin4ng3l commented 5 years ago

Hello

I am using Anim8 to fade out a bar,...works like a charm but the actual bar texture won't change its alpha.

var int a8_XpBar; a8_XpBar = Anim8_NewExt(255, Bar_SetAlpha, bar, false);
Anim8_RemoveIfEmpty(a8_XpBar, true);
Anim8_RemoveDataIfEmpty(a8_XpBar, true);

Anim8 (a8_XpBar, 255,  5000, A8_Wait);
Anim8q(a8_XpBar,   0, 2000, A8_SlowStart);

I can provide the whole script if you like.

Best Regards

Edit: never mind tga has to have 32bit ::face_palm::