Skip to content

Commit d6e3d1f

Browse files
committed
Include full alpha color as a border to loadscreen key
1 parent 1e3a618 commit d6e3d1f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main/java/io/github/opencubicchunks/cubicchunks/client/gui/screens/CubicLevelLoadingScreen.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,11 @@ private static void renderColorKey(GuiGraphics guiGraphics, int[] chunkStatusCou
144144
var statusLabel = status.getName().substring("minecraft:".length()) + " (" + chunkStatusCounts[status.getIndex()] + ", "
145145
+ cubeStatusCounts[status.getIndex()] + ")";
146146
guiGraphics.drawString(font, statusLabel, x + radius + margin, y + 2, ARGB.white(1));
147-
int color = ARGB.color(STATUS_ALPHAS.getValue(status.getIndex()), STATUS_COLORS.getOrDefault(status, DEFAULT_STATUS_COLOR));
148-
guiGraphics.fill(x, y, x + radius, y + radius, color);
147+
int color = ARGB.opaque(STATUS_COLORS.getOrDefault(status, DEFAULT_STATUS_COLOR));
148+
int colorWithAlpha = ARGB.color(STATUS_ALPHAS.getValue(status.getIndex()), color);
149+
guiGraphics.fill(x, y, x + radius, y + radius, colorWithAlpha);
150+
guiGraphics.renderOutline(x, y, radius, radius, color);
151+
149152
y += radius + margin;
150153
}
151154
}

0 commit comments

Comments
 (0)