Skip to content

Commit ab8e327

Browse files
committed
Update GuiPokemobBase.java
Makes it more obvious that this text field is ediable, this should address #195
1 parent 5230878 commit ab8e327

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/java/pokecube/core/client/gui/pokemob/GuiPokemobBase.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ public GuiPokemobBase(final ContainerPokemob container, final PlayerInventory in
8888
{
8989
super(container, inv, container.pokemob.getDisplayName());
9090
this.name.setText(container.pokemob.getDisplayName().getUnformattedComponentText().trim());
91-
this.name.setEnableBackgroundDrawing(false);
9291
this.name.enabledColor = 4210752;
9392
}
9493

@@ -140,11 +139,9 @@ public void init()
140139
super.init();
141140
final int xOffset = 80;
142141
final int yOffset = 77;
143-
this.name = new TextFieldWidget(this.font, this.width / 2 - xOffset, this.height / 2 - yOffset, 60, 10, "");
144-
this.name.setEnableBackgroundDrawing(false);
142+
this.name = new TextFieldWidget(this.font, this.width / 2 - xOffset, this.height / 2 - yOffset, 69, 10, "");
145143
if (this.container.pokemob != null) this.name.setText(this.container.pokemob.getDisplayName()
146144
.getUnformattedComponentText().trim());
147-
this.name.setEnableBackgroundDrawing(false);
148145
this.name.setTextColor(0xFFFFFFFF);
149146
this.addButton(this.name);
150147
}

0 commit comments

Comments
 (0)