增加英文名

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()
{
PartName.text = mData.body.Name;
EnglishName.text = mData.body.EnglishName;
obj = Utility.FindObj(mData.body.Path);
Des.text = mData.body.Tip;
RefreshTipPath();

View File

@ -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)
{