diff options
| author | ilotterytea <iltsu@alright.party> | 2024-11-04 00:45:53 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-11-04 00:45:53 +0500 |
| commit | 1f3f89a83a2fbd87065d5027bf3fd4dd11ac45e2 (patch) | |
| tree | ebcb9dbd6273a9541012f11951a861ca9df9a312 | |
| parent | 9bf5ba5eb98fa83efada8555d05f9add74a437a0 (diff) | |
upd: show the scrollbar
| -rw-r--r-- | assets/sprites/gui/ui.skin | 6 | ||||
| -rw-r--r-- | core/src/kz/ilotterytea/maxon/screens/game/shop/ShopUI.java | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/assets/sprites/gui/ui.skin b/assets/sprites/gui/ui.skin index 1e7ff60..3a6af61 100644 --- a/assets/sprites/gui/ui.skin +++ b/assets/sprites/gui/ui.skin @@ -233,5 +233,11 @@ knob: button_hover, knobBefore: button_pressed } + }, + com.badlogic.gdx.scenes.scene2d.ui.ScrollPane$ScrollPaneStyle: { + default: { + vScroll: bg, + vScrollKnob: button_hover + } } }
\ No newline at end of file diff --git a/core/src/kz/ilotterytea/maxon/screens/game/shop/ShopUI.java b/core/src/kz/ilotterytea/maxon/screens/game/shop/ShopUI.java index 1213794..7287cad 100644 --- a/core/src/kz/ilotterytea/maxon/screens/game/shop/ShopUI.java +++ b/core/src/kz/ilotterytea/maxon/screens/game/shop/ShopUI.java @@ -305,7 +305,8 @@ public class ShopUI { table.add(widget).growX().padBottom(5f).row(); } - ScrollPane scrollPane = new ScrollPane(table); + ScrollPane scrollPane = new ScrollPane(table, this.skin); + scrollPane.setFadeScrollBars(false); scrollPane.setScrollingDisabled(true, false); shopListTable = new Table(this.skin); |
