优化 UI 效果

This commit is contained in:
2026-10-03 18:30:31 +08:00
parent e0488cc790
commit 0077e3449d
89 changed files with 58194 additions and 23636 deletions
@@ -36,7 +36,7 @@ namespace SepCore.UI
View.contentRectTransform.anchoredPosition3D = _targetPos;
View.titleText.text = _context.Title;
View.typeText.text = BuildTypeText(_context.ItemType);
View.typeText.text = _context.TypeName;
View.infoText.text = _context.Description;
View.textFormatText.Set(_context.Price);
@@ -173,16 +173,5 @@ namespace SepCore.UI
float z = View.contentRectTransform.anchoredPosition3D.z;
return new Vector3(localPoint.x, localPoint.y, z);
}
private string BuildTypeText(ItemType type)
{
return type switch
{
ItemType.None => "error",
ItemType.Weapon => "武器",
ItemType.Prop => "道具",
_ => throw new ArgumentOutOfRangeException(nameof(type), type, null)
};
}
}
}