From 1f3f89a83a2fbd87065d5027bf3fd4dd11ac45e2 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Mon, 4 Nov 2024 00:45:53 +0500 Subject: upd: show the scrollbar --- assets/sprites/gui/ui.skin | 6 ++++++ core/src/kz/ilotterytea/maxon/screens/game/shop/ShopUI.java | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3