X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmenu%2FResources.cpp;h=548afc3572aae5496cd428c7b25ca9636454e44d;hb=5cbe0ba11d6fe180f49101547f05e7fe586d55c0;hp=a355909d87b1412bba23871fdd8102a0b060e1a6;hpb=7a14d357d9d05c2bac1efcdcf57365a4ce13729a;p=l2e.git diff --git a/src/menu/Resources.cpp b/src/menu/Resources.cpp index a355909..548afc3 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,22 @@ Resources::Resources() , capsuleNoAttackText(0) , capsuleNotHungryText(0) +, capsuleNameCharSelectTemplate(0) + +, capsuleSelectTopLeft(0) +, capsuleSelectTopRight(0) +, capsuleSelectTopRepeat(0) +, capsuleSelectBottomLeft(0) +, capsuleSelectBottomRight(0) +, capsuleSelectBottomRepeat(0) +, capsuleSelectLeftRepeat(0) +, capsuleSelectRightRepeat(0) +, capsuleSelectLadder(0) +, capsuleSelectCursor(0) + +, capsuleAlignmentWheel(0) +, capsuleAlignmentCursor(0) + { } @@ -225,6 +243,22 @@ 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")); + + td.AddField("capsuleSelectTopLeft", FieldDescription(((char *)&r.capsuleSelectTopLeft) - ((char *)&r), Sprite::TYPE_ID).SetReferenced()); + td.AddField("capsuleSelectTopRight", FieldDescription(((char *)&r.capsuleSelectTopRight) - ((char *)&r), Sprite::TYPE_ID).SetReferenced()); + td.AddField("capsuleSelectTopRepeat", FieldDescription(((char *)&r.capsuleSelectTopRepeat) - ((char *)&r), Sprite::TYPE_ID).SetReferenced()); + td.AddField("capsuleSelectBottomLeft", FieldDescription(((char *)&r.capsuleSelectBottomLeft) - ((char *)&r), Sprite::TYPE_ID).SetReferenced()); + td.AddField("capsuleSelectBottomRight", FieldDescription(((char *)&r.capsuleSelectBottomRight) - ((char *)&r), Sprite::TYPE_ID).SetReferenced()); + td.AddField("capsuleSelectBottomRepeat", FieldDescription(((char *)&r.capsuleSelectBottomRepeat) - ((char *)&r), Sprite::TYPE_ID).SetReferenced()); + td.AddField("capsuleSelectLeftRepeat", FieldDescription(((char *)&r.capsuleSelectLeftRepeat) - ((char *)&r), Texture::TYPE_ID).SetReferenced()); + td.AddField("capsuleSelectRightRepeat", FieldDescription(((char *)&r.capsuleSelectRightRepeat) - ((char *)&r), Texture::TYPE_ID).SetReferenced()); + td.AddField("capsuleSelectLadder", FieldDescription(((char *)&r.capsuleSelectLadder) - ((char *)&r), Sprite::TYPE_ID).SetReferenced()); + td.AddField("capsuleSelectCursor", FieldDescription(((char *)&r.capsuleSelectCursor) - ((char *)&r), Sprite::TYPE_ID).SetReferenced()); + + td.AddField("capsuleAlignmentWheel", FieldDescription(((char *)&r.capsuleAlignmentWheel) - ((char *)&r), Sprite::TYPE_ID).SetReferenced()); + td.AddField("capsuleAlignmentCursor", FieldDescription(((char *)&r.capsuleAlignmentCursor) - ((char *)&r), Sprite::TYPE_ID).SetReferenced()); } void Resources::Construct(void *data) {