mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-15 10:21:45 -04:00
keyboard part graphics
This commit is contained in:
parent
91d91ef2ad
commit
2d4d9b30bb
BIN
assets/opencomputers/textures/items/arrow_keys.png
Normal file
BIN
assets/opencomputers/textures/items/arrow_keys.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 287 B |
BIN
assets/opencomputers/textures/items/button_group.png
Normal file
BIN
assets/opencomputers/textures/items/button_group.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 292 B |
BIN
assets/opencomputers/textures/items/numpad.png
Normal file
BIN
assets/opencomputers/textures/items/numpad.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 294 B |
@ -40,7 +40,7 @@ object Items {
|
||||
var circuitBoard: item.Platine = null
|
||||
var ironCutter: item.IronCutter = null
|
||||
var chip1, chip2, chip3: item.Chip = null
|
||||
var numPad: item.Numpad = null
|
||||
var numPad: item.NumPad = null
|
||||
var arrowKeys: item.ArrowKeys = null
|
||||
var buttonGroup: item.ButtonGroup = null
|
||||
var cpu: item.CPU = null
|
||||
@ -85,7 +85,7 @@ object Items {
|
||||
chip2 = new item.Chip(multi, 1)
|
||||
chip3 = new item.Chip(multi, 2)
|
||||
|
||||
numPad = new item.Numpad(multi)
|
||||
numPad = new item.NumPad(multi)
|
||||
arrowKeys = new item.ArrowKeys(multi)
|
||||
buttonGroup = new item.ButtonGroup(multi)
|
||||
|
||||
|
@ -1,7 +1,14 @@
|
||||
package li.cil.oc.common.item
|
||||
|
||||
import li.cil.oc.Settings
|
||||
import net.minecraft.client.renderer.texture.IconRegister
|
||||
|
||||
class ArrowKeys (val parent: Delegator) extends Delegate {
|
||||
class ArrowKeys(val parent: Delegator) extends Delegate {
|
||||
val unlocalizedName = "ArrowKeys"
|
||||
|
||||
override def registerIcons(iconRegister: IconRegister) {
|
||||
super.registerIcons(iconRegister)
|
||||
|
||||
icon = iconRegister.registerIcon(Settings.resourceDomain + ":arrow_keys")
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,14 @@
|
||||
package li.cil.oc.common.item
|
||||
|
||||
import li.cil.oc.Settings
|
||||
import net.minecraft.client.renderer.texture.IconRegister
|
||||
|
||||
class ButtonGroup (val parent: Delegator) extends Delegate {
|
||||
val unlocalizedName = "buttonGroup"
|
||||
class ButtonGroup(val parent: Delegator) extends Delegate {
|
||||
val unlocalizedName = "ButtonGroup"
|
||||
|
||||
override def registerIcons(iconRegister: IconRegister) {
|
||||
super.registerIcons(iconRegister)
|
||||
|
||||
icon = iconRegister.registerIcon(Settings.resourceDomain + ":button_group")
|
||||
}
|
||||
}
|
||||
|
@ -2,8 +2,7 @@ package li.cil.oc.common.item
|
||||
|
||||
import net.minecraft.item.ItemStack
|
||||
|
||||
|
||||
class Card(val parent: Delegator,val tier:Int) extends Delegate {
|
||||
class Card(val parent: Delegator, val tier: Int) extends Delegate {
|
||||
val unlocalizedName = "Card"
|
||||
|
||||
override def displayName(stack: ItemStack) = {
|
||||
@ -16,7 +15,7 @@ class Card(val parent: Delegator,val tier:Int) extends Delegate {
|
||||
else if (tier == 2) {
|
||||
Option("Diamond Card")
|
||||
}
|
||||
else{
|
||||
else {
|
||||
Option(unlocalizedName)
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,5 @@
|
||||
package li.cil.oc.common.item
|
||||
|
||||
|
||||
class IronCutter (val parent: Delegator) extends Delegate {
|
||||
class IronCutter(val parent: Delegator) extends Delegate {
|
||||
val unlocalizedName = "IronCutter"
|
||||
}
|
||||
|
@ -1,15 +1,14 @@
|
||||
package li.cil.oc.common.item
|
||||
|
||||
import net.minecraft.client.renderer.texture.IconRegister
|
||||
import li.cil.oc.Settings
|
||||
import net.minecraft.client.renderer.texture.IconRegister
|
||||
|
||||
|
||||
class IronNugget (val parent: Delegator) extends Delegate {
|
||||
class IronNugget(val parent: Delegator) extends Delegate {
|
||||
val unlocalizedName = "IronNugget"
|
||||
|
||||
override def registerIcons(iconRegister: IconRegister) = {
|
||||
super.registerIcons(iconRegister)
|
||||
|
||||
icon = iconRegister.registerIcon(Settings.resourceDomain + ":iron_nugget" )
|
||||
icon = iconRegister.registerIcon(Settings.resourceDomain + ":iron_nugget")
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,14 @@
|
||||
package li.cil.oc.common.item
|
||||
|
||||
import li.cil.oc.Settings
|
||||
import net.minecraft.client.renderer.texture.IconRegister
|
||||
|
||||
class Numpad (val parent: Delegator) extends Delegate {
|
||||
class NumPad(val parent: Delegator) extends Delegate {
|
||||
val unlocalizedName = "NumPad"
|
||||
|
||||
override def registerIcons(iconRegister: IconRegister) {
|
||||
super.registerIcons(iconRegister)
|
||||
|
||||
icon = iconRegister.registerIcon(Settings.resourceDomain + ":numpad")
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,5 @@
|
||||
package li.cil.oc.common.item
|
||||
|
||||
|
||||
class Platine (val parent: Delegator) extends Delegate {
|
||||
class Platine(val parent: Delegator) extends Delegate {
|
||||
val unlocalizedName = "Platine"
|
||||
}
|
||||
|
@ -1,6 +1,5 @@
|
||||
package li.cil.oc.common.item
|
||||
|
||||
|
||||
class PlatineBody (val parent: Delegator) extends Delegate {
|
||||
val unlocalizedName = "PlatineBody"
|
||||
class PlatineBody(val parent: Delegator) extends Delegate {
|
||||
val unlocalizedName = "PlatineBody"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user