#include "CapsuleChangeMenu.h"
#include "CapsuleFeedMenu.h"
+#include "CapsuleNameMenu.h"
#include "PartyMenu.h"
#include "Resources.h"
#include "../app/Application.h"
menu.SetSelected();
break;
case CHOICE_NAME:
- // push name menu
+ Ctrl().PushState(new CapsuleNameMenu(this));
menu.SetSelected();
break;
}
12 * font.CharWidth(),
2 * font.CharHeight() - font.CharHeight() / 8);
// TODO: wheel offset: top left, center, or center bottom?
- const Vector<int> wheelOffset;
+ const Vector<int> wheelOffset(
+ 6 * font.CharWidth(),
+ 19 * font.CharHeight() - font.CharHeight() / 8);
const Vector<int> statsOffset(
12 * font.CharWidth(),
15 * font.CharHeight() - font.CharHeight() / 8);
}
void CapsuleMenu::RenderWheel(SDL_Surface *screen, const Vector<int> &offset) const {
- // later
+ Res().capsuleAlignmentWheel->DrawCenter(screen, offset);
+ Res().capsuleAlignmentCursor->DrawCenter(screen, offset + Game().state->GetCapsule().AlignmentOffset());
}
void CapsuleMenu::RenderStats(SDL_Surface *screen, const Vector<int> &offset) const {
return parent->Height();
}
+Capsule &CapsuleMenu::GetCapsule() {
+ return Game().state->GetCapsule();
+}
+
const Capsule &CapsuleMenu::GetCapsule() const {
- return *Game().state->capsule;
+ return Game().state->GetCapsule();
}
}