From fe7cd25b859806ef532ae76fa76bc94ea28f9789 Mon Sep 17 00:00:00 2001 From: ACL Date: Thu, 16 Apr 2026 20:44:13 +0200 Subject: [PATCH] Fixed ButtonList and TexturePackList issue --- Minecraft.Client/Common/UI/UIController.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Minecraft.Client/Common/UI/UIController.cpp b/Minecraft.Client/Common/UI/UIController.cpp index 1a2751b3..a67dbe81 100644 --- a/Minecraft.Client/Common/UI/UIController.cpp +++ b/Minecraft.Client/Common/UI/UIController.cpp @@ -955,7 +955,7 @@ void UIController::tickInput() static_cast(sceneMouseX), static_cast(sceneMouseY), false); hitControlId = -1; hitArea = INT_MAX; - hitCtrl = NULL; + hitCtrl = ctrl; break; // ButtonList takes priority } if (type == UIControl::eTexturePackList) @@ -968,7 +968,7 @@ void UIController::tickInput() m_bMouseHoverHorizontalList = true; hitControlId = -1; hitArea = INT_MAX; - hitCtrl = NULL; + hitCtrl = ctrl; break; } S32 area = cw * ch; @@ -1005,7 +1005,7 @@ void UIController::tickInput() } } - if (hitCtrl && (hitCtrl->getControlType() == UIControl::eButton || hitCtrl->getControlType() == UIControl::eCheckBox || hitCtrl->getControlType() == UIControl::eButtonList || hitCtrl->getControlType() == UIControl::eSaveList)) + if (hitCtrl && (hitCtrl->getControlType() == UIControl::eButton || hitCtrl->getControlType() == UIControl::eCheckBox || hitCtrl->getControlType() == UIControl::eButtonList)) g_KBMInput.SetCursorIcon(MAKEINTRESOURCEW(IDC_HAND)); else if (hitCtrl && hitCtrl->getControlType() == UIControl::eSlider || hitCtrl && hitCtrl->getControlType() == UIControl::eTexturePackList) g_KBMInput.SetCursorIcon(MAKEINTRESOURCEW(IDC_SIZEWE));