blob: 38e5938fe8a98b7b52b8ccc4b1e794b8559941fd [file] [log] [blame] [raw]
package li.cil.oc.common.item
import li.cil.oc.Config
import net.minecraft.client.renderer.texture.IconRegister
class GraphicsCard(val parent: Delegator, val tier: Int) extends Delegate {
val unlocalizedName = "GraphicsCard" + Array("Basic", "Advanced", "Professional").apply(tier)
val maxResolution = Config.screenResolutionsByTier(tier)
override def registerIcons(iconRegister: IconRegister) {
super.registerIcons(iconRegister)
icon = iconRegister.registerIcon(Config.resourceDomain + ":gpu" + tier)
}
}