• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

HIVE

Tasyen
Tasyen
I also can't change the highlighter by code.
Dellirium
Dellirium
Do you then know of any way to "accent" a button. I want a button to GLOW when i tell it to, and not glow otherwise. For example the "autocast" effect, if you know what I mean. (https://imgur.com/45ucoK6)
Or any other "animated" thing, a GIF or a particle effect.
Tasyen
Tasyen
The auto model can be displayed with a "SPRITE"-Frame. Such a "SPRITE"-Frame will loop an Animation of the given model. It has the path "ui\feedback\autocast\ui-modalbuttonon.mdx" "SPRITE" Frames don't use the SetSize to change the size, instead you have to use BlzFrameSetScale to make the SPRITE bigger or smaller.
Dellirium
Dellirium
Thank you, I will look into it when i get the chance. I am currently having an issue with a .fdf where if I modify one frame to add a "File "TexturePath" another frame stops working. Its hard to explain in a short post, if I don't solve it, I will write a PM. Thanks for all your assistance.
Tasyen
Tasyen
I also encountered that, when there is an error in fdf the parser skips parts of it.
Dellirium
Dellirium
Is there a way to directly add a "Texture" for highlight to simplebutton, in your tutorial here: https://www.hiveworkshop.com/threads/ui-simpleframes.320385/ you add it by making a Texture mainframe. Can I somehow put it "inside" the simplebutton frame?

I tried simply moving it into Artwork layer, but that didnt work, green texture ingame.


Frame "SIMPLEBUTTON" "xUI_SimplePanel" {
Width 0.0375,
Height 0.0375,

UseHighlight "xUI_SimplePanelHighlight",

Layer "ARTWORK" {
Texture "xUI_SimplePanelTexture" {
File "Textures\Transparent.tga",
}
Texture "xUI_SimplePanelHighlight" {
File "UI\Glues\ScoreScreen\scorescreen-tab-hilight",
//File "textures\red_glow1",
//File "textures\yellow_glow",
//File "textures\blue_glow2",
AlphaMode "ADD",
}
}
}
Tasyen
Tasyen
No, one has to define the highlight texture at the outside for simplebuttons.
Dellirium
Dellirium
Thank you. Do you know if it is possible to set VertexColoring on frametype "BUTTON" the same code works for "SIMPLETEXTURE" and "SIMPLEBUTTON" but not for the button. Is vertext coloring only available for simple frames?

Also, is it posible to programatically change text alignment, I've found the "BlzFrameSetTextAlignment" native, but it doesn't seem to do anything for me. I also tried increasing the width/height of the "SIMPLETEXT" frame, but it didnt help. Maybe my fdf is not set right. Do you have any example of where it is done so that I can reverse-engineer it?
Top