生态书团队UI的修改以及数据的修正

This commit is contained in:
liuliang 2024-12-19 17:32:14 +08:00
parent 8e1d4ac88b
commit 0adad295c3
4 changed files with 660 additions and 1044 deletions

File diff suppressed because it is too large Load Diff

View File

@ -48,7 +48,7 @@ TextureImporter:
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 18, y: 0, z: 16, w: 0}
spriteBorder: {x: 18, y: 8, z: 16, w: 9}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1

View File

@ -5,6 +5,11 @@ using UnityEngine.UI;
public class Tree_team : MonoBehaviour
{
public Text DirectPushNum;
public Text PushNum;
public Image DirectPushFill;
public Image PushFill;
public Text TeammateCount;
public Text TeamName;
@ -19,6 +24,12 @@ public class Tree_team : MonoBehaviour
TeamName.text = info.Data.Info.Nickname;
TeamId.text = info.Data.Info.Uid;
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();
}

View File

@ -78,5 +78,5 @@ public class TreeTeamItem
public string Desc { get; set; }
public int NowVal { get; set; }
public int ReqVal { get; set; }
public string Percentage { get; set; }//百分比进度 1 = 100%
public float Percentage { get; set; }//百分比进度 1 = 100%
}