mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Merge branch 'master' into historicformats
# Conflicts: # forge-game/src/main/java/forge/game/GameFormat.java
This commit is contained in:
@@ -14,7 +14,6 @@ import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import forge.model.FModel;
|
||||
import forge.quest.data.QuestPreferences.QPref;
|
||||
|
||||
/**
|
||||
* Handles editor preferences saving and loading.
|
||||
|
||||
@@ -500,7 +500,6 @@ public abstract class ACEditorBase<TItem extends InventoryItem, TModel extends D
|
||||
* @param qty a negative quantity will prompt the user for a number
|
||||
*/
|
||||
private void addMakeFoil(final int qty) {
|
||||
final int shortcutModifiers = 0;
|
||||
String label = "Foil " + SItemManagerUtil.getItemDisplayString(getItemManager().getSelectedItems(), qty, false);
|
||||
|
||||
GuiUtils.addMenuItem(menu, label, null, new Runnable() {
|
||||
@@ -526,7 +525,7 @@ public abstract class ACEditorBase<TItem extends InventoryItem, TModel extends D
|
||||
cardManager.addItem(foiledCard, quantity);
|
||||
cardManager.setSelectedItem(foiledCard);
|
||||
}
|
||||
}, true, shortcutModifiers == 0);
|
||||
}, true, true);
|
||||
}
|
||||
|
||||
private void addItem(final String verb, final String dest, final boolean toAlternate, final int qty, final int shortcutModifiers) {
|
||||
|
||||
@@ -8,7 +8,6 @@ import javax.swing.SwingUtilities;
|
||||
|
||||
import com.google.common.collect.Iterables;
|
||||
|
||||
import forge.deck.CommanderDeckGenerator;
|
||||
import forge.deck.DeckProxy;
|
||||
import forge.deck.DeckType;
|
||||
import forge.deckchooser.DecksComboBoxEvent;
|
||||
|
||||
@@ -19,7 +19,6 @@ import javax.swing.SwingConstants;
|
||||
import javax.swing.event.ListSelectionEvent;
|
||||
import javax.swing.event.ListSelectionListener;
|
||||
|
||||
import forge.deckchooser.DecksComboBoxEvent;
|
||||
import net.miginfocom.swing.MigLayout;
|
||||
|
||||
import com.google.common.collect.ImmutableList;
|
||||
|
||||
@@ -7,7 +7,6 @@ import forge.gui.framework.DragCell;
|
||||
import forge.gui.framework.DragTab;
|
||||
import forge.gui.framework.EDocID;
|
||||
import forge.model.FModel;
|
||||
import forge.properties.ForgePreferences;
|
||||
import forge.screens.home.EMenuGroup;
|
||||
import forge.screens.home.IVSubmenu;
|
||||
import forge.screens.home.StartButton;
|
||||
|
||||
@@ -932,7 +932,7 @@ public final class CMatchUI
|
||||
if (delayedReveal != null) {
|
||||
reveal(delayedReveal.getMessagePrefix(), delayedReveal.getCards()); //TODO: Merge this into search dialog
|
||||
}
|
||||
return (List) order(title,"Selected", 0, optionList.size(), optionList, null, null, false);
|
||||
return (List<GameEntityView>) order(title,"Selected", 0, optionList.size(), optionList, null, null, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -287,6 +287,11 @@ public enum FView {
|
||||
updateWarningOverlay.add(updateWarningContentPanel, constraints);
|
||||
|
||||
btnRemindMeLater.setCommand(new UiCommand() {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
SOverlayUtils.hideOverlay();
|
||||
@@ -294,6 +299,11 @@ public enum FView {
|
||||
});
|
||||
|
||||
btnDoNotRemindMe.setCommand(new UiCommand() {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
if (FOptionPane.showConfirmDialog("Are you sure? You can re-enable this warning in Forge's general preferences.")) {
|
||||
@@ -305,6 +315,11 @@ public enum FView {
|
||||
});
|
||||
|
||||
btnDownloadLatestJava.setCommand(new UiCommand() {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
|
||||
@@ -28,7 +28,7 @@ import forge.error.ExceptionHandler;
|
||||
*/
|
||||
public final class Main {
|
||||
/**
|
||||
* Main entrypoint for Forge
|
||||
* Main entry point for Forge
|
||||
*/
|
||||
public static void main(final String[] args) {
|
||||
// HACK - temporary solution to "Comparison method violates it's general contract!" crash
|
||||
|
||||
Reference in New Issue
Block a user