mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-04-23 15:36:07 +00:00
Fixed ButtonList and TexturePackList issue
This commit is contained in:
parent
5f65864000
commit
fe7cd25b85
|
|
@ -955,7 +955,7 @@ void UIController::tickInput()
|
|||
static_cast<S32>(sceneMouseX), static_cast<S32>(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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue