]> git.localhorst.tv Git - l2e.git/blobdiff - src/menu/InventoryMenu.cpp
added menu cursor animations
[l2e.git] / src / menu / InventoryMenu.cpp
index 437cd9cb03d096c72d722ded4c13f2d910d5afb4..de60edcf0e2289458d8e7d6e7252564b2c8e30a3 100644 (file)
@@ -1,14 +1,8 @@
-/*
- * InventoryMenu.cpp
- *
- *  Created on: Nov 4, 2012
- *      Author: holy
- */
-
 #include "InventoryMenu.h"
 
 #include "PartyMenu.h"
 #include "Resources.h"
+#include "../app/Application.h"
 #include "../app/Input.h"
 #include "../common/GameConfig.h"
 #include "../common/GameState.h"
 #include "../common/Item.h"
 #include "../graphics/Font.h"
 #include "../graphics/Frame.h"
+#include "../math/Vector.h"
 
 using app::Input;
 using common::Inventory;
 using common::Item;
-using geometry::Vector;
+using math::Vector;
 using graphics::Font;
 using graphics::Frame;
 using std::swap;
@@ -39,7 +34,9 @@ InventoryMenu::InventoryMenu(PartyMenu *parent)
 
 void InventoryMenu::OnEnterState(SDL_Surface *) {
        menu.SetSelected();
+       menu.StartAnimation(Ctrl());
        LoadInventory();
+       itemMenu.StartAnimation(Ctrl());
 }
 
 void InventoryMenu::LoadInventory() {
@@ -143,7 +140,7 @@ void InventoryMenu::HandleEvents(const Input &input) {
        }
 }
 
-void InventoryMenu::UpdateWorld(float deltaT) {
+void InventoryMenu::UpdateWorld(Uint32 deltaT) {
 
 }