From bafe74ea24d4d68173a2390a8fb4c662ee05d417 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Tue, 18 Jul 2023 13:37:16 +0700 Subject: [PATCH] Move quicksearch bar in pattern monitor to not overlap close button --- .../client/screen/matter/MatterPanelScreen.kt | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/matter/MatterPanelScreen.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/matter/MatterPanelScreen.kt index 38b61c58e..06a46c8d2 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/matter/MatterPanelScreen.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/matter/MatterPanelScreen.kt @@ -54,12 +54,14 @@ class MatterPanelScreen( val controls = DeviceControls(this, frame) - LargeBooleanRectangleButtonPanel(this, controls, - prop = menu.isAscendingGS, - skinElementActive = Widgets18.ARROW_UP, - skinElementInactive = Widgets18.ARROW_DOWN, - tooltipActive = TranslatableComponent("otm.gui.sorting.ascending"), - tooltipInactive = TranslatableComponent("otm.gui.sorting.descending"), + LargeBooleanRectangleButtonPanel( + this, + controls, + prop = menu.isAscendingGS, + skinElementActive = Widgets18.ARROW_UP, + skinElementInactive = Widgets18.ARROW_DOWN, + tooltipActive = TranslatableComponent("otm.gui.sorting.ascending"), + tooltipInactive = TranslatableComponent("otm.gui.sorting.descending"), ).also { controls.addButton(it) } @@ -91,7 +93,7 @@ class MatterPanelScreen( object : TextInputPanel(this@MatterPanelScreen, frame) { init { width = frame.width * 0.4f - x = frame.width - width - FramePanel.PADDING + x = frame.width - width - FramePanel.PADDING - 6f y = 4f placeholder = TranslatableComponent("otm.gui.quicksearch") }