修改表结构,修改物品详情,增加物品品质描边

This commit is contained in:
2025-10-21 23:15:31 +08:00
parent 4ee5d0885c
commit af7592331b
41 changed files with 595 additions and 305 deletions

View File

@@ -1,5 +1,6 @@
using FairyGUI;
using NBC;
using UnityEngine;
namespace NBF.Utils
{
@@ -35,5 +36,29 @@ namespace NBF.Utils
{
loader.icon = id.GetIcon();
}
#region
public static Color QualityColor0 = new Color(1, 1, 1, 0);
public static Color QualityColor1 = new Color(96 / 255f, 160 / 255f, 224 / 255f, 1);
public static Color QualityColor2 = new Color(0 / 255f, 138 / 255f, 255 / 255f, 1);
public static Color QualityColor3 = new Color(126 / 255f, 0 / 255f, 255 / 255f, 1);
public static Color QualityColor4 = new Color(220 / 255f, 50 / 255f, 50 / 255f, 1);
public static Color QualityColor5 = new Color(255 / 255f, 108 / 255f, 0 / 255f, 1);
public static Color GetItemQualityColor(uint quality)
{
return quality switch
{
1 => QualityColor1,
2 => QualityColor2,
3 => QualityColor3,
4 => QualityColor4,
5 => QualityColor5,
_ => QualityColor0
};
}
#endregion
}
}