Skip to content

Commit

Permalink
Fixed loading HUD positions from file
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaosdave34 committed Mar 12, 2024
1 parent ba712a2 commit 804ecae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/io/github/chaosdave34/gui/ComponentsGui.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class ComponentsGui extends WindowScreen {

public State<String> healtTextState = new BasicState<>("0");

public UIComponent healtTextBlock = new MoveableUIBlock("HEALTH_TEXT_BLOCK")
public UIComponent healthTextBlock = new MoveableUIBlock("HEALTH_TEXT_BLOCK")
.setWidth(new PixelConstraint(50))
.setHeight(new PixelConstraint(10))
.setX(new CenterConstraint())
Expand All @@ -45,7 +45,7 @@ public class ComponentsGui extends WindowScreen {
.setColor(ColorCode.RED.getColorObject())
.setX(new CenterConstraint())
.setY(new CenterConstraint())
.setChildOf(healtTextBlock);
.setChildOf(healthTextBlock);

public State<String> effectiveHealtTextState = new BasicState<>("0");

Expand Down Expand Up @@ -174,9 +174,9 @@ public class ComponentsGui extends WindowScreen {


UIComponent[] components = new UIComponent[]{
healthText,
healthTextBlock,
effectiveHealthText,
manaText,
manaTextBlock,
overflowManaText,
defenseText,
defensePercentage,
Expand Down

0 comments on commit 804ecae

Please sign in to comment.