跳上传线路网页;pc分两种消息弹窗

This commit is contained in:
Caiyanpeng committed 2021-12-16 16:00:14 +08:00
1 parent 603efc7508
commit 24044ec772
19 files changed
+1642 -626

No files matched your search

@@ -103,7 +103,7 @@ public class BigMapController : PFUIPanel
{
mapManager.Destroy();
UIManager.PopStack();
UIManager.ShowMapListPanel();
UIManager.ShowNewRouteOverviewPanel();
//this.gameObject.SetActive(false);
//DestroyImmediate(this.gameObject);
});
@@ -83,9 +83,9 @@ public class EarthController : PFUIPanel
SetRounded(goList, 64);
#endif
UIManager.AddEvent(goList.Find("GoList").gameObject, EventTriggerType.PointerClick, (e) =>
{
{
//UIManager.PopStack();
UIManager.ShowMapListPanel();
UIManager.ShowNewRouteOverviewPanel();
//this.gameObject.SetActive(false);
//DestroyImmediate(this.gameObject);
});
@@ -98,6 +98,15 @@ public class MapListController : PFUIPanel
map = Resources.Load<GameObject>("UI/Prefab/MapList/MapItem-Mobile");
#else
topContainer = transform.Find("Panel").Find("Top");
#endif
#if UNITY_STANDALONE_WIN
btnMapMode = this.transform.Find("SwitchMode").gameObject;
SetRounded(btnMapMode.transform, 64);
UIManager.AddEvent(btnMapMode.transform.Find("GoList").gameObject, EventTriggerType.PointerClick, (e) =>
{
Application.OpenURL("http://192.168.0.101:3081/Mine/Upload?token="+ App.CurrentUser.cookie);
});
#endif
transform.Find("MainNav").GetComponent<MainNav>().ShowBack();
sort = "Near";
@@ -107,15 +116,7 @@ public class MapListController : PFUIPanel
// hardSelector.onValueChanged.AddListener(ChangeHard);
//}
//ApiBase.SetCookie("15A37DF28842CBA8E4E550BFA24186C8222D392F3EE18D9E95A49CC32796D2E3F6E40385C6A114942546EE1DD793DF34880DE48090B91AD2460EB887B59664BB3965F3371DDA1F1401EC7F27C5A1084566E47069F12CB6BBC0BC7A84ADC5582B");
btnMapMode = this.transform.Find("SwitchMode").gameObject;
SetRounded(btnMapMode.transform, 64);
UIManager.AddEvent(btnMapMode.transform.Find("GoList").gameObject, EventTriggerType.PointerClick, (e) =>
{
UIManager.PopStack();
//UIManager.ShowBigMapPanel();
UIManager.ShowEarthPanel(App.latitude, App.longitude);
});
if (content!=null)
{
//var transform = content.transform.GetComponent<RectTransform>();
@@ -459,7 +460,10 @@ public class MapListController : PFUIPanel
{
isRecent = true;
}
transform.Find("Panel/Top/FavContainer").gameObject.SetActive(App.CurrentRouteType != "My Collection");
#if UNITY_STANDALONE_WIN
btnMapMode.SetActive(App.CurrentRouteType == "My Upload");
#endif
topContainer.Find("FavContainer").gameObject.SetActive(App.CurrentRouteType != "My Collection");
}
void ResetList()
{
@@ -92,6 +92,8 @@ public class NewRouteDetailController : PFUIPanel
.text = string.Empty;
transform.Find("Container/Left/Infos/SlopeContainer/Text").GetComponent<Text>()
.text = string.Empty;
transform.Find("Container/Left/Desc").GetComponent<Text>()
.text = string.Empty;
if (area.BannerImage != null)
{
Utils.DisplayImageTempDict(left.Find("Icon").GetComponent<RawImage>(), area.BannerImage, caches);
@@ -124,6 +126,8 @@ public class NewRouteDetailController : PFUIPanel
.text = $"{res.data.TotalClimb.ToString("#0")}M";
transform.Find("Container/Left/Infos/SlopeContainer/Text").GetComponent<Text>()
.text = $"{res.data.AverageGrade.ToString("#0.00")}%";
transform.Find("Container/Left/Desc").GetComponent<Text>()
.text = res.data.Description;
LayoutRebuilder.ForceRebuildLayoutImmediate(transform.Find("Container/Left/RideContainer").GetComponent<RectTransform>());
}
}
@@ -56,6 +56,16 @@ public class NewRouteOverviewController: PFUIPanel
tmpGroup = Resources.Load<Transform>("UI/Prefab/NewRoute/Mobile/RouteGroup");
tmpItem = Resources.Load<Transform>("UI/Prefab/NewRoute/Mobile/RouteItem");
#endif
var btnMapMode = this.transform.Find("SwitchMode").gameObject;
SetRounded(btnMapMode.transform, 64);
UIManager.AddEvent(btnMapMode.transform.Find("GoList").gameObject, EventTriggerType.PointerClick, (e) =>
{
UIManager.PopStack();
//UIManager.ShowBigMapPanel();
UIManager.ShowEarthPanel(App.latitude, App.longitude);
});
collectionContent = transform.Find("Container/Right/Scroll View/Viewport/Content")
.GetComponent<RectTransform>();
Refresh();