增加英文名

This commit is contained in:
shenjianxing 2025-03-31 17:05:15 +08:00
parent a72eb84af0
commit 9ccb1a0e69
2 changed files with 5 additions and 1 deletions

View File

@ -163,6 +163,7 @@ namespace QFramework.Example
public void Refresh() public void Refresh()
{ {
PartName.text = mData.body.Name; PartName.text = mData.body.Name;
EnglishName.text = mData.body.EnglishName;
obj = Utility.FindObj(mData.body.Path); obj = Utility.FindObj(mData.body.Path);
Des.text = mData.body.Tip; Des.text = mData.body.Tip;
RefreshTipPath(); RefreshTipPath();

View File

@ -167,7 +167,9 @@ namespace XMLTool
public class Body public class Body
{ {
public string Icon { get; set; } public string Icon { get; set; }
public string Name { get; set; } public string Name { get; set; }
public string EnglishName { get; set; }
public string Path { get; set; } public string Path { get; set; }
public string Tip { get; set; } public string Tip { get; set; }
@ -403,12 +405,13 @@ namespace XMLTool
{ {
Icon = bodyElement.Attribute("icon")?.Value, Icon = bodyElement.Attribute("icon")?.Value,
Name = bodyElement.Attribute("name")?.Value, Name = bodyElement.Attribute("name")?.Value,
EnglishName = bodyElement.Attribute("englishName")?.Value,
Path = bodyElement.Attribute("path")?.Value, Path = bodyElement.Attribute("path")?.Value,
Tip = bodyElement.Attribute("tip")?.Value, Tip = bodyElement.Attribute("tip")?.Value,
Audio = bodyElement.Attribute("audio")?.Value, Audio = bodyElement.Attribute("audio")?.Value,
FocusDistance = bodyElement.Attribute("FocusDistance")?.Value FocusDistance = bodyElement.Attribute("FocusDistance")?.Value
}; };
var isShow = bodyElement.Attribute("isShow"); var isShow = bodyElement.Attribute("isShow");
if (isShow != null) if (isShow != null)
{ {