mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
update ImageView
This commit is contained in:
@@ -1127,13 +1127,18 @@ public class ImageView<T extends InventoryItem> extends ItemView<T> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
//draw missing box display if not avail or loading...
|
if (itemManager.getConfig() == ItemManagerConfig.STRING_ONLY) {
|
||||||
g.drawImage(FSkin.getDeckbox().get(0), FSkin.getDeckbox().get(0), x, y, w, h, Color.GREEN, selected);
|
//draw generic box for stringOnly config
|
||||||
//g.drawImage(Forge.getAssets().getDefaultImage(), x + (w - w * scale) / 2, y + (h - h * scale) / 1.5f, w * scale, h * scale);
|
g.drawImage(FSkin.getDeckbox().get(2), FSkin.getDeckbox().get(2), x, y - (h * 0.25f), w, h, Color.GREEN, selected);
|
||||||
g.fillRect(Color.BLACK, x + (w - w * scale) / 2, y + (h - h * scale) / 1.5f, w * scale, h * scale);
|
} else {
|
||||||
//draw plastic effect overlay.
|
//draw missing box display if not avail or loading...
|
||||||
g.drawImage(Forge.getAssets().getTexture(getDefaultSkinFile("cover.png")), x + (w - w * scale) / 2, y + (h - h * scale) / 1.5f, w * scale, h * scale);
|
g.drawImage(FSkin.getDeckbox().get(0), FSkin.getDeckbox().get(0), x, y, w, h, Color.GREEN, selected);
|
||||||
//g.drawImage(FSkin.getDeckbox().get(2), FSkin.getDeckbox().get(2), x, y - (h * 0.25f), w, h, Color.GREEN, selected);
|
//temporary fill image
|
||||||
|
g.fillRect(Color.BLACK, x + (w - w * scale) / 2, y + (h - h * scale) / 1.5f, w * scale, h * scale);
|
||||||
|
//draw plastic effect overlay.
|
||||||
|
g.drawImage(Forge.getAssets().getTexture(getDefaultSkinFile("cover.png")), x + (w - w * scale) / 2, y + (h - h * scale) / 1.5f, w * scale, h * scale);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (deckColor != null) {
|
if (deckColor != null) {
|
||||||
//deck color identity
|
//deck color identity
|
||||||
|
|||||||
Reference in New Issue
Block a user