Remove frame title from exopack inventory screen
This commit is contained in:
parent
19bb6600dd
commit
29cb78bbd5
@ -54,7 +54,7 @@ class ExopackInventoryScreen(menu: ExopackInventoryMenu) : MatteryScreen<Exopack
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun makeMainFrame(): FramePanel<MatteryScreen<*>> {
|
override fun makeMainFrame(): FramePanel<MatteryScreen<*>> {
|
||||||
val frame = FramePanel(this, width = 200f, height = FRAME_BASE_HEIGHT + inventoryRows * AbstractSlotPanel.SIZE, title = this.title)
|
val frame = FramePanel(this, width = 200f, height = FRAME_BASE_HEIGHT + inventoryRows * AbstractSlotPanel.SIZE)
|
||||||
|
|
||||||
frame.makeCloseButton()
|
frame.makeCloseButton()
|
||||||
frame.onClose { onClose() }
|
frame.onClose { onClose() }
|
||||||
|
@ -25,7 +25,7 @@ open class FramePanel<out S : Screen>(
|
|||||||
var title: Component? = null,
|
var title: Component? = null,
|
||||||
var titleColor: RGBAColor = RGBAColor.HEADING_TEXT
|
var titleColor: RGBAColor = RGBAColor.HEADING_TEXT
|
||||||
) : EditablePanel<S>(screen, parent, x, y, width, height), NarratableEntry {
|
) : EditablePanel<S>(screen, parent, x, y, width, height), NarratableEntry {
|
||||||
constructor(screen: S, width: Float, height: Float, title: Component?) : this(screen, null, 0f, 0f, width, height, title)
|
constructor(screen: S, width: Float, height: Float, title: Component? = null) : this(screen, null, 0f, 0f, width, height, title)
|
||||||
|
|
||||||
open inner class Tab(
|
open inner class Tab(
|
||||||
var onOpen: Runnable? = null,
|
var onOpen: Runnable? = null,
|
||||||
|
Loading…
Reference in New Issue
Block a user