mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 07:51:32 +01:00
(fix) scoreboard haeder background
This commit is contained in:
parent
9cc713c551
commit
dc8601c83d
@ -105,10 +105,10 @@ public class ScoreboardMod extends Mod {
|
|||||||
if (k == scores.size()) {
|
if (k == scores.size()) {
|
||||||
String s3 = sidebar.getDisplayName();
|
String s3 = sidebar.getDisplayName();
|
||||||
|
|
||||||
if(background) {
|
|
||||||
if(headerBackground) {
|
if(headerBackground) {
|
||||||
Gui.drawRect(sidebarX - 2, scoreY - fr.FONT_HEIGHT - 1, scoreX, scoreY - 1, headerBgColor.getRGB());
|
Gui.drawRect(sidebarX - 2, scoreY - fr.FONT_HEIGHT - 1, scoreX, scoreY - 1, headerBgColor.getRGB());
|
||||||
}
|
}
|
||||||
|
if(background) {
|
||||||
Gui.drawRect(sidebarX - 2, scoreY - 1, scoreX, scoreY, bgColor.getRGB());
|
Gui.drawRect(sidebarX - 2, scoreY - 1, scoreX, scoreY, bgColor.getRGB());
|
||||||
}
|
}
|
||||||
fr.drawString(s3, sidebarX + (sidebarWidth - fr.getStringWidth(s3)) / 2, scoreY - fr.FONT_HEIGHT, -1, fontShadow);
|
fr.drawString(s3, sidebarX + (sidebarWidth - fr.getStringWidth(s3)) / 2, scoreY - fr.FONT_HEIGHT, -1, fontShadow);
|
||||||
|
Loading…
Reference in New Issue
Block a user