Compare commits
2 Commits
0c36023d56
...
34af355f9d
Author | SHA1 | Date | |
---|---|---|---|
34af355f9d | |||
0adad295c3 |
File diff suppressed because it is too large
Load Diff
@ -48,7 +48,7 @@ TextureImporter:
|
|||||||
alignment: 0
|
alignment: 0
|
||||||
spritePivot: {x: 0.5, y: 0.5}
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
spritePixelsToUnits: 100
|
spritePixelsToUnits: 100
|
||||||
spriteBorder: {x: 18, y: 0, z: 16, w: 0}
|
spriteBorder: {x: 18, y: 8, z: 16, w: 9}
|
||||||
spriteGenerateFallbackPhysicsShape: 1
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
alphaUsage: 1
|
alphaUsage: 1
|
||||||
alphaIsTransparency: 1
|
alphaIsTransparency: 1
|
||||||
|
@ -5,6 +5,11 @@ using UnityEngine.UI;
|
|||||||
|
|
||||||
public class Tree_team : MonoBehaviour
|
public class Tree_team : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
public Text DirectPushNum;
|
||||||
|
public Text PushNum;
|
||||||
|
public Image DirectPushFill;
|
||||||
|
public Image PushFill;
|
||||||
|
|
||||||
|
|
||||||
public Text TeammateCount;
|
public Text TeammateCount;
|
||||||
public Text TeamName;
|
public Text TeamName;
|
||||||
@ -19,6 +24,12 @@ public class Tree_team : MonoBehaviour
|
|||||||
TeamName.text = info.Data.Info.Nickname;
|
TeamName.text = info.Data.Info.Nickname;
|
||||||
TeamId.text = info.Data.Info.Uid;
|
TeamId.text = info.Data.Info.Uid;
|
||||||
TeamCount.text = "团队人数:"+info.Data.Info.TeamCount;
|
TeamCount.text = "团队人数:"+info.Data.Info.TeamCount;
|
||||||
|
DirectPushNum.text = info.Data.Items[0].NowVal+"/" + info.Data.Items[0].ReqVal;
|
||||||
|
DirectPushFill.fillAmount = info.Data.Items[0].Percentage;
|
||||||
|
PushNum.text = info.Data.Items[0].NowVal + "/" + info.Data.Items[0].ReqVal;
|
||||||
|
PushFill.fillAmount = info.Data.Items[0].Percentage;
|
||||||
|
|
||||||
|
|
||||||
Init();
|
Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -78,5 +78,5 @@ public class TreeTeamItem
|
|||||||
public string Desc { get; set; }
|
public string Desc { get; set; }
|
||||||
public int NowVal { get; set; }
|
public int NowVal { get; set; }
|
||||||
public int ReqVal { get; set; }
|
public int ReqVal { get; set; }
|
||||||
public string Percentage { get; set; }//百分比进度 1 = 100%
|
public float Percentage { get; set; }//百分比进度 1 = 100%
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user