card graphic, minor touch-up to existing cards
BIN
assets/opencomputers/textures/items/card.png
Normal file
After Width: | Height: | Size: 300 B |
Before Width: | Height: | Size: 250 B After Width: | Height: | Size: 268 B |
Before Width: | Height: | Size: 250 B After Width: | Height: | Size: 268 B |
Before Width: | Height: | Size: 250 B After Width: | Height: | Size: 268 B |
Before Width: | Height: | Size: 222 B After Width: | Height: | Size: 238 B |
Before Width: | Height: | Size: 220 B After Width: | Height: | Size: 237 B |
Before Width: | Height: | Size: 245 B After Width: | Height: | Size: 260 B |
@ -1,10 +1,15 @@
|
|||||||
package li.cil.oc.common.item
|
package li.cil.oc.common.item
|
||||||
|
|
||||||
import net.minecraft.item.ItemStack
|
import li.cil.oc.Settings
|
||||||
|
import net.minecraft.client.renderer.texture.IconRegister
|
||||||
|
|
||||||
class Card(val parent: Delegator, val tier: Int) extends Delegate {
|
class Card(val parent: Delegator, val tier: Int) extends Delegate {
|
||||||
val baseName = "Card"
|
val baseName = "Card"
|
||||||
val unlocalizedName = baseName + Array("Basic", "Advanced", "Professional").apply(tier)
|
val unlocalizedName = baseName + Array("Basic", "Advanced", "Professional").apply(tier)
|
||||||
|
|
||||||
|
override def registerIcons(iconRegister: IconRegister) {
|
||||||
|
super.registerIcons(iconRegister)
|
||||||
|
|
||||||
|
icon = iconRegister.registerIcon(Settings.resourceDomain + ":card")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|