Kaynağa Gözat

Send hover event to buttons in battle UI

Ivan Savenko 2 yıl önce
ebeveyn
işleme
bbd4d361e4
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      client/battle/CBattleInterface.cpp

+ 3 - 1
client/battle/CBattleInterface.cpp

@@ -294,11 +294,13 @@ void CBattleInterface::keyPressed(const SDL_KeyboardEvent & key)
 			actionsController->endCastingSpell();
 	}
 }
-void CBattleInterface::mouseMoved(const SDL_MouseMotionEvent &sEvent)
+void CBattleInterface::mouseMoved(const SDL_MouseMotionEvent &event)
 {
 	BattleHex selectedHex = fieldController->getHoveredHex();
 
 	actionsController->handleHex(selectedHex, MOVE);
+
+	controlPanel->mouseMoved(event);
 }
 
 void CBattleInterface::clickRight(tribool down, bool previousState)