mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
Issue 187 - You win - window covers the booster select window
- changed setAlwaysOnTop() to toFront() Issue 188 - Window title text truncated in *Choose a format of cards for the pr...* window - Shortened window title to fit
This commit is contained in:
@@ -639,7 +639,8 @@ public class GameAction {
|
||||
frame.setEnabled(false);
|
||||
//frame.dispose();
|
||||
Gui_WinLose gwl = new Gui_WinLose( AllZone.getMatchState(), AllZone.getQuestData(), AllZone.getQuestAssignment() );
|
||||
gwl.setAlwaysOnTop(true);
|
||||
//gwl.setAlwaysOnTop(true);
|
||||
gwl.toFront();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -390,7 +390,7 @@ public class Gui_WinLose extends JFrame implements NewConstants {
|
||||
protected void giveBooster()
|
||||
{
|
||||
String[] boosterTypes = {"Legacy", "Extended", "Standard"};
|
||||
String boosterType = GuiUtils.getChoice("Choose a format of cards for the prize booster", boosterTypes);
|
||||
String boosterType = GuiUtils.getChoice("Choose prize booster format", boosterTypes);
|
||||
List<String> setsToGive = null;
|
||||
if (boosterTypes[2].equals(boosterType)) { // T2
|
||||
setsToGive = new ArrayList<String>();
|
||||
@@ -405,6 +405,7 @@ public class Gui_WinLose extends JFrame implements NewConstants {
|
||||
ImageIcon icon = getIcon("BookIcon.png");
|
||||
CardListViewer c = new CardListViewer("Booster", "You have won the following new cards", cardsWon, icon);
|
||||
c.show();
|
||||
|
||||
}
|
||||
|
||||
protected void giveQuestRewards(final boolean wonMatch) {
|
||||
|
||||
@@ -98,6 +98,7 @@ public class CardListViewer {
|
||||
dialog.setSize(720,360);
|
||||
dialog.addWindowFocusListener(new CardListFocuser());
|
||||
dialog.setVisible(true);
|
||||
dialog.toFront();
|
||||
|
||||
dialog.dispose();
|
||||
called = true;
|
||||
|
||||
Reference in New Issue
Block a user