mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-04 05:45:35 +00:00
more cleanup
This commit is contained in:
parent
3cc81d74bc
commit
ca4ad74151
1 changed files with 3 additions and 2 deletions
|
@ -180,7 +180,6 @@ void WindowManager::updateVisible()
|
||||||
// Mouse is visible whenever we're not in game mode
|
// Mouse is visible whenever we're not in game mode
|
||||||
MyGUI::PointerManager::getInstance().setVisible(isGuiMode());
|
MyGUI::PointerManager::getInstance().setVisible(isGuiMode());
|
||||||
|
|
||||||
int eff;
|
|
||||||
switch(mode) {
|
switch(mode) {
|
||||||
case GM_Game:
|
case GM_Game:
|
||||||
// If in game mode, don't show anything.
|
// If in game mode, don't show anything.
|
||||||
|
@ -202,16 +201,18 @@ void WindowManager::updateVisible()
|
||||||
mCharGen->spawnDialog(mode);
|
mCharGen->spawnDialog(mode);
|
||||||
break;
|
break;
|
||||||
case GM_Inventory:
|
case GM_Inventory:
|
||||||
|
{
|
||||||
// First, compute the effective set of windows to show.
|
// First, compute the effective set of windows to show.
|
||||||
// This is controlled both by what windows the
|
// This is controlled both by what windows the
|
||||||
// user has opened/closed (the 'shown' variable) and by what
|
// user has opened/closed (the 'shown' variable) and by what
|
||||||
// windows we are allowed to show (the 'allowed' var.)
|
// windows we are allowed to show (the 'allowed' var.)
|
||||||
eff = shown & allowed;
|
int eff = shown & allowed;
|
||||||
|
|
||||||
// Show the windows we want
|
// Show the windows we want
|
||||||
map -> setVisible( (eff & GW_Map) != 0 );
|
map -> setVisible( (eff & GW_Map) != 0 );
|
||||||
stats -> setVisible( (eff & GW_Stats) != 0 );
|
stats -> setVisible( (eff & GW_Stats) != 0 );
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case GM_Dialogue:
|
case GM_Dialogue:
|
||||||
dialogueWindow->open();
|
dialogueWindow->open();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue