集合首页和详情页

This commit is contained in:
Caiyanpeng committed 2021-12-14 18:10:58 +08:00
1 parent 16b42a19e4
commit ec4a28cd2a
66 files changed
+10600 -818

No files matched your search

@@ -1,6 +1,9 @@
using System.Collections;
using Assets.Scripts.Apis.Models;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class NewRouteGroupController : MonoBehaviour
{
@@ -15,4 +18,9 @@ public class NewRouteGroupController : MonoBehaviour
{
}
public void Initial(MapRouteArea groupItem)
{
transform.Find("Title").GetComponent<Text>().text = groupItem.Name;
}
}
@@ -0,0 +1,36 @@
using Assets.Scripts;
using Assets.Scripts.Apis.Models;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class NewRouteItemController : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public void Initial(MapRouteAreaItem area, Dictionary<string, Texture> caches = null)
{
if (area.CoverImage != null)
{
Utils.DisplayImageTempDict(GetComponent<RawImage>(), area.CoverImage, caches);
}
transform.Find("Panel/Text").GetComponent<Text>().text = area.Name;
UIManager.AddEvent(gameObject, UnityEngine.EventSystems.EventTriggerType.PointerClick, b =>
{
UIManager.ShowNewRouteDetailPanel(area);
//ConfigHelper.mapApi.GetMapRouteAreaDetail(area.Id, 0, 10);
});
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ede6683b9fc33934aae08dee1363e667
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: