From 29cb78bbd5671dea4d37731386350df14ff44cb7 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Fri, 22 Dec 2023 14:42:58 +0700 Subject: [PATCH] Remove frame title from exopack inventory screen --- .../dbotthepony/mc/otm/client/screen/ExopackInventoryScreen.kt | 2 +- .../ru/dbotthepony/mc/otm/client/screen/panels/FramePanel.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/ExopackInventoryScreen.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/ExopackInventoryScreen.kt index ca3de74ea..a51f8b21b 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/ExopackInventoryScreen.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/ExopackInventoryScreen.kt @@ -54,7 +54,7 @@ class ExopackInventoryScreen(menu: ExopackInventoryMenu) : 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.onClose { onClose() } diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/FramePanel.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/FramePanel.kt index 79ae5fc49..7f74a2bd6 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/FramePanel.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/FramePanel.kt @@ -25,7 +25,7 @@ open class FramePanel( var title: Component? = null, var titleColor: RGBAColor = RGBAColor.HEADING_TEXT ) : EditablePanel(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( var onOpen: Runnable? = null,