X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmain.cpp;h=f5d32e48495cd61b96a98b69daba2c778baecb01;hb=ad88c8db0051fd6d9082fc61a124efd407113632;hp=d9a2f57c438cb4b1dfa3685e57b8d0cd3d419b68;hpb=e16f1b77f9d7f09d232cfe34e4fc8b4be06f571d;p=l2e.git diff --git a/src/main.cpp b/src/main.cpp index d9a2f57..f5d32e4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -16,6 +16,7 @@ #include "graphics/Font.h" #include "graphics/Frame.h" #include "graphics/Gauge.h" +#include "graphics/Menu.h" #include "graphics/Sprite.h" #include "sdl/InitImage.h" #include "sdl/InitScreen.h" @@ -36,6 +37,7 @@ using geometry::Point; using graphics::Font; using graphics::Frame; using graphics::Gauge; +using graphics::Menu; using graphics::Sprite; using sdl::InitImage; using sdl::InitScreen; @@ -161,8 +163,13 @@ int main(int argc, char **argv) { normalFont.MapRange('N', 'Z', 0, 2); normalFont.MapRange('a', 'm', 0, 3); normalFont.MapRange('n', 'z', 0, 4); + normalFont.MapChar(':', 10, 0); + normalFont.MapChar('!', 10, 0); + normalFont.MapChar('?', 10, 0); battleRes.normalFont = &normalFont; + battleRes.spellMenuPrototype = Menu(&normalFont, 12, 6, 8, 2, 32); + BattleState *battleState(new BattleState(bg, monstersLayout, heroesLayout, &battleRes)); battleState->AddMonster(monster); battleState->AddMonster(monster);