blob: f77b94b4407fa405337ae702cd9a4b0099ad9833 [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)
val maxDepth = Config.screenDepthsByTier(tier)
override def registerIcons(iconRegister: IconRegister) {
super.registerIcons(iconRegister)
icon = iconRegister.registerIcon(Config.resourceDomain + ":gpu" + tier)
}
}