X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmenu%2FPartyMenu.cpp;h=4949bfaa73453a546062bf121de197f287794077;hb=15b018d9915412a341e2064760fc915fc5bdbade;hp=f230358b1de4c1e1c6fdd20ab61c6efb51ffb0ca;hpb=7651db1476453d8d4162e8708265a36c1a3c0441;p=l2e.git diff --git a/src/menu/PartyMenu.cpp b/src/menu/PartyMenu.cpp index f230358..4949bfa 100644 --- a/src/menu/PartyMenu.cpp +++ b/src/menu/PartyMenu.cpp @@ -14,6 +14,7 @@ #include "../common/GameState.h" #include "../geometry/Vector.h" #include "../graphics/Font.h" +#include "../graphics/Frame.h" #include "../graphics/Texture.h" using app::Input; @@ -73,7 +74,9 @@ void PartyMenu::UpdateWorld(float deltaT) { void PartyMenu::Render(SDL_Surface *screen) { Res().menubg->Render(screen, Vector(), Vector(screen->w, screen->h)); - RenderHeros(screen, Vector()); + RenderHeros(screen, Vector(Res().normalFont->CharWidth(), 2 * Res().normalFont->CharHeight())); + RenderMenu(screen, Vector(8 * Res().normalFont->CharWidth(), 13 * Res().normalFont->CharHeight() + Res().normalFont->CharHeight() / 8)); + RenderInfo(screen, Vector(14 * Res().normalFont->CharWidth(), 21 * Res().normalFont->CharHeight() + Res().normalFont->CharHeight() / 8)); } void PartyMenu::RenderHeros(SDL_Surface *screen, const geometry::Vector &offset) const { @@ -82,6 +85,14 @@ void PartyMenu::RenderHeros(SDL_Surface *screen, const geometry::Vector &of } } +void PartyMenu::RenderMenu(SDL_Surface *screen, const geometry::Vector &offset) const { + Res().statusFrame->Draw(screen, offset, 23 * Res().normalFont->CharWidth(), 8 * Res().normalFont->CharHeight()); +} + +void PartyMenu::RenderInfo(SDL_Surface *screen, const geometry::Vector &offset) const { + Res().statusFrame->Draw(screen, offset, 17 * Res().normalFont->CharWidth(), 5 * Res().normalFont->CharHeight()); +} + Resources &PartyMenu::Res() { return *game->menuResources;