diff --git a/src/main/java/brentmaas/buildguide/property/PropertyInt.java b/src/main/java/brentmaas/buildguide/property/PropertyInt.java index 25fd7aa..f9306e0 100644 --- a/src/main/java/brentmaas/buildguide/property/PropertyInt.java +++ b/src/main/java/brentmaas/buildguide/property/PropertyInt.java @@ -17,11 +17,13 @@ public PropertyInt(int x, int y, int value, TextComponent name, Runnable onUpdat buttonList.add(new Button(x + 90, y, 20, 20, new StringTextComponent("-"), button -> { --this.value; valueWidget.setText("" + this.value); + valueWidget.setTextColor(0xFFFFFF); if(onUpdate != null) onUpdate.run(); })); buttonList.add(new Button(x + 190, y, 20, 20, new StringTextComponent("+"), button -> { ++this.value; valueWidget.setText("" + this.value); + valueWidget.setTextColor(0xFFFFFF); if(onUpdate != null) onUpdate.run(); })); buttonList.add(new Button(x + 160, y, 30, 20, new TranslationTextComponent("screen.buildguide.set"), button -> { @@ -43,6 +45,7 @@ public void render(MatrixStack matrixStack, int mouseX, int mouseY, float partia public void setValue(Integer value) { super.setValue(value); valueWidget.setText("" + value); + valueWidget.setTextColor(0xFFFFFF); } public void addTextFields(FontRenderer fr) { diff --git a/src/main/java/brentmaas/buildguide/property/PropertyMinimumInt.java b/src/main/java/brentmaas/buildguide/property/PropertyMinimumInt.java index 17a4785..bc87d3a 100644 --- a/src/main/java/brentmaas/buildguide/property/PropertyMinimumInt.java +++ b/src/main/java/brentmaas/buildguide/property/PropertyMinimumInt.java @@ -19,11 +19,13 @@ public PropertyMinimumInt(int x, int y, int value, TextComponent name, Runnable buttonList.add(new Button(x + 90, y, 20, 20, new StringTextComponent("-"), button -> { if(this.value > this.minInt) --this.value; valueWidget.setText("" + this.value); + valueWidget.setTextColor(0xFFFFFF); if(onUpdate != null) onUpdate.run(); })); buttonList.add(new Button(x + 190, y, 20, 20, new StringTextComponent("+"), button -> { ++this.value; valueWidget.setText("" + this.value); + valueWidget.setTextColor(0xFFFFFF); if(onUpdate != null) onUpdate.run(); })); buttonList.add(new Button(x + 160, y, 30, 20, new TranslationTextComponent("screen.buildguide.set"), button -> { @@ -50,6 +52,7 @@ public void render(MatrixStack matrixStack, int mouseX, int mouseY, float partia public void setValue(Integer value) { super.setValue(value); valueWidget.setText("" + value); + valueWidget.setTextColor(0xFFFFFF); } public void addTextFields(FontRenderer fr) { diff --git a/src/main/java/brentmaas/buildguide/property/PropertyNonzeroInt.java b/src/main/java/brentmaas/buildguide/property/PropertyNonzeroInt.java index 560b27c..57d35ff 100644 --- a/src/main/java/brentmaas/buildguide/property/PropertyNonzeroInt.java +++ b/src/main/java/brentmaas/buildguide/property/PropertyNonzeroInt.java @@ -18,12 +18,14 @@ public PropertyNonzeroInt(int x, int y, int value, TextComponent name, Runnable --this.value; if(this.value == 0) --this.value; valueWidget.setText("" + this.value); + valueWidget.setTextColor(0xFFFFFF); if(onUpdate != null) onUpdate.run(); })); buttonList.add(new Button(x + 190, y, 20, 20, new StringTextComponent("+"), button -> { ++this.value; if(this.value == 0) ++this.value; valueWidget.setText("" + this.value); + valueWidget.setTextColor(0xFFFFFF); if(onUpdate != null) onUpdate.run(); })); buttonList.add(new Button(x + 160, y, 30, 20, new TranslationTextComponent("screen.buildguide.set"), button -> { @@ -50,6 +52,7 @@ public void render(MatrixStack matrixStack, int mouseX, int mouseY, float partia public void setValue(Integer value) { super.setValue(value); valueWidget.setText("" + value); + valueWidget.setTextColor(0xFFFFFF); } public void addTextFields(FontRenderer fr) {