mirror of
https://github.com/rwengine/openrw.git
synced 2024-09-18 16:32:32 +02:00
Enable mouse cursor in menus, fixes #46
This commit is contained in:
parent
c8693135f9
commit
9e2db1bd11
@ -96,7 +96,6 @@ RWGame::RWGame(int argc, char* argv[])
|
||||
cs.depthBits = 32;
|
||||
cs.stencilBits = 8;
|
||||
window.create(sf::VideoMode(w, h), "", style, cs);
|
||||
window.setMouseCursorVisible(false);
|
||||
|
||||
log.addReciever(&logPrinter);
|
||||
log.info("Game", "Game directory: " + config.getGameDataPath());
|
||||
|
@ -107,6 +107,8 @@ void IngameState::enter()
|
||||
}
|
||||
started = true;
|
||||
}
|
||||
|
||||
game->getWindow().setMouseCursorVisible(false);
|
||||
}
|
||||
|
||||
void IngameState::exit()
|
||||
|
@ -53,7 +53,7 @@ void MenuState::enterLoadMenu()
|
||||
|
||||
void MenuState::enter()
|
||||
{
|
||||
|
||||
game->getWindow().setMouseCursorVisible(true);
|
||||
}
|
||||
|
||||
void MenuState::exit()
|
||||
|
@ -17,6 +17,8 @@ PauseState::PauseState(RWGame* game)
|
||||
void PauseState::enter()
|
||||
{
|
||||
getWorld()->setPaused(true);
|
||||
|
||||
game->getWindow().setMouseCursorVisible(true);
|
||||
}
|
||||
|
||||
void PauseState::exit()
|
||||
|
Loading…
Reference in New Issue
Block a user