mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-15 18:30:27 -04:00
hard drive graphics
This commit is contained in:
parent
0b9be15189
commit
0441f10a54
@ -3,8 +3,10 @@ oc.block.Keyboard.name=Tastatur
|
||||
oc.block.Screen.name=Bildschirm
|
||||
oc.container.computer=Computer
|
||||
oc.item.GraphicsCard.name=Grafikkarte
|
||||
oc.item.HardDiskDrive.name=Festplatte
|
||||
oc.item.Memory128k.name=RAM (128k)
|
||||
oc.item.Memory32k.name=RAM (32k)
|
||||
oc.item.Memory64k.name=RAM (64k)
|
||||
oc.item.HardDiskDrive2m.name=Festplatte (2MB)
|
||||
oc.item.HardDiskDrive4m.name=Festplatte (4MB)
|
||||
oc.item.HardDiskDrive8m.name=Festplatte (8MB)
|
||||
oc.item.Memory128k.name=RAM (128KB)
|
||||
oc.item.Memory32k.name=RAM (32KB)
|
||||
oc.item.Memory64k.name=RAM (64KB)
|
||||
oc.item.RedstoneCard.name=Redstonekarte
|
@ -3,8 +3,10 @@ oc.block.Keyboard.name=Keyboard
|
||||
oc.block.Screen.name=Screen
|
||||
oc.container.computer=Computer
|
||||
oc.item.GraphicsCard.name=Graphics Card
|
||||
oc.item.HardDiskDrive.name=Hard Disk Drive
|
||||
oc.item.Memory128k.name=RAM (128k)
|
||||
oc.item.Memory32k.name=RAM (32k)
|
||||
oc.item.Memory64k.name=RAM (64k)
|
||||
oc.item.HardDiskDrive2m.name=Hard Disk Drive (2MB)
|
||||
oc.item.HardDiskDrive4m.name=Hard Disk Drive (4MB)
|
||||
oc.item.HardDiskDrive8m.name=Hard Disk Drive (8MB)
|
||||
oc.item.Memory128k.name=RAM (128KB)
|
||||
oc.item.Memory32k.name=RAM (32KB)
|
||||
oc.item.Memory64k.name=RAM (64KB)
|
||||
oc.item.RedstoneCard.name=Redstone Card
|
BIN
assets/opencomputers/textures/items/hdd2.png
Normal file
BIN
assets/opencomputers/textures/items/hdd2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 265 B |
BIN
assets/opencomputers/textures/items/hdd4.png
Normal file
BIN
assets/opencomputers/textures/items/hdd4.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 265 B |
BIN
assets/opencomputers/textures/items/hdd8.png
Normal file
BIN
assets/opencomputers/textures/items/hdd8.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 265 B |
@ -12,7 +12,9 @@ object Items {
|
||||
var ram64k: item.Memory = null
|
||||
var ram128k: item.Memory = null
|
||||
|
||||
var hdd: item.Hdd = null
|
||||
var hdd2: item.Hdd = null
|
||||
var hdd4: item.Hdd = null
|
||||
var hdd8: item.Hdd = null
|
||||
|
||||
def init() {
|
||||
multi = new item.Delegator(Config.itemId)
|
||||
@ -24,6 +26,8 @@ object Items {
|
||||
ram64k = new item.Memory(multi, 64)
|
||||
ram128k = new item.Memory(multi, 128)
|
||||
|
||||
hdd = new item.Hdd(multi, 2 * 1024 * 1024)
|
||||
hdd2 = new item.Hdd(multi, 2)
|
||||
hdd4 = new item.Hdd(multi, 4)
|
||||
hdd8 = new item.Hdd(multi, 8)
|
||||
}
|
||||
}
|
@ -1,5 +1,14 @@
|
||||
package li.cil.oc.common.item
|
||||
|
||||
class Hdd(val parent: Delegator, val capacity: Int) extends Delegate {
|
||||
def unlocalizedName = "HardDiskDrive"
|
||||
import li.cil.oc.Config
|
||||
import net.minecraft.client.renderer.texture.IconRegister
|
||||
|
||||
class Hdd(val parent: Delegator, val megaBytes: Int) extends Delegate {
|
||||
def unlocalizedName = "HardDiskDrive" + megaBytes + "m"
|
||||
|
||||
override def registerIcons(iconRegister: IconRegister) {
|
||||
super.registerIcons(iconRegister)
|
||||
|
||||
icon = iconRegister.registerIcon(Config.resourceDomain + ":hdd" + megaBytes)
|
||||
}
|
||||
}
|
@ -8,7 +8,7 @@ import net.minecraft.item.ItemStack
|
||||
object FileSystem extends Item {
|
||||
override def api = Option(getClass.getResourceAsStream(Config.driverPath + "fs.lua"))
|
||||
|
||||
override def worksWith(item: ItemStack) = WorksWith(Items.hdd)(item)
|
||||
override def worksWith(item: ItemStack) = WorksWith(Items.hdd2, Items.hdd4, Items.hdd8)(item)
|
||||
|
||||
override def slot(item: ItemStack) = Slot.HDD
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user