Stats in action bar

Discussion in 'Plugin Development' started by Anrza, Jun 29, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    Anrza

    So I'd like to add stats to the action bar. I am currently using Action bar API.


    I want it to be like this:
    [stat1]x-----[stat2]x-----[message space]-----[stat3]x-----[stat4]x
    Imagine the '-' are spaces.
    Where [stat] is stuff like health, experience, et cetera.

    Let's say I have this:
    Health: 20-----Kills: 3-----Killed Steve!-----Deaths: 0-----Bags: 10
    And then something changes:
    Health: 0-----Kills: 3-----Killed by randomNoob!-----Deaths: 1-----Bags: 9
    That causes this shift:
    Health: 20-----Kills: 3-----Killed Steve!-----Deaths: 0-----Bags: 10
    Health: 0-----Kills: 3-----Killed by randomNoob!-----Deaths: 1-----Bags: 9

    Meaning it becomes a pain for the eyes to follow the stats, as the Deaths and Bags stats have moved two inches to the right.

    I'd like to make it align:
    Health: 20-----Kills: 3-------Killed Steve!-------Deaths: 0-----Bags: 10
    Health: 0------Kills: 3-Killed by randomNoob!-Deaths: 1-----Bags: 9
    Health: 20-----Kills: 3-------Respawned!--------Deaths: 1-----Bags: 9
    Health: 9------Kills:3------------------------------Deaths: 1------Bags: 20

    I realize I need to get character width and such. I'm wondering if anyone has tools/resources for this so I don't have to invent the wheel again.
     
Thread Status:
Not open for further replies.

Share This Page