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 cfd032691..83955fe6d 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 @@ -20,7 +20,7 @@ open class FramePanel( y: Float, width: Float, height: Float, - protected var title: Component? + var title: Component? = null, ) : 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) @@ -345,7 +345,7 @@ open class FramePanel( y: Float, width: Float, height: Float, - title: Component? + title: Component? = null, ) = FramePanel(screen, parent, x, y, width + PADDING * 2, height + PADDING_TOP + PADDING, title) fun padded( @@ -353,14 +353,14 @@ open class FramePanel( parent: EditablePanel<*>?, width: Float, height: Float, - title: Component? + title: Component? = null, ) = FramePanel(screen, parent, 0f, 0f, width + PADDING * 2, height + PADDING_TOP + PADDING, title) fun padded( screen: S, width: Float, height: Float, - title: Component? + title: Component? = null, ) = FramePanel(screen, null, 0f, 0f, width + PADDING * 2, height + PADDING_TOP + PADDING, title) const val PADDING = 8f