Add shadows to button and checkbox GUI
This commit is contained in:
@@ -79,7 +79,7 @@ public abstract class AbstractGuiButton<T extends AbstractGuiButton<T>> extends
|
|||||||
|
|
||||||
renderer.drawTexturedRect(0, 0, 0, textureY, halfWidth, size.getHeight());
|
renderer.drawTexturedRect(0, 0, 0, textureY, halfWidth, size.getHeight());
|
||||||
renderer.drawTexturedRect(halfWidth, 0, 200 - halfWidth, 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
|
@Override
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ public abstract class AbstractGuiCheckbox<T extends AbstractGuiCheckbox<T>>
|
|||||||
renderer.drawRect(1, 1, boxSize - 2, boxSize - 2, BOX_BACKGROUND_COLOR);
|
renderer.drawRect(1, 1, boxSize - 2, boxSize - 2, BOX_BACKGROUND_COLOR);
|
||||||
|
|
||||||
if(isChecked()) {
|
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);
|
renderer.drawString(boxSize + 2, 2, color, label);
|
||||||
|
|||||||
Reference in New Issue
Block a user