优化 UI 效果
This commit is contained in:
@@ -10,6 +10,7 @@ namespace SepCore.UI
|
||||
public string IconAssetName;
|
||||
public string Title;
|
||||
public ItemType ItemType;
|
||||
public string TypeName;
|
||||
public Rarity Rarity;
|
||||
public string Description;
|
||||
public int Price;
|
||||
@@ -21,6 +22,7 @@ namespace SepCore.UI
|
||||
Index = -1;
|
||||
IconAssetName = string.Empty;
|
||||
Title = string.Empty;
|
||||
TypeName = string.Empty;
|
||||
ItemType = ItemType.None;
|
||||
Rarity = Rarity.White;
|
||||
Description = string.Empty;
|
||||
@@ -43,6 +45,7 @@ namespace SepCore.UI
|
||||
var data = rawData.WeaponData;
|
||||
IconAssetName = data.Sprite;
|
||||
Title = data.Title;
|
||||
TypeName = ItemDescUtility.FormatWeaponTags(data);
|
||||
Description = ItemDescUtility.CreateWeaponDescription(data);
|
||||
}
|
||||
else if (ItemType == ItemType.Prop)
|
||||
@@ -50,6 +53,7 @@ namespace SepCore.UI
|
||||
var data = rawData.PropData;
|
||||
IconAssetName = data.IconAssetName;
|
||||
Title = data.Title;
|
||||
TypeName = "道具";
|
||||
Description = ItemDescUtility.CreatePropDescription(data);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user