forked from teamnwah/openmw-tes3coop
Fix being able to flip journal pages with the mousewheel when the options overlay is active (Fixes #2855)
This commit is contained in:
parent
58cd2b1a84
commit
7dd09dd637
1 changed files with 9 additions and 0 deletions
|
@ -61,6 +61,7 @@ namespace
|
|||
DisplayStateStack mStates;
|
||||
Book mTopicIndexBook;
|
||||
bool mQuestMode;
|
||||
bool mOptionsMode;
|
||||
bool mAllQuests;
|
||||
|
||||
template <typename T>
|
||||
|
@ -182,6 +183,7 @@ namespace
|
|||
|
||||
mQuestMode = false;
|
||||
mAllQuests = false;
|
||||
mOptionsMode = false;
|
||||
}
|
||||
|
||||
void adjustButton (char const * name, bool optional = false)
|
||||
|
@ -244,6 +246,7 @@ namespace
|
|||
|
||||
void setBookMode ()
|
||||
{
|
||||
mOptionsMode = false;
|
||||
setVisible (OptionsBTN, true);
|
||||
setVisible (OptionsOverlay, false);
|
||||
|
||||
|
@ -253,6 +256,8 @@ namespace
|
|||
|
||||
void setOptionsMode ()
|
||||
{
|
||||
mOptionsMode = true;
|
||||
|
||||
setVisible (OptionsBTN, false);
|
||||
setVisible (OptionsOverlay, true);
|
||||
|
||||
|
@ -508,6 +513,8 @@ namespace
|
|||
|
||||
void notifyNextPage(MyGUI::Widget* _sender)
|
||||
{
|
||||
if (mOptionsMode)
|
||||
return;
|
||||
if (!mStates.empty ())
|
||||
{
|
||||
unsigned int & page = mStates.top ().mPage;
|
||||
|
@ -523,6 +530,8 @@ namespace
|
|||
|
||||
void notifyPrevPage(MyGUI::Widget* _sender)
|
||||
{
|
||||
if (mOptionsMode)
|
||||
return;
|
||||
if (!mStates.empty ())
|
||||
{
|
||||
unsigned int & page = mStates.top ().mPage;
|
||||
|
|
Loading…
Reference in a new issue