ui基本完毕,修了一大把的bug
This commit is contained in:
@@ -91,6 +91,7 @@ public class deSkillPrefab : MonoBehaviour, IPointerEnterHandler, IPointerExitHa
|
||||
string displayName,
|
||||
string detailName,
|
||||
string detailDescription,
|
||||
Sprite bottomSprite,
|
||||
Color bottomColor,
|
||||
Material iconMaterial,
|
||||
bool enableToggleValue,
|
||||
@@ -114,7 +115,15 @@ public class deSkillPrefab : MonoBehaviour, IPointerEnterHandler, IPointerExitHa
|
||||
|
||||
if (skillIcon_btm != null)
|
||||
{
|
||||
skillIcon_btm.color = bottomColor;
|
||||
if (bottomSprite != null)
|
||||
{
|
||||
skillIcon_btm.sprite = bottomSprite;
|
||||
skillIcon_btm.color = Color.white;
|
||||
}
|
||||
else
|
||||
{
|
||||
skillIcon_btm.color = bottomColor;
|
||||
}
|
||||
}
|
||||
|
||||
if (skillName != null)
|
||||
|
||||
Reference in New Issue
Block a user