feat: don't show tile select when tooltip

This commit is contained in:
2021-12-12 16:59:57 +01:00
parent e7bf22cea6
commit 61166023df
3 changed files with 4 additions and 0 deletions

View File

@@ -101,6 +101,8 @@ void WorldRenderer::renderTowers() const {
void WorldRenderer::renderTileSelect() const {
if (ImGui::IsAnyItemHovered()) return;
if(m_MobTooltip->isShown() || m_CastleTooltip->isShown()) return;
Renderer::Model tileSelectModel;
tileSelectModel.vao = m_SelectTileVao.get();
tileSelectModel.positon = { (int)m_CursorPos.x, (int)m_CursorPos.y };