]> git.localhorst.tv Git - l2e.git/blobdiff - src/menu/StatusMenu.cpp
added menu cursor animations
[l2e.git] / src / menu / StatusMenu.cpp
index be6774388729afdad4bf3ee6eb1f7e63e29e08c0..b2435edbea1cf34de405a82a59a8adeb200fcf1e 100644 (file)
@@ -1,10 +1,3 @@
-/*
- * StatusMenu.cpp
- *
- *  Created on: Oct 22, 2012
- *      Author: holy
- */
-
 #include "StatusMenu.h"
 
 #include "HeroStatus.h"
 #include "../common/Stats.h"
 #include "../graphics/Font.h"
 #include "../graphics/Frame.h"
+#include "../math/Vector.h"
 
 using app::Input;
 using common::Hero;
 using common::Item;
 using common::Stats;
-using geometry::Vector;
+using math::Vector;
 using graphics::Font;
 using graphics::Frame;
 
@@ -40,7 +34,7 @@ StatusMenu::StatusMenu(PartyMenu *parent, int cursor)
 
 
 void StatusMenu::OnEnterState(SDL_Surface *) {
-
+       menu.StartAnimation(Ctrl());
 }
 
 void StatusMenu::OnExitState(SDL_Surface *) {
@@ -88,7 +82,7 @@ void StatusMenu::HandleEvents(const Input &input) {
        }
 }
 
-void StatusMenu::UpdateWorld(float deltaT) {
+void StatusMenu::UpdateWorld(Uint32 deltaT) {
 
 }
 
@@ -197,7 +191,7 @@ void StatusMenu::RenderEquipmentLine(const Item *item, SDL_Surface *screen, cons
        }
 }
 
-void StatusMenu::RenderExperience(SDL_Surface *screen, const geometry::Vector<int> &offset) const {
+void StatusMenu::RenderExperience(SDL_Surface *screen, const math::Vector<int> &offset) const {
        const Font &font(*parent->Res().statusFont);
        font.DrawStringRight(parent->Res().experienceLabel, screen, offset, 10);
 
@@ -205,7 +199,7 @@ void StatusMenu::RenderExperience(SDL_Surface *screen, const geometry::Vector<in
        font.DrawNumberRight(GetHero().Experience(), screen, numberOffset, 7);
 }
 
-void StatusMenu::RenderNextLevel(SDL_Surface *screen, const geometry::Vector<int> &offset) const {
+void StatusMenu::RenderNextLevel(SDL_Surface *screen, const math::Vector<int> &offset) const {
        const Font &font(*parent->Res().statusFont);
        font.DrawStringRight(parent->Res().nextLevelLabel, screen, offset, 10);
 
@@ -213,7 +207,7 @@ void StatusMenu::RenderNextLevel(SDL_Surface *screen, const geometry::Vector<int
        font.DrawNumberRight(GetHero().NextLevel(), screen, numberOffset, 7);
 }
 
-void StatusMenu::RenderIkari(SDL_Surface *screen, const geometry::Vector<int> &offset) const {
+void StatusMenu::RenderIkari(SDL_Surface *screen, const math::Vector<int> &offset) const {
        const Font &font(*parent->Res().statusFont);
        font.DrawString(parent->Res().ipLabel, screen, offset, 5);
 
@@ -224,7 +218,7 @@ void StatusMenu::RenderIkari(SDL_Surface *screen, const geometry::Vector<int> &o
        font.DrawChar('%', screen, percentOffset);
 }
 
-void StatusMenu::RenderMenu(SDL_Surface *screen, const geometry::Vector<int> &offset) const {
+void StatusMenu::RenderMenu(SDL_Surface *screen, const math::Vector<int> &offset) const {
        const Font &font(*parent->Res().normalFont);
        const Frame &frame(*parent->Res().statusFrame);