mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
[cl.viewer] using common set icons on tabs.
This commit is contained in:
parent
185913fde3
commit
a453d3a6ac
2 changed files with 2 additions and 2 deletions
|
|
@ -44,7 +44,7 @@ public class ManaSymbols {
|
||||||
}
|
}
|
||||||
for (String set : CardsStorage.getSetCodes()) {
|
for (String set : CardsStorage.getSetCodes()) {
|
||||||
String _set = set.equals("CON") ? "CFX" : set;
|
String _set = set.equals("CON") ? "CFX" : set;
|
||||||
File file = new File(Constants.RESOURCE_PATH_SET + _set + ".jpg");
|
File file = new File(Constants.RESOURCE_PATH_SET + _set + "-C.jpg");
|
||||||
try {
|
try {
|
||||||
Image image = UI.getImageIcon(file.getAbsolutePath()).getImage();
|
Image image = UI.getImageIcon(file.getAbsolutePath()).getImage();
|
||||||
int width = image.getWidth(null);
|
int width = image.getWidth(null);
|
||||||
|
|
|
||||||
|
|
@ -154,7 +154,7 @@ public class MageBook extends JComponent {
|
||||||
if (setImage != null) {
|
if (setImage != null) {
|
||||||
tab.setOverlayImage(setImage);
|
tab.setOverlayImage(setImage);
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Couldn't find: " + "/plugins/images/sets/" + set + ".jpg");
|
System.out.println("Couldn't find: " + "/plugins/images/sets/" + set + "-C.jpg");
|
||||||
}
|
}
|
||||||
tab.setBounds(0, y, 39, 120);
|
tab.setBounds(0, y, 39, 120);
|
||||||
final String _set = set;
|
final String _set = set;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue