Skip to content

Commit

Permalink
Fixed widths
Browse files Browse the repository at this point in the history
  • Loading branch information
desertkun committed Apr 2, 2023
1 parent 4cf25b8 commit 45db309
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,7 @@ private void renderTrophies()
title.setAlignment(Align.center);
title.setWrap(true);

tooltip.add(new BorderActor(title, "form-gray")).expandX().fillX().row();
tooltip.add(new BorderActor(title, 500, "form-gray")).expandX().fillX().row();
tooltip.add(tooltipContent).expand().fill().row();

tooltip.setSize(544, 240);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ protected void renderItem(Table content, OwnableContent item)
description.setAlignment(Align.center);
description.setWrap(true);

content.add(description).expandX().fillX().row();
content.add(description).width(500).expandX().fillX().row();
}

protected boolean forceBottomLine()
Expand All @@ -120,7 +120,7 @@ public Actor get()
title.setAlignment(Align.center);
title.setWrap(true);

tooltip.add(new BorderActor(title, "form-gray")).expandX().fillX().row();
tooltip.add(new BorderActor(title, 500, "form-gray")).expandX().fillX().row();
tooltip.add(content).expand().fill().row();

boolean addBottomLine = true;
Expand Down Expand Up @@ -148,7 +148,7 @@ public Actor get()
BrainOutClient.Skin, "title-small");
lockedText.setAlignment(Align.center);
lockedText.setWrap(true);
content.add(lockedText).expandX().fillX().row();
content.add(lockedText).width(500).expandX().fillX().row();

addBottomLine = false;
}
Expand Down
4 changes: 2 additions & 2 deletions client/src/com/desertkun/brainout/menu/ui/GearsButton.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@ public void act(float delta)
BrainOutClient.Skin, "title-gray");
conditionTitle.setAlignment(Align.center);
conditionTitle.setWrap(true);
content.add(conditionTitle).expandX().fillX().row();
content.add(conditionTitle).width(400).expandX().fillX().row();

Label killsText = new Label(L.get(
conditions.get(condition)),
BrainOutClient.Skin, "title-small");

killsText.setAlignment(Align.center);
killsText.setWrap(true);
content.add(killsText).expandX().fillX().row();
content.add(killsText).width(400).expandX().fillX().row();

Group progress = new Group();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ protected void renderItem(Table content, OwnableContent item)
description.setAlignment(Align.center);
description.setWrap(true);

content.add(description).expandX().fillX().row();
content.add(description).width(500).expandX().fillX().row();
}

protected boolean forceBottomLine()
Expand Down

0 comments on commit 45db309

Please sign in to comment.