mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
New method to retrieve displayed item.
Signed-off-by: leriomaggio <valeriomaggio@gmail.com>
This commit is contained in:
@@ -64,6 +64,8 @@ public final class CardPicturePanel extends JPanel implements ImageFetcher.Callb
|
|||||||
this.add(this.panel);
|
this.add(this.panel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Object getDisplayed() { return displayed; }
|
||||||
|
|
||||||
public void setItem(final InventoryItem item) {
|
public void setItem(final InventoryItem item) {
|
||||||
setImage(item, true);
|
setImage(item, true);
|
||||||
}
|
}
|
||||||
@@ -154,7 +156,5 @@ public final class CardPicturePanel extends JPanel implements ImageFetcher.Callb
|
|||||||
this.panel.setAlpha(0.5f);
|
this.panel.setAlpha(0.5f);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void showAsEnabled(){
|
public void showAsEnabled(){ this.panel.setAlpha(0.0f); }
|
||||||
this.panel.setAlpha(0.0f);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user