X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmenu%2FCapsuleNameMenu.h;h=f85d11ce554b03a9373eae103c09ca24bf660e75;hb=06db9f596cd1c5aa4c0832b387882f7c74c1b4c0;hp=0021da4d5f2bb3bfc9aee2ab17e783b632e3daa1;hpb=60e0fe29ce6cd033edc78b181d9d07fa72c11172;p=l2e.git diff --git a/src/menu/CapsuleNameMenu.h b/src/menu/CapsuleNameMenu.h index 0021da4..f85d11c 100644 --- a/src/menu/CapsuleNameMenu.h +++ b/src/menu/CapsuleNameMenu.h @@ -4,7 +4,8 @@ #include "fwd.h" #include "../app/State.h" #include "../common/fwd.h" -#include "../geometry/Vector.h" +#include "../math/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 &offset) const; - void RenderAlphabet(SDL_Surface *screen, const geometry::Vector &offset) const; + void RenderName(SDL_Surface *screen, const math::Vector &offset) const; + void RenderAlphabet(SDL_Surface *screen, const math::Vector &offset) const; private: CapsuleMenu *parent; + graphics::CharSelect select; int cursor; char buffer[6]; + bool first; };