]> git.localhorst.tv Git - l2e.git/blobdiff - src/menu/PartyMenu.h
implemented spell sorting
[l2e.git] / src / menu / PartyMenu.h
index a55b2c13f81fadeaf8071e832b4edffb5c950fdf..91c25ba549d14a92fdbd3250cce4b3d5722f7c48 100644 (file)
@@ -35,16 +35,20 @@ public:
        Resources &Res();
        const Resources &Res() const;
 
+       int Width() const;
+       int Height() const;
+
 public:
        void RenderBackground(SDL_Surface *screen) const;
        void RenderHeros(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
        void RenderMenu(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
        void RenderInfo(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
 
-       geometry::Vector<int> StatusOffset() const;
+       geometry::Vector<int> StatusOffset(int index) const;
        const HeroStatus &GetHeroStatus(int index) const { return status[index]; }
 
-       static void OnStatusSelect(PartyMenu *, int);
+       static void OnStatusSelect(void *, int);
+       static void OnSpellSelect(void *, int);
 
 private:
        virtual void OnEnterState(SDL_Surface *screen);
@@ -68,6 +72,7 @@ private:
 
 private:
        HeroStatus status[4];
+       geometry::Vector<int> statusPositions[4];
        common::GameConfig *game;
        graphics::Menu<int> mainMenu;