Add shadows to button and checkbox GUI

This commit is contained in:
johni0702
2015-07-15 15:54:28 +02:00
parent 7ee5f86b4e
commit 8889f3c340
2 changed files with 2 additions and 2 deletions

View File

@@ -79,7 +79,7 @@ public abstract class AbstractGuiButton<T extends AbstractGuiButton<T>> extends
renderer.drawTexturedRect(0, 0, 0, textureY, halfWidth, size.getHeight());
renderer.drawTexturedRect(halfWidth, 0, 200 - halfWidth, textureY, halfWidth, size.getHeight());
renderer.drawCenteredString(halfWidth, (size.getHeight() - 8) / 2, color, label);
renderer.drawCenteredString(halfWidth, (size.getHeight() - 8) / 2, color, label, true);
}
@Override

View File

@@ -67,7 +67,7 @@ public abstract class AbstractGuiCheckbox<T extends AbstractGuiCheckbox<T>>
renderer.drawRect(1, 1, boxSize - 2, boxSize - 2, BOX_BACKGROUND_COLOR);
if(isChecked()) {
renderer.drawCenteredString(boxSize / 2 + 1, 1, color, "x");
renderer.drawCenteredString(boxSize / 2 + 1, 1, color, "x", true);
}
renderer.drawString(boxSize + 2, 2, color, label);