mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
Allow showing card zoom with single tap on reward dialog
This commit is contained in:
@@ -286,8 +286,7 @@ public class ConquestRewardDialog extends FScrollPane {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean longPress(float x, float y) {
|
||||
private boolean showCardZoom() {
|
||||
int index = -1;
|
||||
List<PaperCard> cards = new ArrayList<PaperCard>();
|
||||
for (int i = 0; i < animation.currentIndex; i++) {
|
||||
@@ -303,6 +302,16 @@ public class ConquestRewardDialog extends FScrollPane {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean tap(float x, float y, int count) {
|
||||
return showCardZoom();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean longPress(float x, float y) {
|
||||
return showCardZoom();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void draw(Graphics g) {
|
||||
float w = getWidth();
|
||||
|
||||
Reference in New Issue
Block a user