From 9ccb1a0e695b23c929084c31dee2d13d5d587986 Mon Sep 17 00:00:00 2001 From: shenjianxing <”315615051@qq.com“> Date: Mon, 31 Mar 2025 17:05:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=8B=B1=E6=96=87=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/UI/UIBody3DInfo.cs | 1 + Assets/Scripts/Xml/XmlParser.cs | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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) {