render the checkbox in optionsoverlay in the middle of the line

This commit is contained in:
yugecin 2016-12-20 19:23:58 +01:00
parent 44ad94bfc1
commit 1ac1b96127

View File

@ -284,9 +284,9 @@ public class OptionsOverlay {
private void renderCheckOption(Graphics g, GameOption option, int y, Color textColor) { private void renderCheckOption(Graphics g, GameOption option, int y, Color textColor) {
if (option.getBooleanValue()) { if (option.getBooleanValue()) {
checkOnImg.draw(optionStartX, y + optionHeight / 4, Color.pink); checkOnImg.draw(optionStartX, y + optionHeight / 2 - 10, Color.pink);
} else { } else {
checkOffImg.draw(optionStartX, y + optionHeight / 4, Color.pink); checkOffImg.draw(optionStartX, y + optionHeight / 2 - 10, Color.pink);
} }
Fonts.MEDIUM.drawString(optionStartX + 30, y, option.getName(), textColor); Fonts.MEDIUM.drawString(optionStartX + 30, y, option.getName(), textColor);
} }