• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

Transparent frame or with empty background?

Status
Not open for further replies.
Level 24
Joined
Jun 26, 2020
Messages
1,878
Hello, I wanna know how can I create frames with empty background because I'm using blps that it suppose they have empty background, but they appears with a black background; also make them transparent because the function BlzFrameSetAlpha and BlzFrameSetVertexColor are not working.
 
Inside BlzFrameSetTexture(frame, texFile, 0, true) make sure the last arg, is true to use transparenzy.
BlzFrameSetAlpha should work.
BlzFrameSetVertexColor not so much as that only works for simpleframes which most people don't use as it requires custom fdf.
 
Last edited:
Level 24
Joined
Jun 26, 2020
Messages
1,878
Inside BlzFrameSetTexture(frame, texFile, 0, true) make sure the last arg, is true to use transparenzy.
BlzFrameSetAlpha should work.
BlzFrameSetVertexColor not so much as that only works for simpleframes which most people don't use as it requires custom fdf.
He, my editor is to tight that I didn't notice that the function BlzFrameSetTexture has 2 other parameters, I was using the Warcraft 3 Reforged UI Designer (RUID) to make the base, thank you.
But, what happens with the icons with "empty background"?
Edit: Maybe you know it, but I found that also the function BlzFrameSetVisible resets the alpha of the frame and I was hiding and showing it and for that I didn't notice it.
 
Last edited:
Edit: Maybe you know it, but I found that also the function BlzFrameSetVisible resets the alpha of the frame and I was hiding and showing it and for that I didn't notice it.
I don't know of such behaviour. But you have to know that a Frame takes over the alpha of it's parent and some other stuff. When you first set the alpha of the child and afterwards the parent the child alpha is overwritten.

But, what happens with the icons with "empty background"?
What should be with them? They should show when you tell a BACKDROP/Texture to display them. As long warcraft 3 can read the image format and the file is found at the given path.
 
Status
Not open for further replies.
Top