From 45db3090ea935ef11a369d7a5e40d317fcc20f00 Mon Sep 17 00:00:00 2001 From: desertkun Date: Sun, 2 Apr 2023 10:35:11 -0600 Subject: [PATCH] Fixed widths --- .../desertkun/brainout/menu/impl/PlayerSelectionMenu.java | 2 +- .../com/desertkun/brainout/menu/ui/BadgeUnlockTooltip.java | 6 +++--- client/src/com/desertkun/brainout/menu/ui/GearsButton.java | 4 ++-- .../src/com/desertkun/brainout/menu/ui/UnlockTooltip.java | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/client/src/com/desertkun/brainout/menu/impl/PlayerSelectionMenu.java b/client/src/com/desertkun/brainout/menu/impl/PlayerSelectionMenu.java index 6c0ff628..221da92b 100644 --- a/client/src/com/desertkun/brainout/menu/impl/PlayerSelectionMenu.java +++ b/client/src/com/desertkun/brainout/menu/impl/PlayerSelectionMenu.java @@ -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); diff --git a/client/src/com/desertkun/brainout/menu/ui/BadgeUnlockTooltip.java b/client/src/com/desertkun/brainout/menu/ui/BadgeUnlockTooltip.java index ac354cd7..da4aecb2 100644 --- a/client/src/com/desertkun/brainout/menu/ui/BadgeUnlockTooltip.java +++ b/client/src/com/desertkun/brainout/menu/ui/BadgeUnlockTooltip.java @@ -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() @@ -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; @@ -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; } diff --git a/client/src/com/desertkun/brainout/menu/ui/GearsButton.java b/client/src/com/desertkun/brainout/menu/ui/GearsButton.java index 0fb544a5..49ddcd8c 100644 --- a/client/src/com/desertkun/brainout/menu/ui/GearsButton.java +++ b/client/src/com/desertkun/brainout/menu/ui/GearsButton.java @@ -114,7 +114,7 @@ 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)), @@ -122,7 +122,7 @@ public void act(float delta) 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(); diff --git a/client/src/com/desertkun/brainout/menu/ui/UnlockTooltip.java b/client/src/com/desertkun/brainout/menu/ui/UnlockTooltip.java index cd99bd78..013f3736 100644 --- a/client/src/com/desertkun/brainout/menu/ui/UnlockTooltip.java +++ b/client/src/com/desertkun/brainout/menu/ui/UnlockTooltip.java @@ -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()