Remove frame title from exopack inventory screen

This commit is contained in:
DBotThePony 2023-12-22 14:42:58 +07:00
parent 19bb6600dd
commit 29cb78bbd5
Signed by: DBot
GPG Key ID: DCC23B5715498507
2 changed files with 2 additions and 2 deletions

View File

@ -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() }

View File

@ -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,