X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmenu%2FResources.cpp;h=74e4ccd89512e3f458023bb4cd9235da79b2ed31;hb=9666839d0ca6c794d28226a007870c82ef4ddb20;hp=a355909d87b1412bba23871fdd8102a0b060e1a6;hpb=60e0fe29ce6cd033edc78b181d9d07fa72c11172;p=l2e.git diff --git a/src/menu/Resources.cpp b/src/menu/Resources.cpp index a355909..74e4ccd 100644 --- a/src/menu/Resources.cpp +++ b/src/menu/Resources.cpp @@ -1,5 +1,6 @@ #include "Resources.h" +#include "../graphics/CharSelect.h" #include "../graphics/Font.h" #include "../graphics/Frame.h" #include "../graphics/Menu.h" @@ -8,6 +9,7 @@ #include "../loader/Interpreter.h" #include "../loader/TypeDescription.h" +using graphics::CharSelect; using graphics::Font; using graphics::Frame; using graphics::MenuProperties; @@ -118,6 +120,8 @@ Resources::Resources() , capsuleNoAttackText(0) , capsuleNotHungryText(0) +, capsuleNameCharSelectTemplate(0) + { } @@ -225,6 +229,8 @@ void Resources::CreateTypeDescription() { td.AddField("capsuleAttack3Label", FieldDescription(((char *)&r.capsuleAttack3Label) - ((char *)&r), Interpreter::STRING_ID).SetReferenced()); td.AddField("capsuleNoAttackText", FieldDescription(((char *)&r.capsuleNoAttackText) - ((char *)&r), Interpreter::STRING_ID).SetReferenced()); td.AddField("capsuleNotHungryText", FieldDescription(((char *)&r.capsuleNotHungryText) - ((char *)&r), Interpreter::STRING_ID).SetReferenced()); + + td.AddField("capsuleNameSelect", FieldDescription(((char *)&r.capsuleNameCharSelectTemplate) - ((char *)&r), CharSelect::TYPE_ID).SetReferenced().SetDescription("properties of the letter array for changing the capsule name")); } void Resources::Construct(void *data) {