• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

Transparent frame or with empty background?

Status
Not open for further replies.
Level 23
Joined
Jun 26, 2020
Messages
1,780
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.
 
Level 23
Joined
Jun 26, 2020
Messages
1,780
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