mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Merged changes from trunk to GuiRefactoring: 27198-27235 (mobile and android projects)
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
<packaging.type>jar</packaging.type>
|
<packaging.type>jar</packaging.type>
|
||||||
<build.min.memory>-Xms128m</build.min.memory>
|
<build.min.memory>-Xms128m</build.min.memory>
|
||||||
<build.max.memory>-Xmx2048m</build.max.memory>
|
<build.max.memory>-Xmx2048m</build.max.memory>
|
||||||
<alpha-version>1.5.26.003</alpha-version>
|
<alpha-version>1.5.26.004</alpha-version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ import forge.util.FileUtil;
|
|||||||
import forge.util.Utils;
|
import forge.util.Utils;
|
||||||
|
|
||||||
public class Forge implements ApplicationListener {
|
public class Forge implements ApplicationListener {
|
||||||
public static final String CURRENT_VERSION = "1.5.26.003";
|
public static final String CURRENT_VERSION = "1.5.26.004";
|
||||||
|
|
||||||
private static final ApplicationListener app = new Forge();
|
private static final ApplicationListener app = new Forge();
|
||||||
private static Clipboard clipboard;
|
private static Clipboard clipboard;
|
||||||
|
|||||||
@@ -255,8 +255,7 @@ public class CardImageRenderer {
|
|||||||
g.drawImage(image, x + (w - iconSize) / 2, y + (h - iconSize) / 2, iconSize, iconSize);
|
g.drawImage(image, x + (w - iconSize) / 2, y + (h - iconSize) / 2, iconSize, iconSize);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (card.getRules() == null) { return; } //this can happen with certain tokens
|
String text = card.getOracleText();
|
||||||
String text = card.getRules().getOracleText();
|
|
||||||
if (StringUtils.isEmpty(text)) { return; }
|
if (StringUtils.isEmpty(text)) { return; }
|
||||||
|
|
||||||
text = text.replace("\\n", "\n"); //replace new line placeholders with actual new line characters
|
text = text.replace("\\n", "\n"); //replace new line placeholders with actual new line characters
|
||||||
|
|||||||
@@ -216,10 +216,7 @@ public class FControl {
|
|||||||
Player p = getCurrentPlayer();
|
Player p = getCurrentPlayer();
|
||||||
|
|
||||||
if (p != null) {
|
if (p != null) {
|
||||||
p.getController().autoPassUntil(PhaseType.CLEANUP);
|
inputProxy.passPriority(p, PhaseType.CLEANUP);
|
||||||
if (!inputProxy.passPriority()) {
|
|
||||||
p.getController().autoPassCancel();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user