]> git.localhorst.tv Git - l2e.git/blobdiff - src/menu/Resources.cpp
implemented capsule renaming
[l2e.git] / src / menu / Resources.cpp
index a355909d87b1412bba23871fdd8102a0b060e1a6..74e4ccd89512e3f458023bb4cd9235da79b2ed31 100644 (file)
@@ -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) {