Skip to content

Commit

Permalink
Update GuiPokemobBase.java
Browse files Browse the repository at this point in the history
Makes it more obvious that this text field is ediable, this should address #195
  • Loading branch information
Thutmose committed Feb 26, 2020
1 parent 5230878 commit ab8e327
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ public GuiPokemobBase(final ContainerPokemob container, final PlayerInventory in
{
super(container, inv, container.pokemob.getDisplayName());
this.name.setText(container.pokemob.getDisplayName().getUnformattedComponentText().trim());
this.name.setEnableBackgroundDrawing(false);
this.name.enabledColor = 4210752;
}

Expand Down Expand Up @@ -140,11 +139,9 @@ public void init()
super.init();
final int xOffset = 80;
final int yOffset = 77;
this.name = new TextFieldWidget(this.font, this.width / 2 - xOffset, this.height / 2 - yOffset, 60, 10, "");
this.name.setEnableBackgroundDrawing(false);
this.name = new TextFieldWidget(this.font, this.width / 2 - xOffset, this.height / 2 - yOffset, 69, 10, "");
if (this.container.pokemob != null) this.name.setText(this.container.pokemob.getDisplayName()
.getUnformattedComponentText().trim());
this.name.setEnableBackgroundDrawing(false);
this.name.setTextColor(0xFFFFFFFF);
this.addButton(this.name);
}
Expand Down

0 comments on commit ab8e327

Please sign in to comment.