mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-07-09 07:18:03 +07:00
Tapping button to close quick spells panel will not longer cast spell
This commit is contained in:
@ -91,7 +91,11 @@ public class MobileControls extends WidgetGroup implements Disposable {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void tap(InputEvent event, float x, float y, int count, int button) {
|
public void tap(InputEvent event, float x, float y, int count, int button) {
|
||||||
gameScreen.spellsQuickPanelR.setVisible(false);
|
if (gameScreen.spellsQuickPanelR.isVisible()) {
|
||||||
|
gameScreen.spellsQuickPanelR.setVisible(false);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
HotkeyButton actor = (HotkeyButton) event.getListenerActor();
|
HotkeyButton actor = (HotkeyButton) event.getListenerActor();
|
||||||
gameScreen.player.cast(actor.getSkill());
|
gameScreen.player.cast(actor.getSkill());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user