Add slot hints in a safer way

This commit is contained in:
bdew committed 2014-03-16 10:33:22 +02:00
1 parent 20b1264be4
commit b84f8849ef
5 files changed
+15 -15

No files matched your search

@@ -28,8 +28,8 @@ class GuiMutatronAdv(val te: TileMutatronAdv, player: EntityPlayer) extends Base
widgets.add(new WidgetLabel(Misc.toLocal("tile.gendustry.mutatron.adv.name"), 8, 6, Color.darkgray))
widgets.add(new WidgetLabel(Misc.toLocal("gendustry.label.select"), 8, 89, Color.darkgray))
inventorySlots.getSlot(te.slots.inIndividual1).setBackgroundIcon(HintIcons.queenOrSapling)
inventorySlots.getSlot(te.slots.inIndividual2).setBackgroundIcon(HintIcons.droneOrPollen)
inventorySlots.getSlot(te.slots.inLabware).setBackgroundIcon(HintIcons.labware)
inventorySlots.getSlotFromInventory(te, te.slots.inIndividual1).setBackgroundIcon(HintIcons.queenOrSapling)
inventorySlots.getSlotFromInventory(te, te.slots.inIndividual2).setBackgroundIcon(HintIcons.droneOrPollen)
inventorySlots.getSlotFromInventory(te, te.slots.inLabware).setBackgroundIcon(HintIcons.labware)
}
}
@@ -26,7 +26,7 @@ class GuiApiary(val te: TileApiary, player: EntityPlayer) extends BaseScreen(new
widgets.add(new WidgetLabel(Misc.toLocal("tile.gendustry.apiary.name"), 8, 6, Color.darkgray))
te.slots.upgrades.foreach(inventorySlots.getSlot(_).setBackgroundIcon(HintIcons.upgrade))
inventorySlots.getSlot(te.slots.drone).setBackgroundIcon(HintIcons.drone)
inventorySlots.getSlot(te.slots.queen).setBackgroundIcon(HintIcons.queen)
inventorySlots.getSlotFromInventory(te, te.slots.drone).setBackgroundIcon(HintIcons.drone)
inventorySlots.getSlotFromInventory(te, te.slots.queen).setBackgroundIcon(HintIcons.queen)
}
}
@@ -25,8 +25,8 @@ class GuiImprinter(val te: TileImprinter, player: EntityPlayer) extends BaseScre
widgets.add(new WidgetPowerCustom(new Rect(8, 19, 16, 58), Textures.powerFill, te.power))
widgets.add(new WidgetLabel(Misc.toLocal("tile.gendustry.imprinter.name"), 8, 6, Color.darkgray))
inventorySlots.getSlot(te.slots.inIndividual).setBackgroundIcon(HintIcons.queenOrSapling)
inventorySlots.getSlot(te.slots.inLabware).setBackgroundIcon(HintIcons.labware)
inventorySlots.getSlot(te.slots.inTemplate).setBackgroundIcon(HintIcons.template)
inventorySlots.getSlotFromInventory(te, te.slots.inIndividual).setBackgroundIcon(HintIcons.queenOrSapling)
inventorySlots.getSlotFromInventory(te, te.slots.inLabware).setBackgroundIcon(HintIcons.labware)
inventorySlots.getSlotFromInventory(te, te.slots.inTemplate).setBackgroundIcon(HintIcons.template)
}
}
@@ -26,8 +26,8 @@ class GuiMutatron(val te: TileMutatron, player: EntityPlayer) extends BaseScreen
widgets.add(new WidgetFluidGauge(new Rect(32, 19, 16, 58), Textures.tankOverlay, te.tank))
widgets.add(new WidgetLabel(Misc.toLocal("tile.gendustry.mutatron.name"), 8, 6, Color.darkgray))
inventorySlots.getSlot(te.slots.inIndividual1).setBackgroundIcon(HintIcons.queenOrSapling)
inventorySlots.getSlot(te.slots.inIndividual2).setBackgroundIcon(HintIcons.droneOrPollen)
inventorySlots.getSlot(te.slots.inLabware).setBackgroundIcon(HintIcons.labware)
inventorySlots.getSlotFromInventory(te, te.slots.inIndividual1).setBackgroundIcon(HintIcons.queenOrSapling)
inventorySlots.getSlotFromInventory(te, te.slots.inIndividual2).setBackgroundIcon(HintIcons.droneOrPollen)
inventorySlots.getSlotFromInventory(te, te.slots.inLabware).setBackgroundIcon(HintIcons.labware)
}
}
@@ -25,9 +25,9 @@ class GuiSampler(val te: TileSampler, player: EntityPlayer) extends BaseScreen(n
widgets.add(new WidgetPowerCustom(new Rect(8, 19, 16, 58), Textures.powerFill, te.power))
widgets.add(new WidgetLabel(Misc.toLocal("tile.gendustry.sampler.name"), 8, 6, Color.darkgray))
inventorySlots.getSlot(te.slots.inSampleBlank).setBackgroundIcon(HintIcons.blankSample)
inventorySlots.getSlot(te.slots.inLabware).setBackgroundIcon(HintIcons.labware)
inventorySlots.getSlot(te.slots.inIndividual).setBackgroundIcon(HintIcons.droneOrSapling)
inventorySlots.getSlot(te.slots.outSample).setBackgroundIcon(HintIcons.sample)
inventorySlots.getSlotFromInventory(te, te.slots.inSampleBlank).setBackgroundIcon(HintIcons.blankSample)
inventorySlots.getSlotFromInventory(te, te.slots.inLabware).setBackgroundIcon(HintIcons.labware)
inventorySlots.getSlotFromInventory(te, te.slots.inIndividual).setBackgroundIcon(HintIcons.droneOrSapling)
inventorySlots.getSlotFromInventory(te, te.slots.outSample).setBackgroundIcon(HintIcons.sample)
}
}