diff --git a/Assets/Scripts/UI/UIBody3DInfo.cs b/Assets/Scripts/UI/UIBody3DInfo.cs index 64e3117e..a8648681 100644 --- a/Assets/Scripts/UI/UIBody3DInfo.cs +++ b/Assets/Scripts/UI/UIBody3DInfo.cs @@ -163,6 +163,7 @@ namespace QFramework.Example public void Refresh() { PartName.text = mData.body.Name; + EnglishName.text = mData.body.EnglishName; obj = Utility.FindObj(mData.body.Path); Des.text = mData.body.Tip; RefreshTipPath(); diff --git a/Assets/Scripts/Xml/XmlParser.cs b/Assets/Scripts/Xml/XmlParser.cs index 1d795f54..62845e9c 100644 --- a/Assets/Scripts/Xml/XmlParser.cs +++ b/Assets/Scripts/Xml/XmlParser.cs @@ -167,7 +167,9 @@ namespace XMLTool public class Body { public string Icon { get; set; } + public string Name { get; set; } + public string EnglishName { get; set; } public string Path { get; set; } public string Tip { get; set; } @@ -403,12 +405,13 @@ namespace XMLTool { Icon = bodyElement.Attribute("icon")?.Value, Name = bodyElement.Attribute("name")?.Value, + EnglishName = bodyElement.Attribute("englishName")?.Value, Path = bodyElement.Attribute("path")?.Value, Tip = bodyElement.Attribute("tip")?.Value, Audio = bodyElement.Attribute("audio")?.Value, FocusDistance = bodyElement.Attribute("FocusDistance")?.Value }; - + var isShow = bodyElement.Attribute("isShow"); if (isShow != null) {