Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
TIMER-err committed Feb 14, 2024
1 parent 722dd84 commit 5b71eee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ else if (moduleButton == getParent() && getParent().getChildComponents().indexOf
}
if (value instanceof BooleanValue) {
BooleanValue booleanValue = (BooleanValue) value;
font.drawString(value.getName(), getX() + 5 - 0.5f, getY() + (getHeight() - font.getHeight()) / 2f + 1, -1);
font.drawString(value.getName(), getX() + 5, getY() + (getHeight() - font.getHeight()) / 2f, -1);
int w = 8, h = 8;
RenderUtil.drawRect2(getX() + getWidth() - 5 - w, getY() + (getHeight() - h) / 2f, w, h, ImplScreen.MainTheme[1].getRGB());
if (booleanValue.getValue())
icon.drawString("j", getX() + getWidth() - 5 - w, getY() + (getHeight() - icon.getHeight()) / 2f, ImplScreen.getComponentColor((all - 1 - index) * 100));
icon.drawString("j", getX() + getWidth() - 5 - w - 0.5f, getY() + (getHeight() - icon.getHeight()) / 2f + 1, ImplScreen.getComponentColor((all - 1 - index) * 100));
} else if (value instanceof NumberValue<?>) {
NumberValue<?> numberValue = (NumberValue<?>) value;
font.drawString(numberValue.getName(), getX() + 5, getY() + 5, -1);
Expand Down

0 comments on commit 5b71eee

Please sign in to comment.