mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
@@ -285,18 +285,21 @@ public class FDeckEditor extends TabPageScreen<FDeckEditor> {
|
||||
private final FLabel btnMoreOptions = deckHeader.add(new FLabel.Builder().text("...").font(FSkinFont.get(20)).align(Align.center).pressedColor(Header.getBtnPressedColor()).build());
|
||||
|
||||
public FDeckEditor(EditorType editorType0, DeckProxy editDeck, boolean showMainDeck) {
|
||||
this(editorType0, editDeck.getName(), editDeck.getPath(), null, showMainDeck,null);
|
||||
this(editorType0, editDeck.getName(), editDeck.getPath(), null, showMainDeck, null);
|
||||
}
|
||||
public FDeckEditor(EditorType editorType0, String editDeckName, boolean showMainDeck,FEventHandler backButton) {
|
||||
this(editorType0, editDeckName, "", null, showMainDeck,backButton);
|
||||
public FDeckEditor(EditorType editorType0, DeckProxy editDeck, boolean showMainDeck, FEventHandler backButton) {
|
||||
this(editorType0, editDeck.getName(), editDeck.getPath(), null, showMainDeck, backButton);
|
||||
}
|
||||
public FDeckEditor(EditorType editorType0, String editDeckName, boolean showMainDeck, FEventHandler backButton) {
|
||||
this(editorType0, editDeckName, "", null, showMainDeck, backButton);
|
||||
}
|
||||
public FDeckEditor(EditorType editorType0, String editDeckName, boolean showMainDeck) {
|
||||
this(editorType0, editDeckName, "", null, showMainDeck,null);
|
||||
this(editorType0, editDeckName, "", null, showMainDeck, null);
|
||||
}
|
||||
public FDeckEditor(EditorType editorType0, Deck newDeck, boolean showMainDeck) {
|
||||
this(editorType0, "", "", newDeck, showMainDeck,null);
|
||||
this(editorType0, "", "", newDeck, showMainDeck, null);
|
||||
}
|
||||
private FDeckEditor(EditorType editorType0, String editDeckName, String editDeckPath, Deck newDeck, boolean showMainDeck,FEventHandler backButton) {
|
||||
private FDeckEditor(EditorType editorType0, String editDeckName, String editDeckPath, Deck newDeck, boolean showMainDeck, FEventHandler backButton) {
|
||||
super(backButton, getPages(editorType0));
|
||||
|
||||
editorType = editorType0;
|
||||
|
||||
@@ -48,8 +48,7 @@ public class NewSealedScreen extends LaunchScreen {
|
||||
|
||||
FThreads.invokeInEdtLater(() -> {
|
||||
DeckPreferences.setSealedDeck(sealed.getName());
|
||||
Forge.openScreen(new FDeckEditor(EditorType.Sealed, sealed.getName(), false));
|
||||
Forge.setBackScreen(new LoadSealedScreen(), false); //ensure pressing back goes to load sealed screen
|
||||
Forge.openScreen(new FDeckEditor(EditorType.Sealed, sealed.getName(), false, e -> Forge.openScreen(new LoadSealedScreen(), false)));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user