调整样式
This commit is contained in:
1 parent
19766db051
commit
f065bf4bbb
43 files changed
+2290
-3097
No files matched your search
@@ -39,6 +39,7 @@ public class BigMapController : PFUIPanel
|
||||
begin = Resources.Load("UI/Prefab/BigMap/Begin");
|
||||
|
||||
mapManager = this.transform.Find("Map").GetComponent<AbstractMap>();
|
||||
mapManager.MaxZoom = 4;
|
||||
mapManager.OnInitialized += MapManager_OnInitialized;
|
||||
mapManager.OnUpdated += MapManager_OnUpdated;
|
||||
|
||||
@@ -57,7 +58,7 @@ public class BigMapController : PFUIPanel
|
||||
mapManager.Destroy();
|
||||
UIManager.ShowMapListPanel();
|
||||
//this.gameObject.SetActive(false);
|
||||
DestroyImmediate(this.gameObject);
|
||||
//DestroyImmediate(this.gameObject);
|
||||
});
|
||||
|
||||
var panel = canvas.transform.Find("Panel");
|
||||
@@ -91,7 +92,7 @@ public class BigMapController : PFUIPanel
|
||||
|
||||
UIManager.AddEvent(headImage.gameObject, EventTriggerType.PointerClick, (e) =>
|
||||
{
|
||||
UIManager.ShowEditUserPanel();
|
||||
UIManager.ShowUserInfoPanel();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -126,6 +127,8 @@ public class BigMapController : PFUIPanel
|
||||
}
|
||||
private void MapManager_OnUpdated()
|
||||
{
|
||||
Debug.Log("update");
|
||||
|
||||
foreach (var item in linesCache)
|
||||
{
|
||||
//if(item.Value.LineObject != null)
|
||||
|
||||
@@ -40,14 +40,19 @@ public class DeviceController : PFUIPanel
|
||||
//UIManager.CloseModal();
|
||||
this.Close();
|
||||
}));
|
||||
//UIManager.AddEvent(mReturnBtn.gameObject, EventTriggerType.PointerUp, (e) =>
|
||||
//{
|
||||
// Debug.Log("aaaaaaaaaaaaaa");
|
||||
//});
|
||||
|
||||
var bg = this.transform.Find("Status").Find("Bg");
|
||||
antStatus = bg.Find("Ant+").GetComponent<Image>();
|
||||
|
||||
ant0 = Resources.Load<Sprite>("Images/ANT+_0");
|
||||
ant1 = Resources.Load<Sprite>("Images/ANT+_1");
|
||||
ant1 = Resources.Load<Sprite>("Images/ANT+_2");
|
||||
|
||||
Debug.Log("device start");
|
||||
|
||||
base.SetRounded(bg, 64);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -100,9 +100,10 @@ public class HomeController : PFUIPanel
|
||||
userInfo.Find("GroupTop").Find("FtpContainer").Find("FtpValue").GetComponent<Text>().text = App.CurrentUser.FTP.ToString();
|
||||
userInfo.Find("GroupTop").Find("WeightContainer").Find("WeightValue").GetComponent<Text>().text = App.CurrentUser.Weight.ToString();
|
||||
userInfo.Find("GroupTop").Find("WKGContainer").Find("WKGValue").GetComponent<Text>().text = $"{App.CurrentUser.Weight}kg/{App.CurrentUser.BicycleWeight}kg";
|
||||
userInfo.Find("CaloriesContainer").Find("CaloriesValue").GetComponent<Text>().text = summary.Kcal;
|
||||
userInfo.Find("KMContainer").Find("KMValue").GetComponent<Text>().text = summary.TotalDistance.ToString();
|
||||
userInfo.Find("ClimbContainer").Find("ClimbValue").GetComponent<Text>().text = summary.TotalClimb;
|
||||
userInfo.Find("CaloriesContainer").Find("CaloriesValue").GetComponent<Text>().text = summary.Kcal +" KCAL";
|
||||
userInfo.Find("KMContainer").Find("KMValue").GetComponent<Text>().text = summary.TotalDistance.ToString("0") +" KM";
|
||||
userInfo.Find("ClimbContainer").Find("ClimbValue").GetComponent<Text>().text = summary.TotalClimb +" M";
|
||||
userInfo.Find("IDText").GetComponent<Text>().text = "ID:"+App.CurrentUser.Id;
|
||||
//var user = ConfigHelper.CurrentUser;
|
||||
//Ftp.text = summary.Ftp.ToString();
|
||||
//Weight.text = user.Weight.ToString();
|
||||
@@ -148,4 +149,9 @@ public class HomeController : PFUIPanel
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void Show()
|
||||
{
|
||||
base.Show();
|
||||
}
|
||||
}
|
||||
@@ -205,7 +205,7 @@ public class MapListController : PFUIPanel
|
||||
|
||||
UIManager.AddEvent(headImage.gameObject, EventTriggerType.PointerClick, (e) =>
|
||||
{
|
||||
UIManager.ShowEditUserPanel();
|
||||
UIManager.ShowUserInfoPanel();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user