]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/Resources.cpp
added fallback for string resources
[l2e.git] / src / battle / Resources.cpp
index b3bfb76a3dc8f9bf353c7045823b7d0e1683aff3..9db29e1787809613859b1daac68faadcfd7ae8e2 100644 (file)
@@ -1,10 +1,3 @@
-/*
- * Resources.cpp
- *
- *  Created on: Sep 4, 2012
- *      Author: holy
- */
-
 #include "Resources.h"
 
 #include "../graphics/Animation.h"
@@ -59,15 +52,15 @@ Resources::Resources()
 , magicTargetCursor(0)
 , itemTargetCursor(0)
 
-, spellMenuHeadline("")
+, spellMenuHeadline("MISSING TRANSLATION")
 , spellMenuProperties(0)
-, itemMenuHeadline("")
+, itemMenuHeadline("MISSING TRANSLATION")
 , itemMenuProperties(0)
-, ikariMenuHeadline("")
+, ikariMenuHeadline("MISSING TRANSLATION")
 , ikariMenuProperties(0)
-, noEquipmentText("")
+, noEquipmentText("MISSING TRANSLATION")
 
-, escapeText("")
+, escapeText("MISSING TRANSLATION")
 
 , numberAnimationPrototype(0)
 , bigNumberSprite(0)
@@ -91,6 +84,23 @@ Resources::Resources()
 , ikariLabelCol(0)
 , ikariLabelRow(0)
 
+, victoryGetsText("MISSING TRANSLATION")
+, victoryExpText("MISSING TRANSLATION")
+, victoryGoldText("MISSING TRANSLATION")
+, victoryLevelUpText("MISSING TRANSLATION")
+, victoryUpgradeText("MISSING TRANSLATION")
+, victoryNextLevelText("MISSING TRANSLATION")
+
+, victoryMHPText("MISSING TRANSLATION")
+, victoryMMPText("MISSING TRANSLATION")
+, victoryATPText("MISSING TRANSLATION")
+, victoryDFPText("MISSING TRANSLATION")
+, victorySTRText("MISSING TRANSLATION")
+, victoryAGLText("MISSING TRANSLATION")
+, victoryINTText("MISSING TRANSLATION")
+, victoryGUTText("MISSING TRANSLATION")
+, victoryMGRText("MISSING TRANSLATION")
+
 { }
 
 
@@ -167,6 +177,23 @@ void Resources::CreateTypeDescription() {
        td.AddField("ikariLabelCol", FieldDescription(((char *)&r.ikariLabelCol) - ((char *)&r), Interpreter::NUMBER_ID).SetDescription("row of the ikari label in heroTagLabels"));
 
        td.AddField("heroesBgColor", FieldDescription(((char *)&r.heroesBgColor) - ((char *)&r), Interpreter::COLOR_ID).SetDescription("background color of the small tags during attack animation"));
+
+       td.AddField("victoryGetsText", FieldDescription(((char *)&r.victoryGetsText) - ((char *)&r), Interpreter::STRING_ID).SetReferenced());
+       td.AddField("victoryExpText", FieldDescription(((char *)&r.victoryExpText) - ((char *)&r), Interpreter::STRING_ID).SetReferenced());
+       td.AddField("victoryGoldText", FieldDescription(((char *)&r.victoryGoldText) - ((char *)&r), Interpreter::STRING_ID).SetReferenced());
+       td.AddField("victoryLevelUpText", FieldDescription(((char *)&r.victoryLevelUpText) - ((char *)&r), Interpreter::STRING_ID).SetReferenced());
+       td.AddField("victoryUpgradeText", FieldDescription(((char *)&r.victoryUpgradeText) - ((char *)&r), Interpreter::STRING_ID).SetReferenced());
+       td.AddField("victoryNextLevelText", FieldDescription(((char *)&r.victoryNextLevelText) - ((char *)&r), Interpreter::STRING_ID).SetReferenced());
+
+       td.AddField("victoryMHPText", FieldDescription(((char *)&r.victoryMHPText) - ((char *)&r), Interpreter::STRING_ID).SetReferenced());
+       td.AddField("victoryMMPText", FieldDescription(((char *)&r.victoryMMPText) - ((char *)&r), Interpreter::STRING_ID).SetReferenced());
+       td.AddField("victoryATPText", FieldDescription(((char *)&r.victoryATPText) - ((char *)&r), Interpreter::STRING_ID).SetReferenced());
+       td.AddField("victoryDFPText", FieldDescription(((char *)&r.victoryDFPText) - ((char *)&r), Interpreter::STRING_ID).SetReferenced());
+       td.AddField("victorySTRText", FieldDescription(((char *)&r.victorySTRText) - ((char *)&r), Interpreter::STRING_ID).SetReferenced());
+       td.AddField("victoryAGLText", FieldDescription(((char *)&r.victoryAGLText) - ((char *)&r), Interpreter::STRING_ID).SetReferenced());
+       td.AddField("victoryINTText", FieldDescription(((char *)&r.victoryINTText) - ((char *)&r), Interpreter::STRING_ID).SetReferenced());
+       td.AddField("victoryGUTText", FieldDescription(((char *)&r.victoryGUTText) - ((char *)&r), Interpreter::STRING_ID).SetReferenced());
+       td.AddField("victoryMGRText", FieldDescription(((char *)&r.victoryMGRText) - ((char *)&r), Interpreter::STRING_ID).SetReferenced());
 }
 
 void Resources::Construct(void *data) {