排行榜字体颜色修改
This commit is contained in:
parent
fc81d191f3
commit
26e6845a5d
@ -380,10 +380,10 @@ MonoBehaviour:
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 36
|
||||
m_fontSize: 65.1
|
||||
m_fontSizeBase: 36
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_enableAutoSizing: 1
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
|
@ -19,20 +19,26 @@ public class ListItem : MonoBehaviour
|
||||
SetListImage();
|
||||
ListBgImage();
|
||||
}
|
||||
|
||||
|
||||
public void SetListImage()//ÉèÅÅÃû»ÕÕ±³¾°ÑÕÉ«
|
||||
{
|
||||
if (list == 1)
|
||||
{
|
||||
listImage.sprite = Resources.Load<Sprite>("bgYello");
|
||||
|
||||
nameText.color = new UnityEngine.Color(246/255f, 194/255f, 146 / 255f);
|
||||
}
|
||||
else if (list == 2)
|
||||
{
|
||||
listImage.sprite = Resources.Load<Sprite>("bgGreen");
|
||||
|
||||
nameText.color = new UnityEngine.Color(201 / 255f, 208/255f, 144 / 255f);
|
||||
}
|
||||
else if (list == 3)
|
||||
{
|
||||
listImage.sprite = Resources.Load<Sprite>("bgBlue");
|
||||
|
||||
nameText.color = new UnityEngine.Color(144/255f, 206 / 255f, 208/255f);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user