From: Daniel Karbach Date: Fri, 10 Aug 2012 14:33:46 +0000 (+0200) Subject: linked equipment menu icons in battle resources X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=cec6ebf5e666a15ffe27b0f09f9b268e2cfcdf9b;p=l2e.git linked equipment menu icons in battle resources --- diff --git a/src/battle/Resources.h b/src/battle/Resources.h index 5e56eb3..867915e 100644 --- a/src/battle/Resources.h +++ b/src/battle/Resources.h @@ -60,6 +60,13 @@ struct Resources { const char *ikariMenuHeadline; graphics::Menu 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) { } }; diff --git a/src/main.cpp b/src/main.cpp index 4f50463..7b47f85 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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");