mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 12:23:53 +00:00
Make slider control in the wait window to be a more intuitive
This commit is contained in:
parent
d8e1a6b286
commit
90508237b1
1 changed files with 2 additions and 2 deletions
|
@ -227,9 +227,9 @@ namespace MWGui
|
||||||
|
|
||||||
void WaitDialog::onKeyButtonPressed(MyGUI::Widget *sender, MyGUI::KeyCode key, MyGUI::Char character)
|
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));
|
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));
|
mHourSlider->setScrollPosition(std::max(static_cast<int>(mHourSlider->getScrollPosition())-1, 0));
|
||||||
else
|
else
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue