Funwayguy / StandardQuestingPack

MIT License
16 stars 19 forks source link

When printing the title of a scoreboard task, the text is centered as though it is printing the score name, not the display name. #71

Closed talonos2 closed 6 years ago

talonos2 commented 6 years ago

To reproduce:

Have a scoreboard task where you check for the score name "Tiny", but the display name is "A very long name". You will see that the name extends off the right side of the screen, and is not centered at all.

To fix:

It's probably as easy as changing GuiTaskScoreboard.java line 40 to int tw1 = mc.fontRenderer.getStringWidth(TextFormatting.BOLD + task.scoreDisp); to match what is actually printed in the line beneath it.

talonos2 commented 6 years ago

image

Funwayguy commented 6 years ago

Looks like when I changed it to use the display name instead I forgot to change the math to account for that. Thanks for the report, I'm a bit sidetracked working on another mod but I'll see about working this fix into the next set of BQ3 updates

talonos2 commented 6 years ago

No prob. As always, thanks for your work.

Funwayguy commented 6 years ago

Sent up build 144 to CurseForge with this fix included.