From ccdf2c63f20f01e36eb3dbb001f372394ff83f2b Mon Sep 17 00:00:00 2001 From: lishuo Date: Wed, 20 Jul 2022 17:02:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=88=91=E7=9A=84=E6=94=B6?= =?UTF-8?q?=E8=97=8F=E9=80=89=E6=8B=A9=E9=9B=86=E5=90=88=E5=90=8E=E5=85=B6?= =?UTF-8?q?=E4=BB=96=E5=88=86=E7=B1=BB=E4=B9=9F=E6=98=BE=E7=A4=BA=E6=94=B6?= =?UTF-8?q?=E8=97=8F=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UI/Prefab/Panel/MapListExtraController.cs | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/Assets/Scripts/UI/Prefab/Panel/MapListExtraController.cs b/Assets/Scripts/UI/Prefab/Panel/MapListExtraController.cs index 730effb2..d0aa7d57 100644 --- a/Assets/Scripts/UI/Prefab/Panel/MapListExtraController.cs +++ b/Assets/Scripts/UI/Prefab/Panel/MapListExtraController.cs @@ -111,29 +111,32 @@ public class MapListExtraController : PFUIPanel } public void HandleCollection() { - if (App.CurrentRouteType == "My Collection") - { - typeSelector.gameObject.SetActive(true); - RefreshCollectList(); - } - else - { - typeSelector.gameObject.SetActive(false); - } p1.localPosition = new Vector3(p1originx, p1.localPosition.y, p1.localPosition.z); p2.localPosition = new Vector3(p2originx, p2.localPosition.y, p2.localPosition.z); typeSelector.Find("Container/Route").GetComponent().color = Utils.HexToColorHtml("#ffffff"); typeSelector.Find("Container1/Collection").GetComponent().color = Utils.HexToColorHtml("#5c5c6e"); SetImageStyle(true); HandleMobileNavCustom(true); - if (App.CurrentSubRouteType == "Route") + + if (App.CurrentRouteType == "My Collection") { - ShowRouteList(); + typeSelector.gameObject.SetActive(true); + RefreshCollectList(); + if (App.CurrentSubRouteType == "Route") + { + ShowRouteList(); + } + else + { + ShowCollectionList(); + } } else { - ShowCollectionList(); + App.CurrentSubRouteType = "Route"; + typeSelector.gameObject.SetActive(false); } + } private async void GetList() {