Update AbstractProcessingMachineScreen to properly account for UserFilteredMenuSlot
This commit is contained in:
parent
3e086dcacf
commit
784930e396
@ -12,9 +12,11 @@ import ru.dbotthepony.mc.otm.client.screen.panels.button.DeviceControls
|
|||||||
import ru.dbotthepony.mc.otm.client.screen.panels.slot.AbstractSlotPanel
|
import ru.dbotthepony.mc.otm.client.screen.panels.slot.AbstractSlotPanel
|
||||||
import ru.dbotthepony.mc.otm.client.screen.panels.slot.BatterySlotPanel
|
import ru.dbotthepony.mc.otm.client.screen.panels.slot.BatterySlotPanel
|
||||||
import ru.dbotthepony.mc.otm.client.screen.panels.slot.SlotPanel
|
import ru.dbotthepony.mc.otm.client.screen.panels.slot.SlotPanel
|
||||||
|
import ru.dbotthepony.mc.otm.client.screen.panels.slot.UserFilteredSlotPanel
|
||||||
import ru.dbotthepony.mc.otm.client.screen.widget.ProgressGaugePanel
|
import ru.dbotthepony.mc.otm.client.screen.widget.ProgressGaugePanel
|
||||||
import ru.dbotthepony.mc.otm.client.screen.widget.WideProfiledPowerGaugePanel
|
import ru.dbotthepony.mc.otm.client.screen.widget.WideProfiledPowerGaugePanel
|
||||||
import ru.dbotthepony.mc.otm.compat.jei.isJeiLoaded
|
import ru.dbotthepony.mc.otm.compat.jei.isJeiLoaded
|
||||||
|
import ru.dbotthepony.mc.otm.menu.UserFilteredMenuSlot
|
||||||
import ru.dbotthepony.mc.otm.menu.tech.AbstractProcessingMachineMenu
|
import ru.dbotthepony.mc.otm.menu.tech.AbstractProcessingMachineMenu
|
||||||
import kotlin.math.roundToInt
|
import kotlin.math.roundToInt
|
||||||
|
|
||||||
@ -50,9 +52,14 @@ open class AbstractProcessingMachineScreen<M : AbstractProcessingMachineMenu>(me
|
|||||||
row.dock = Dock.TOP
|
row.dock = Dock.TOP
|
||||||
row.dockBottom = 2f
|
row.dockBottom = 2f
|
||||||
|
|
||||||
SlotPanel(this, row, input).also {
|
if (input is UserFilteredMenuSlot)
|
||||||
it.dock = Dock.LEFT
|
UserFilteredSlotPanel(this, row, input).also {
|
||||||
}
|
it.dock = Dock.LEFT
|
||||||
|
}
|
||||||
|
else
|
||||||
|
SlotPanel(this, row, input).also {
|
||||||
|
it.dock = Dock.LEFT
|
||||||
|
}
|
||||||
|
|
||||||
progressPanels.add(ProgressGaugePanel(this, row, progress).also {
|
progressPanels.add(ProgressGaugePanel(this, row, progress).also {
|
||||||
it.dock = Dock.LEFT
|
it.dock = Dock.LEFT
|
||||||
|
Loading…
Reference in New Issue
Block a user