mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-15 10:21:45 -04:00
preliminary cpu, alu and cu graphics; refactored alu class
This commit is contained in:
parent
e4dadbae26
commit
15ce4d4552
BIN
assets/opencomputers/textures/items/alu.png
Normal file
BIN
assets/opencomputers/textures/items/alu.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 295 B |
BIN
assets/opencomputers/textures/items/cpu.png
Normal file
BIN
assets/opencomputers/textures/items/cpu.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 339 B |
BIN
assets/opencomputers/textures/items/cu.png
Normal file
BIN
assets/opencomputers/textures/items/cu.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 284 B |
@ -45,7 +45,7 @@ object Items {
|
|||||||
var buttonGroup: item.ButtonGroup = null
|
var buttonGroup: item.ButtonGroup = null
|
||||||
var cpu: item.CPU = null
|
var cpu: item.CPU = null
|
||||||
var transistor : item.Transistor = null
|
var transistor : item.Transistor = null
|
||||||
var alu : item.Alu = null
|
var alu : item.ALU = null
|
||||||
var cu : item.ControlUnit = null
|
var cu : item.ControlUnit = null
|
||||||
|
|
||||||
var ironNugget : item.IronNugget = null
|
var ironNugget : item.IronNugget = null
|
||||||
@ -91,7 +91,7 @@ object Items {
|
|||||||
|
|
||||||
cpu = new item.CPU(multi)
|
cpu = new item.CPU(multi)
|
||||||
transistor = new item.Transistor(multi)
|
transistor = new item.Transistor(multi)
|
||||||
alu = new item.Alu(multi)
|
alu = new item.ALU(multi)
|
||||||
cu = new item.ControlUnit(multi)
|
cu = new item.ControlUnit(multi)
|
||||||
|
|
||||||
ironNugget = new item.IronNugget(multi)
|
ironNugget = new item.IronNugget(multi)
|
||||||
|
@ -1,6 +1,14 @@
|
|||||||
package li.cil.oc.common.item
|
package li.cil.oc.common.item
|
||||||
|
|
||||||
|
import li.cil.oc.Settings
|
||||||
|
import net.minecraft.client.renderer.texture.IconRegister
|
||||||
|
|
||||||
class Alu (val parent: Delegator) extends Delegate {
|
class ALU(val parent: Delegator) extends Delegate {
|
||||||
val unlocalizedName = "ALU"
|
val unlocalizedName = "ALU"
|
||||||
|
|
||||||
|
override def registerIcons(iconRegister: IconRegister) {
|
||||||
|
super.registerIcons(iconRegister)
|
||||||
|
|
||||||
|
icon = iconRegister.registerIcon(Settings.resourceDomain + ":alu")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,15 @@
|
|||||||
package li.cil.oc.common.item
|
package li.cil.oc.common.item
|
||||||
|
|
||||||
|
import li.cil.oc.Settings
|
||||||
|
import net.minecraft.client.renderer.texture.IconRegister
|
||||||
|
|
||||||
class CPU (val parent: Delegator) extends Delegate {
|
class CPU(val parent: Delegator) extends Delegate {
|
||||||
val unlocalizedName = "CPU"
|
val unlocalizedName = "CPU"
|
||||||
|
|
||||||
|
override def registerIcons(iconRegister: IconRegister) {
|
||||||
|
super.registerIcons(iconRegister)
|
||||||
|
|
||||||
|
icon = iconRegister.registerIcon(Settings.resourceDomain + ":cpu")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,14 @@
|
|||||||
package li.cil.oc.common.item
|
package li.cil.oc.common.item
|
||||||
|
|
||||||
|
import li.cil.oc.Settings
|
||||||
|
import net.minecraft.client.renderer.texture.IconRegister
|
||||||
|
|
||||||
class ControlUnit (val parent: Delegator) extends Delegate {
|
class ControlUnit(val parent: Delegator) extends Delegate {
|
||||||
val unlocalizedName = "CU"
|
val unlocalizedName = "CU"
|
||||||
|
|
||||||
|
override def registerIcons(iconRegister: IconRegister) {
|
||||||
|
super.registerIcons(iconRegister)
|
||||||
|
|
||||||
|
icon = iconRegister.registerIcon(Settings.resourceDomain + ":cu")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user