mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-12 16:57:32 -04:00
different fix for #3764
This commit is contained in:
parent
d1ca1ce0cd
commit
a43004760f
@ -231,6 +231,7 @@ oc:gui.Rack.Right=Right
|
||||
oc:gui.Rack.Enabled=Enabled
|
||||
oc:gui.Rack.Disabled=Disabled
|
||||
oc:gui.Rack.RelayModeTooltip=Relay Mode
|
||||
oc:gui.Rack.OrientationTooltip=Note: If facing the front[nl]of the Rack, the right[nl]side of the Rack is to[nl]your left.
|
||||
oc:gui.Rack.Top=Top
|
||||
oc:gui.Switch.PacketsPerCycle=Packets / cycle
|
||||
oc:gui.Switch.QueueSize=Queue size
|
||||
|
@ -147,6 +147,8 @@ object Localization {
|
||||
def RelayDisabled = localizeImmediately("gui.Rack.Disabled")
|
||||
|
||||
def RelayModeTooltip: String = localizeImmediately("gui.Rack.RelayModeTooltip")
|
||||
|
||||
def OrientationTooltip: String = localizeImmediately("gui.Rack.OrientationTooltip")
|
||||
}
|
||||
|
||||
object Switch {
|
||||
|
@ -81,8 +81,8 @@ class Rack(playerInventory: InventoryPlayer, val rack: tileentity.Rack) extends
|
||||
def sideName(side: ForgeDirection) = side match {
|
||||
case ForgeDirection.UP => Localization.Rack.Top
|
||||
case ForgeDirection.DOWN => Localization.Rack.Bottom
|
||||
case ForgeDirection.WEST => Localization.Rack.Left
|
||||
case ForgeDirection.EAST => Localization.Rack.Right
|
||||
case ForgeDirection.WEST => Localization.Rack.Right
|
||||
case ForgeDirection.EAST => Localization.Rack.Left
|
||||
case ForgeDirection.NORTH => Localization.Rack.Back
|
||||
case _ => Localization.Rack.None
|
||||
}
|
||||
@ -250,6 +250,13 @@ class Rack(playerInventory: InventoryPlayer, val rack: tileentity.Rack) extends
|
||||
x, y, 0x404040)
|
||||
}
|
||||
|
||||
if (mouseX >= guiLeft + 122 && mouseY >= guiTop + 20 && mouseX < guiLeft + 158 && mouseY < guiTop + 20 + 5 * 11) {
|
||||
val tooltip = new java.util.ArrayList[String]
|
||||
tooltip.addAll(asJavaCollection(Localization.Rack.OrientationTooltip.lines.toIterable))
|
||||
copiedDrawHoveringText(tooltip, mouseX - guiLeft, mouseY - guiTop, fontRendererObj)
|
||||
|
||||
}
|
||||
|
||||
if (relayButton.func_146115_a) {
|
||||
val tooltip = new java.util.ArrayList[String]
|
||||
tooltip.addAll(asJavaCollection(Localization.Rack.RelayModeTooltip.lines.toIterable))
|
||||
|
Loading…
x
Reference in New Issue
Block a user