| 528 | } |
| 529 | |
| 530 | void MainInterface::preUpdate(float) { |
| 531 | auto player = m_client->mainPlayer(); |
| 532 | if (!m_client->paused()) |
| 533 | player->aim(cursorWorldPosition()); |
| 534 | |
| 535 | if (m_paneManager.topPane({PaneLayer::Window, PaneLayer::ModalWindow})) |
| 536 | player->setBusyState(PlayerBusyState::Menu); |
| 537 | else if (m_chat->hasFocus()) |
| 538 | player->setBusyState(PlayerBusyState::Chatting); |
| 539 | else |
| 540 | player->setBusyState(PlayerBusyState::None); |
| 541 | } |
| 542 | |
| 543 | void MainInterface::update(float dt) { |
| 544 | m_paneManager.update(dt); |
no test coverage detected