]> git.localhorst.tv Git - l2e.git/blobdiff - src/menu/SpellMenu.cpp
added menu cursor animations
[l2e.git] / src / menu / SpellMenu.cpp
index bb66d3c6fcbddff09d6ae5187a0c2b72e3b540fa..0c7936595bd2e44525b3ad97c6ca7535619b3008 100644 (file)
@@ -11,6 +11,7 @@
 #include "../common/Spell.h"
 #include "../graphics/Font.h"
 #include "../graphics/Frame.h"
+#include "../math/Vector.h"
 
 #include <algorithm>
 #include <SDL.h>
@@ -19,7 +20,7 @@
 using app::Input;
 using common::Hero;
 using common::Spell;
-using geometry::Vector;
+using math::Vector;
 using graphics::Font;
 using graphics::Frame;
 using std::vector;
@@ -44,7 +45,9 @@ void SpellMenu::OnEnterState(SDL_Surface *) {
        SDL_SetAlpha(highlight, SDL_SRCALPHA|SDL_RLEACCEL, 0x20);
 
        actionMenu.SetSelected();
+       actionMenu.StartAnimation(Ctrl());
        LoadSpells();
+       spellMenu.StartAnimation(Ctrl());
 }
 
 void SpellMenu::LoadSpells() {
@@ -145,7 +148,7 @@ void SpellMenu::HandleEvents(const Input &input) {
        }
 }
 
-void SpellMenu::UpdateWorld(float deltaT) {
+void SpellMenu::UpdateWorld(Uint32 deltaT) {
 
 }