]> git.localhorst.tv Git - l2e.git/blobdiff - src/menu/CapsuleNameMenu.h
implemented capsule renaming
[l2e.git] / src / menu / CapsuleNameMenu.h
index 0021da4d5f2bb3bfc9aee2ab17e783b632e3daa1..77211e2152c8dcc7d53f882d33c31d6aaf25f525 100644 (file)
@@ -5,6 +5,7 @@
 #include "../app/State.h"
 #include "../common/fwd.h"
 #include "../geometry/Vector.h"
+#include "../graphics/CharSelect.h"
 
 namespace menu {
 
@@ -33,17 +34,22 @@ private:
 
        virtual void OnResize(int width, int height);
 
+       common::Capsule &GetCapsule();
        const common::Capsule &GetCapsule() const;
 
-       void LoadInventory();
+       void AddChar();
+       void RemoveChar();
+       void StoreName();
 
        void RenderName(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
        void RenderAlphabet(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
 
 private:
        CapsuleMenu *parent;
+       graphics::CharSelect select;
        int cursor;
        char buffer[6];
+       bool first;
 
 };