Minor fixes

Quest dialog scroller will reset to quest status text after finished
Reduced left padding on dialog scoller to 4
This commit is contained in:
Collin Smith 2019-03-30 22:48:00 -07:00
parent 09835a2071
commit 7abd18d62e
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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();
}