mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Rename variables
This commit is contained in:
parent
79b842cc24
commit
867c180ae9
@ -207,19 +207,19 @@ namespace NewHorizons.Builder.Props
|
|||||||
var name = xmlNode2.SelectSingleNode("Name").InnerText;
|
var name = xmlNode2.SelectSingleNode("Name").InnerText;
|
||||||
|
|
||||||
XmlNodeList xmlText = xmlNode2.SelectNodes("Dialogue/Page");
|
XmlNodeList xmlText = xmlNode2.SelectNodes("Dialogue/Page");
|
||||||
foreach (object Page in xmlText)
|
foreach (object page in xmlText)
|
||||||
{
|
{
|
||||||
XmlNode pageData = (XmlNode)Page;
|
XmlNode pageData = (XmlNode)page;
|
||||||
var text = pageData.InnerText;
|
var text = pageData.InnerText;
|
||||||
// The text is trimmed in DialogueText constructor (_listTextBlocks), so we also need to trim it for the key
|
// The text is trimmed in DialogueText constructor (_listTextBlocks), so we also need to trim it for the key
|
||||||
TranslationHandler.AddDialogue(text, true, name);
|
TranslationHandler.AddDialogue(text, true, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
xmlText = xmlNode2.SelectNodes("DialogueOptionsList/DialogueOption/Text");
|
xmlText = xmlNode2.SelectNodes("DialogueOptionsList/DialogueOption/Text");
|
||||||
foreach (object Page in xmlText)
|
foreach (object option in xmlText)
|
||||||
{
|
{
|
||||||
XmlNode pageData = (XmlNode)Page;
|
XmlNode optionData = (XmlNode)option;
|
||||||
var text = pageData.InnerText;
|
var text = optionData.InnerText;
|
||||||
// The text is trimmed in CharacterDialogueTree.LoadXml, so we also need to trim it for the key
|
// The text is trimmed in CharacterDialogueTree.LoadXml, so we also need to trim it for the key
|
||||||
TranslationHandler.AddDialogue(text, true, characterName, name);
|
TranslationHandler.AddDialogue(text, true, characterName, name);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user