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
|
private boolean showCardZoom() {
|
||||||
public boolean longPress(float x, float y) {
|
|
||||||
int index = -1;
|
int index = -1;
|
||||||
List<PaperCard> cards = new ArrayList<PaperCard>();
|
List<PaperCard> cards = new ArrayList<PaperCard>();
|
||||||
for (int i = 0; i < animation.currentIndex; i++) {
|
for (int i = 0; i < animation.currentIndex; i++) {
|
||||||
@@ -303,6 +302,16 @@ public class ConquestRewardDialog extends FScrollPane {
|
|||||||
return true;
|
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
|
@Override
|
||||||
public void draw(Graphics g) {
|
public void draw(Graphics g) {
|
||||||
float w = getWidth();
|
float w = getWidth();
|
||||||
|
|||||||
Reference in New Issue
Block a user