forked from External/mage
Finished ability picker. +even dispatching. +fixed bug in horizontal scrool bar.
This commit is contained in:
parent
d25425e782
commit
cc5a76e62b
7 changed files with 179 additions and 72 deletions
|
|
@ -18,8 +18,8 @@ import javax.swing.plaf.metal.MetalScrollButton;
|
|||
*/
|
||||
public class MageScrollButton extends MetalScrollButton {
|
||||
|
||||
private static Icon buttonLeft;
|
||||
private static Icon buttonRight;
|
||||
private static ImageIcon buttonLeft;
|
||||
private static ImageIcon buttonRight;
|
||||
private static ImageIcon buttonUp;
|
||||
private static ImageIcon buttonDown;
|
||||
|
||||
|
|
@ -38,6 +38,8 @@ public class MageScrollButton extends MetalScrollButton {
|
|||
this.width = width;
|
||||
buttonUp.setImage(buttonUp.getImage().getScaledInstance(width, width, Image.SCALE_SMOOTH));
|
||||
buttonDown.setImage(buttonDown.getImage().getScaledInstance(width, width, Image.SCALE_SMOOTH));
|
||||
buttonLeft.setImage(buttonLeft.getImage().getScaledInstance(width, width, Image.SCALE_SMOOTH));
|
||||
buttonRight.setImage(buttonRight.getImage().getScaledInstance(width, width, Image.SCALE_SMOOTH));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue