v1.3.2: adjusted quickslot button middle click behaviour
This commit is contained in:
+17
-4
@@ -109,6 +109,11 @@ public class QuickSlotButton extends Button {
|
|||||||
QuickSlotButton.this.onLongClick();
|
QuickSlotButton.this.onLongClick();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onMiddleClick() {
|
||||||
|
onClick();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public GameAction keyAction() {
|
public GameAction keyAction() {
|
||||||
return QuickSlotButton.this.keyAction();
|
return QuickSlotButton.this.keyAction();
|
||||||
@@ -200,12 +205,20 @@ public class QuickSlotButton extends Button {
|
|||||||
GameScene.selectItem(itemSelector);
|
GameScene.selectItem(itemSelector);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onRightClick() {
|
||||||
|
onClick();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onMiddleClick() {
|
||||||
|
onClick();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean onLongClick() {
|
protected boolean onLongClick() {
|
||||||
if (Dungeon.hero.ready && !GameScene.cancel()) {
|
onClick();
|
||||||
GameScene.selectItem(itemSelector);
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user