Commit 192dc386 authored by elliot rieflin's avatar elliot rieflin

move winston draft menu option back to its original place upon discovery

parent 1681dc50
......@@ -58,6 +58,7 @@ import forge.screens.home.quest.VSubmenuQuestPrefs;
import forge.screens.home.sanctioned.VSubmenuConstructed;
import forge.screens.home.sanctioned.VSubmenuDraft;
import forge.screens.home.sanctioned.VSubmenuSealed;
import forge.screens.home.sanctioned.VSubmenuWinston;
import forge.screens.home.settings.VSubmenuAchievements;
import forge.screens.home.settings.VSubmenuAvatars;
import forge.screens.home.settings.VSubmenuDownloaders;
......@@ -118,7 +119,7 @@ public enum VHomeUI implements IVTopLevelUI {
allSubmenus.add(VSubmenuConstructed.SINGLETON_INSTANCE);
allSubmenus.add(VSubmenuDraft.SINGLETON_INSTANCE);
allSubmenus.add(VSubmenuSealed.SINGLETON_INSTANCE);
//allSubmenus.add(VSubmenuWinston.SINGLETON_INSTANCE);
allSubmenus.add(VSubmenuWinston.SINGLETON_INSTANCE);
allSubmenus.add(VSubmenuOnlineLobby.SINGLETON_INSTANCE);
......
......@@ -75,12 +75,7 @@ public enum CSubmenuDraft implements ICDoc {
setupDraft();
}
});
view.getBtnBuildWDeck().setCommand(new UiCommand() {
@Override
public void run() {
setupWinstonDraft();
}
});
view.getBtnStart().addActionListener(new ActionListener() {
@Override
public void actionPerformed(final ActionEvent e) {
......@@ -183,21 +178,6 @@ public enum CSubmenuDraft implements ICDoc {
}
});
}
/** */
private void setupWinstonDraft() {
// Determine what kind of booster draft to run
final LimitedPoolType poolType = GuiChoose.oneOrNone("Choose Draft Format", LimitedPoolType.values());
if (poolType == null) { return; }
final BoosterDraft draft = WinstonDraft.createDraft(poolType);
if (draft == null) { return; }
final CEditorWinstonProcess draftController = new CEditorWinstonProcess(CDeckEditorUI.SINGLETON_INSTANCE.getCDetailPicture());
draftController.showGui(draft);
Singletons.getControl().setCurrentScreen(FScreen.DRAFTING_PROCESS);
CDeckEditorUI.SINGLETON_INSTANCE.setEditorController(draftController);
}
/** */
private void setupDraft() {
......
......@@ -63,8 +63,7 @@ public enum VSubmenuDraft implements IVSubmenu<CSubmenuDraft> {
.fontSize(12).build();
private final FLabel btnBuildDeck = new FLabel.ButtonBuilder().text("New Booster Draft Game").fontSize(16).build();
private final FLabel btnBuildWDeck= new FLabel.ButtonBuilder().text("New Winston Booster Draft Game").fontSize(16).build();
/**
/**
* Constructor.
*/
private VSubmenuDraft() {
......@@ -112,9 +111,7 @@ public enum VSubmenuDraft implements IVSubmenu<CSubmenuDraft> {
public FLabel getBtnBuildDeck() {
return this.btnBuildDeck;
}
public FLabel getBtnBuildWDeck() {
return this.btnBuildWDeck;
}
/** @return {@link javax.swing.JButton} */
public JButton getBtnStart() {
return this.btnStart;
......@@ -152,7 +149,6 @@ public enum VSubmenuDraft implements IVSubmenu<CSubmenuDraft> {
pnlDisplay.add(lblDir3, "gap 0 0 0 20px");
pnlDisplay.add(btnBuildDeck, "w 250px!, h 30px!, ax center, gap 0 10% 0 20px");
pnlDisplay.add(btnBuildWDeck);
pnlDisplay.add(new ItemManagerContainer(lstDecks), "w 80%!, gap 0 10% 0 0, pushy, growy");
pnlDisplay.add(pnlStart, "gap 0 10% 50px 50px, ax center");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment