This commit is contained in:
Benau 2020-09-14 10:30:49 +08:00
parent 2474b7496a
commit 94f4a6f644
2 changed files with 6 additions and 6 deletions

View File

@ -59,7 +59,7 @@ CGUISTKListBox::CGUISTKListBox(IGUIEnvironment* environment, IGUIElement* parent
setTabOrder(-1);
updateAbsolutePosition();
m_disactivated = false;
m_deactivated = false;
}
@ -299,7 +299,7 @@ bool CGUISTKListBox::OnEvent(const SEvent& event)
if (Selected<0)
Selected = 0;
if (m_disactivated)
if (m_deactivated)
Selected = -1;
recalculateScrollPos();
@ -430,7 +430,7 @@ void CGUISTKListBox::selectNew(s32 ypos, bool onlyHover)
s32 oldSelected = Selected;
Selected = getItemAt(AbsoluteRect.UpperLeftCorner.X, ypos);
if (Selected == -1 || Items.empty() || m_disactivated)
if (Selected == -1 || Items.empty() || m_deactivated)
{
Selected = -1;
return;

View File

@ -174,8 +174,8 @@ namespace irr
gui::IGUIScrollBar* getScrollBar() const { return ScrollBar; }
void setDisactivated(bool val)
{
m_disactivated = val;
if (m_disactivated)
m_deactivated = val;
if (m_deactivated)
Selected = -1;
}
private:
@ -206,7 +206,7 @@ namespace irr
bool AutoScroll;
bool HighlightWhenNotFocused;
bool m_alternating_darkness;
bool m_disactivated;
bool m_deactivated;
};