(InventoryItem ii)
| 158 | } |
| 159 | |
| 160 | public Texture getImage(InventoryItem ii) { |
| 161 | boolean useDefault = ii instanceof DeckProxy; |
| 162 | String imageKey = ii.getImageKey(false); |
| 163 | if (imageKey != null) { |
| 164 | if (imageKey.startsWith(ImageKeys.CARD_PREFIX) || imageKey.startsWith(ImageKeys.TOKEN_PREFIX)) |
| 165 | return getImage(ii.getImageKey(false), useDefault, false); |
| 166 | } |
| 167 | return getImage(ii.getImageKey(false), true, true); |
| 168 | } |
| 169 | |
| 170 | /** |
| 171 | * retrieve an icon from the cache. returns the current skin's ICO_UNKNOWN if the icon image is not found |
no test coverage detected