mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Added 25px horizontal insets to FButton.
Changed "Surrender" to "Quit" in QuestWinLoseHandler to prevent overflow.
This commit is contained in:
@@ -6,6 +6,7 @@ import java.awt.Font;
|
||||
import java.awt.Graphics;
|
||||
import java.awt.Graphics2D;
|
||||
import java.awt.Image;
|
||||
import java.awt.Insets;
|
||||
import java.awt.RenderingHints;
|
||||
import javax.swing.JButton;
|
||||
import forge.AllZone;
|
||||
@@ -31,6 +32,7 @@ public class FButton extends JButton {
|
||||
this.setForeground(skin.txt1a);
|
||||
this.setBackground(Color.red);
|
||||
this.setContentAreaFilled(false);
|
||||
this.setMargin(new Insets(0,25,0,25));
|
||||
this.setFont(skin.font1.deriveFont(Font.BOLD,15));
|
||||
this.imgL = skin.btnLup.getImage();
|
||||
this.imgM = skin.btnMup.getImage();
|
||||
|
||||
@@ -110,7 +110,7 @@ public class QuestWinLoseHandler extends WinLoseModeHandler {
|
||||
model.qData.getCards().resetNewList();
|
||||
|
||||
if(!model.qMatchState.isMatchOver()) {
|
||||
view.btnQuit.setText("Surrender (15 Credits)");
|
||||
view.btnQuit.setText("Quit (15 Credits)");
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user