render the checkbox in optionsoverlay in the middle of the line
This commit is contained in:
parent
44ad94bfc1
commit
1ac1b96127
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user