Merge pull request #2727 from akortunov/guifixes

Make slider control in the wait window to be a more intuitive
pull/578/head
Andrei Kortunov 5 years ago committed by GitHub
commit 3d20df883e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -227,9 +227,9 @@ namespace MWGui
void WaitDialog::onKeyButtonPressed(MyGUI::Widget *sender, MyGUI::KeyCode key, MyGUI::Char character)
{
if (key == MyGUI::KeyCode::ArrowDown)
if (key == MyGUI::KeyCode::ArrowUp)
mHourSlider->setScrollPosition(std::min(mHourSlider->getScrollPosition()+1, mHourSlider->getScrollRange()-1));
else if (key == MyGUI::KeyCode::ArrowUp)
else if (key == MyGUI::KeyCode::ArrowDown)
mHourSlider->setScrollPosition(std::max(static_cast<int>(mHourSlider->getScrollPosition())-1, 0));
else
return;

Loading…
Cancel
Save