• 🏆 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
it is a model, you can import a scaled one, the easy & clean method.

One can access the frames that display the cooldowns using the frame child api but it is dirty. you first need to make sure the buttons create it by selecting an unit with active cooldowns at the spots for all players. Then get child 0 of ORIGIN_FRAME_COMMAND_BUTTON and use BlzFrameSetScale.
Dark-Zalor
Dark-Zalor
Yeah these frames does not exists at the beginning, so I had a lot of crashes. Because working on it crashes if at least one player does not have it.

Why is it dirty to scale it by code?
How can I get the default cooldown object and how can I resize it?

Thanks.
Tasyen
Tasyen
create a shop give all players vision over it and add 12 options with 0 starting stock and select it for all players. then 1s afterwards you can get the childs over frame api.
i would suggest to scale it by a ratio to default command button Size: yours/0.039.

I think it is dirty because of this preparation: makes it difficult to do and then after Save & Load again. and if not done it crashs :( , y.
Exporting the model and rescaling it in an model editor and reimporting it, looks far cleaner/easier in comparison. Which is also super easy to do in magos model editor. DownSide is it would affect everything using the model.
Dark-Zalor
Dark-Zalor
A big thanks, for your Patience, all the informations you share and the great tutorial you made.
I really like my projects and playing with frames, I always want to go further.
And this is thanks to you.
Dark-Zalor
Dark-Zalor
Hello,

I tried with ORIGIN_FRAME_COMMAND_BUTTON, but it does not change anything, I saw the index going from 0 to 7.
I tried with scale 0.01, 1, 1.5, 2, 3, 5 but nothing change

I tried to move the frame with the BlzFrameSetAllPoints and a function that set topleft and bottomright points

Link

Nothing works, as you can see in the screenshot I sent you
Tasyen
Tasyen
Sry, seems like my know how about cooldown button modding is wrong.
Top