Solved Scoreboard is resizing when displayname is scrolling

Discussion in 'Plugin Development' started by XLordalX, Jun 1, 2014.

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

    XLordalX

    Hello,

    So I made a scoreboard and the displayname is constantly scrolling but it keeps resizing the scoreboard, is there any way to fix this?

    Thanks in advance!
     
  2. Offline

    Glumpz

    XLordalX You can always add more spaces and periods to stop it from re-sizing each time.
     
  3. Offline

    XLordalX

    Glumpz But I don't want the scoreboard to be the max size.
     
  4. Offline

    Zupsub

    Then only display as many characters as needed.:confused:
     
  5. Offline

    XLordalX

    Zupsub But then the scoreboard keeps resizing as the displayname changes...
     
  6. Offline

    Garris0n

    Well, is the text changing sizes?
     
  7. Offline

    XLordalX

    Garris0n Yes because the width of all characters are not the same.
     
  8. Offline

    Garris0n

    Well there's not really anything you can do about that unless you feel like bugging Dinnerbone.
     
  9. Offline

    XLordalX

    Garris0n I've seen it on multiple servers such as Mineplex.
     
  10. Offline

    Garris0n

    Theirs glitches out a bit too. Perhaps try using bold text, maybe that helps.
     
  11. Offline

    XLordalX

    Garris0n
    It is bold already and for me it is not glitching at all at Mineplex (default texture pack)
     
  12. Offline

    Garris0n

    Theirs appears to have spaces on both sides, perhaps that pads it somehow? I'm not really sure how to fix that without maxing it out.

    Perhaps max it out with random trailing color codes?
     
  13. Offline

    XLordalX

  14. Offline

    deathline75

    Try setting a very long title for the sidebar? Like -----[Stuff]-----
     
  15. Offline

    XLordalX

    deathline75
    Not working. Also like I said before I don't want the title to be so long.
     
  16. Offline

    fireblast709

    XLordalX It seems you either have to accept a longer title or accept glitchy looking resizing... The scoreboard should stretch till the largest displayed name fits, so by having a title or score filling that space constantly, it will never shrink (and therefore not 'glitch')
     
  17. Offline

    Zupsub

    You can also use a shorter title and add space before / after it to center it. That would have the same result.
     
  18. Offline

    XLordalX

    fireblast709
    Check for example Mineplex, their scoreboard name does scroll and is 16 character wide.
     
  19. Offline

    fireblast709

    XLordalX and what do you think Mineplex does?
     
  20. Offline

    Garris0n

    I don't think there's anything fancy they can do. At this point, I'd be curious as to what OP's code looks like, as that's the only "problem" I can think of.
     
  21. Offline

    Bart

    Look at the bottom row of Mineplex's scoreboard. It's 16 -'s to hold the scoreboard's width in place.
     
    XLordalX likes this.
  22. Offline

    XLordalX

    Bart
    Thank you so much! That worked.
     
Thread Status:
Not open for further replies.

Share This Page