mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Add comments for why we name TextAssets
This commit is contained in:
parent
f95e5774d2
commit
21ace3d11a
@ -79,6 +79,8 @@ namespace NewHorizons.Builder.Props
|
|||||||
|
|
||||||
var xml = File.ReadAllText(mod.Manifest.ModFolderPath + info.xmlFile);
|
var xml = File.ReadAllText(mod.Manifest.ModFolderPath + info.xmlFile);
|
||||||
var text = new TextAsset(xml);
|
var text = new TextAsset(xml);
|
||||||
|
|
||||||
|
// Text assets need a name to be used with VoiceMod
|
||||||
text.name = Path.GetFileNameWithoutExtension(info.xmlFile);
|
text.name = Path.GetFileNameWithoutExtension(info.xmlFile);
|
||||||
|
|
||||||
dialogueTree.SetTextXml(text);
|
dialogueTree.SetTextXml(text);
|
||||||
|
|||||||
@ -308,6 +308,8 @@ namespace NewHorizons.Builder.Props
|
|||||||
var nomaiWallText = nomaiWallTextObj.AddComponent<NomaiWallText>();
|
var nomaiWallText = nomaiWallTextObj.AddComponent<NomaiWallText>();
|
||||||
|
|
||||||
var text = new TextAsset(xmlPath);
|
var text = new TextAsset(xmlPath);
|
||||||
|
|
||||||
|
// Text assets need a name to be used with VoiceMod
|
||||||
text.name = Path.GetFileNameWithoutExtension(info.xmlFile);
|
text.name = Path.GetFileNameWithoutExtension(info.xmlFile);
|
||||||
|
|
||||||
BuildArcs(xmlPath, nomaiWallText, nomaiWallTextObj, info);
|
BuildArcs(xmlPath, nomaiWallText, nomaiWallTextObj, info);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user