graphics::MenuProperties equipmentMenuProperties;
equipmentMenuProperties.cols = 1;
- equipmentMenuProperties.rows = 5;
+ equipmentMenuProperties.rows = 6;
equipmentMenuProperties.charsPerEntry = 12;
equipmentMenuProperties.rowGap = 16;
equipmentMenuProperties.cursor = &menuCursor;
equipmentMenuProperties.iconSpace = 16;
menuResources.equipmentMenuProperties = &equipmentMenuProperties;
+ menuResources.equipMenuEquipLabel = "EQUIP";
+ menuResources.equipMenuStrongestLabel = "STRONGEST";
+ menuResources.equipMenuRemoveLabel = "REMOVE";
+ menuResources.equipMenuRemoveAllLabel = "REMOVE ALL";
+ menuResources.equipMenuDropLabel = "DROP";
+
InitScreen screen(width, height);
app::State *state(0);
Vector<int> equipOffset(
17 * parent->Res().statusFont->CharWidth(),
4 * parent->Res().statusFont->CharHeight() - parent->Res().statusFont->CharHeight() / 8);
+ Vector<int> menuOffset(
+ 15 * parent->Res().statusFont->CharWidth(),
+ 17 * parent->Res().statusFont->CharHeight() - parent->Res().statusFont->CharHeight() / 8);
parent->RenderBackground(screen);
parent->Res().shoulderNav->Draw(screen, offset + shoulderNavOffset);
RenderStatus(screen, offset + parent->StatusOffset(0));
RenderStats(screen, offset + statsOffset);
- RenderEquipmentMenu(screen, equipOffset);
+ RenderEquipmentMenu(screen, offset + equipOffset);
+ RenderActionMenu(screen, offset + menuOffset);
}
int EquipMenu::Width() const {
}
void EquipMenu::RenderActionMenu(SDL_Surface *screen, const Vector<int> &offset) const {
+ const Font &font(*parent->Res().statusFont);
+ const Frame &frame(*parent->Res().statusFrame);
+ const Vector<int> menuOffset(3 * font.CharWidth(), font.CharHeight() + font.CharHeight() / 2);
+ frame.Draw(screen, offset, 15 * font.CharWidth(), 10 * font.CharHeight());
+ actionMenu.Draw(screen, offset + menuOffset);
}
void EquipMenu::RenderInventoryMenu(SDL_Surface *screen, const Vector<int> &offset) const {