From 7abd18d62e69f4048e0f7b095f92a021d62c9853 Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Sat, 30 Mar 2019 22:48:00 -0700 Subject: [PATCH] Minor fixes Quest dialog scroller will reset to quest status text after finished Reduced left padding on dialog scoller to 4 --- core/src/com/riiablo/panel/QuestsPanel.java | 2 +- core/src/com/riiablo/widget/DialogScroller.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/com/riiablo/panel/QuestsPanel.java b/core/src/com/riiablo/panel/QuestsPanel.java index b8040eed..f6adccb6 100644 --- a/core/src/com/riiablo/panel/QuestsPanel.java +++ b/core/src/com/riiablo/panel/QuestsPanel.java @@ -238,7 +238,7 @@ public class QuestsPanel extends WidgetGroup implements Disposable { questDialog = new DialogScroller(new DialogScroller.DialogCompletionListener() { @Override public void onCompleted(DialogScroller d) { - d.dispose(); + questDialog.setTextId(selected.quest.qsts[0]); } }); add(questDialog).grow().row(); diff --git a/core/src/com/riiablo/widget/DialogScroller.java b/core/src/com/riiablo/widget/DialogScroller.java index e5c816fa..4dc40040 100644 --- a/core/src/com/riiablo/widget/DialogScroller.java +++ b/core/src/com/riiablo/widget/DialogScroller.java @@ -54,7 +54,7 @@ public class DialogScroller extends Table implements Disposable { scrollPane.setFlingTime(0); scrollPane.setOverscroll(false, false); scrollPane.setClamp(false); - scrollPane.setScrollX(-5); // FIXME: actual preferred width of text isn't calculated anywhere, this is best guess + scrollPane.setScrollX(-4); // FIXME: actual preferred width of text isn't calculated anywhere, this is best guess add(scrollPane).pad(PADDING).grow(); pack(); }