]> git.localhorst.tv Git - l2e.git/blobdiff - src/main.cpp
added item select state
[l2e.git] / src / main.cpp
index df3def10a69daa850d8fd46b3f95755e308e686e..4335ecaee98b1315a50928a8eca565c2ea7ae9e8 100644 (file)
@@ -182,8 +182,15 @@ int main(int argc, char **argv) {
                // TODO: add '.' character
                battleRes.disabledFont = &disabledFont;
 
+               SDL_Surface *handCursorImg(IMG_Load("test-data/cursor-hand.png"));
+               Sprite handCursorSprite(handCursorImg, 32, 32);
+               battleRes.menuCursor = &handCursorSprite;
+
                battleRes.spellMenuHeadline = "Please choose a spell.";
-               battleRes.spellMenuPrototype = Menu</* Spell */ void *>(&normalFont, &disabledFont, 12, 6, 8, 2, 32);
+               battleRes.spellMenuPrototype = Menu</* Spell */ void *>(&normalFont, &disabledFont, &handCursorSprite, 12, 6, 8, 2, 32);
+
+               battleRes.itemMenuHeadline = "Please choose an item.";
+               battleRes.itemMenuPrototype = Menu</* Item */ void *>(&normalFont, &disabledFont, &handCursorSprite, 15, 6, 8, 1, 32);
 
                BattleState *battleState(new BattleState(bg, monstersLayout, heroesLayout, &battleRes));
                battleState->AddMonster(monster);