mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
[Mobile] Fix planar conquest deck edit
This commit is contained in:
@@ -37,6 +37,7 @@ import java.nio.file.Paths;
|
||||
isPortraitMode = true;
|
||||
totalDeviceRAM = 0;
|
||||
GuiBase.setDeviceInfo("", "", 0, 0);
|
||||
GuiBase.setIsAdventureMode(true);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ import forge.deck.io.DeckPreferences;
|
||||
import forge.gamemodes.limited.BoosterDraft;
|
||||
import forge.gamemodes.planarconquest.ConquestUtil;
|
||||
import forge.gui.FThreads;
|
||||
import forge.gui.GuiBase;
|
||||
import forge.gui.card.CardPreferences;
|
||||
import forge.item.PaperCard;
|
||||
import forge.itemmanager.CardManager;
|
||||
@@ -768,7 +769,10 @@ public class FDeckEditor extends TabPageScreen<FDeckEditor> {
|
||||
}
|
||||
|
||||
protected void initialize() {
|
||||
if (GuiBase.isAdventureMode())
|
||||
cardManager.setup(config);
|
||||
else //fix planar conquest deck editor and maybe others...
|
||||
cardManager.setup(config, parentScreen.getColOverrides(config));
|
||||
}
|
||||
|
||||
protected boolean canAddCards() {
|
||||
|
||||
@@ -7,6 +7,7 @@ public class GuiBase {
|
||||
private static boolean propertyConfig = true;
|
||||
private static boolean networkplay = false;
|
||||
private static boolean isAndroidport = false;
|
||||
private static boolean isAdventureMode = false;
|
||||
private static boolean interrupted = false;
|
||||
private static String deviceName = "";
|
||||
private static String androidRelease = "";
|
||||
@@ -20,6 +21,9 @@ public class GuiBase {
|
||||
public static void setIsAndroid(boolean value) { isAndroidport = value; }
|
||||
public static boolean isAndroid() { return isAndroidport; }
|
||||
|
||||
public static void setIsAdventureMode(boolean value) { isAdventureMode = value; }
|
||||
public static boolean isAdventureMode() { return isAdventureMode; }
|
||||
|
||||
public static void setUsingAppDirectory(boolean value) { usingAppDirectory = value; }
|
||||
public static boolean isUsingAppDirectory() { return usingAppDirectory; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user