forked from External/mage
[UI] Phases new Look and Feel
This commit is contained in:
parent
5c58edced6
commit
0d20e954dc
16 changed files with 113 additions and 21 deletions
|
|
@ -42,6 +42,12 @@ public class HoverButton extends JPanel implements MouseListener {
|
|||
final static Font textSetFontBold = new Font("Arial", Font.BOLD, 14);
|
||||
private boolean useMiniFont = false;
|
||||
|
||||
public HoverButton(String text, Image image, Rectangle size) {
|
||||
this(text, image, image, null, image, size);
|
||||
if (image == null)
|
||||
throw new IllegalArgumentException("Image can't be null");
|
||||
}
|
||||
|
||||
public HoverButton(String text, Image image, Image hover, Image disabled, Rectangle size) {
|
||||
this(text, image, hover, null, disabled, size);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue