From 9b874036b87e72a6aad6ebece5df83fb39e8d554 Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Fri, 21 Aug 2020 14:59:47 -0700 Subject: [PATCH] Made clicking a button in quickpanel assign it to the correct action id --- core/src/com/riiablo/screen/panel/SpellsQuickPanel.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/com/riiablo/screen/panel/SpellsQuickPanel.java b/core/src/com/riiablo/screen/panel/SpellsQuickPanel.java index 40f9a867..ffd9cad4 100644 --- a/core/src/com/riiablo/screen/panel/SpellsQuickPanel.java +++ b/core/src/com/riiablo/screen/panel/SpellsQuickPanel.java @@ -167,6 +167,7 @@ public class SpellsQuickPanel extends Table implements Disposable, CharData.Skil @Override public void clicked(InputEvent event, float x, float y) { observer.copy(button); + Riiablo.charData.setAction(buttonId, button.getSkill()); SpellsQuickPanel.this.setVisible(false); } }); @@ -206,6 +207,7 @@ public class SpellsQuickPanel extends Table implements Disposable, CharData.Skil @Override public void clicked(InputEvent event, float x, float y) { observer.copy(button); + Riiablo.charData.setAction(buttonId, button.getSkill()); SpellsQuickPanel.this.setVisible(false); } });