Centered action bar cooldowns

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Blulel

Member
Nov 28, 2024
1
0
1
When I am using a action bar to display abilities when the abilities cooldown is being displayed the action bar will not be centered. Does anyone know how to center it?
 
Take a number x of how many bits of the boss-bar you have, then take a another number called y and set that to how many total bits you have of the boss-bar. Then find the center of the total bits. So y/2 and do the following; h=y/2 s=h-x/2 and then start displaying your bits on the boss-bar from s.
 
Last edited: