]> git.localhorst.tv Git - l2e.git/commitdiff
linked equipment menu icons in battle resources
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 10 Aug 2012 14:33:46 +0000 (16:33 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 10 Aug 2012 14:33:46 +0000 (16:33 +0200)
src/battle/Resources.h
src/main.cpp

index 5e56eb322296445b1c8ddfc17f567d9ea81627a2..867915e928544e64c52a3b29334338d1c0cf8465 100644 (file)
@@ -60,6 +60,13 @@ struct Resources {
        const char *ikariMenuHeadline;
        graphics::Menu<const common::Item *> ikariMenuPrototype;
 
+       graphics::Sprite *weaponMenuIcon;
+       graphics::Sprite *armorMenuIcon;
+       graphics::Sprite *shieldMenuIcon;
+       graphics::Sprite *helmetMenuIcon;
+       graphics::Sprite *ringMenuIcon;
+       graphics::Sprite *jewelMenuIcon;
+
 
        Resources()
        : moveIcons(0)
@@ -90,6 +97,13 @@ struct Resources {
        , inventory(0)
        , itemMenuHeadline("")
        , ikariMenuHeadline("")
+
+       , weaponMenuIcon(0)
+       , armorMenuIcon(0)
+       , shieldMenuIcon(0)
+       , helmetMenuIcon(0)
+       , ringMenuIcon(0)
+       , jewelMenuIcon(0)
        { }
 
 };
index 4f50463ba258fa6102f0ab6958e011812fddb3ca..7b47f858494ee04365987522d7d4409b1f56dc87 100644 (file)
@@ -269,6 +269,13 @@ int main(int argc, char **argv) {
                Sprite ringIcon(itemIcons, 16, 16, 0, 160);
                Sprite jewelIcon(itemIcons, 16, 16, 0, 176);
 
+               battleRes.weaponMenuIcon = &swordIcon;
+               battleRes.armorMenuIcon = &armorIcon;
+               battleRes.shieldMenuIcon = &shieldIcon;
+               battleRes.helmetMenuIcon = &helmetIcon;
+               battleRes.ringMenuIcon = &ringIcon;
+               battleRes.jewelMenuIcon = &jewelIcon;
+
                Inventory inventory;
                Item antidote;
                antidote.SetName("Antidote");