修改nav;增加消息弹窗
This commit is contained in:
1 parent
2d38b63c91
commit
f5385e31d6
24 files changed
+2061
-1505
No files matched your search
@@ -81,6 +81,7 @@ public class MapListController : PFUIPanel
|
||||
{
|
||||
topRect.sizeDelta = new Vector2(topRect.sizeDelta.x + 20, topRect.sizeDelta.y);
|
||||
}
|
||||
|
||||
var mc = transform.Find("MC");
|
||||
UIManager.AddEvent(transform.Find("SwitchMode/BtnFilter").gameObject, EventTriggerType.PointerClick, b =>
|
||||
{
|
||||
@@ -88,11 +89,7 @@ public class MapListController : PFUIPanel
|
||||
});
|
||||
UIManager.AddEvent(mc.gameObject, EventTriggerType.PointerClick, b =>
|
||||
{
|
||||
topContainer.DOLocalMoveX(App.topRectStartX.Value, 0.3f);
|
||||
mc.GetComponent<CanvasGroup>().DOFade(0, 0.3f).onComplete = () =>
|
||||
{
|
||||
mc.gameObject.SetActive(false);
|
||||
};
|
||||
CloseFilter();
|
||||
});
|
||||
map = Resources.Load<GameObject>("UI/Prefab/MapList/MapItem-Mobile");
|
||||
Debug.Log(98);
|
||||
@@ -286,9 +283,22 @@ public class MapListController : PFUIPanel
|
||||
}
|
||||
caches = new Dictionary<string, Texture>();
|
||||
}
|
||||
|
||||
public void CloseFilter()
|
||||
{
|
||||
var mc = transform.Find("MC");
|
||||
topContainer.Find("Return").gameObject.SetActive(false);
|
||||
topContainer.DOLocalMoveX(App.topRectStartX.Value, 0.3f);
|
||||
mc.GetComponent<CanvasGroup>().DOFade(0, 0.3f).onComplete = () =>
|
||||
{
|
||||
mc.gameObject.SetActive(false);
|
||||
};
|
||||
}
|
||||
|
||||
public void OpenFilter(bool isFocusSearch = true)
|
||||
{
|
||||
#if UNITY_ANDROID || UNITY_IOS
|
||||
topContainer.Find("Return").gameObject.SetActive(true);
|
||||
var topRect = transform.Find("Top").GetComponent<RectTransform>();
|
||||
if (!App.topRectStartX.HasValue)
|
||||
{
|
||||
@@ -540,6 +550,7 @@ public class MapListController : PFUIPanel
|
||||
GetComponent<MapListExtraController>().HandleCollection();
|
||||
#if UNITY_ANDROID || UNITY_IOS
|
||||
ResetPage();
|
||||
transform.Find("Top/Return").gameObject.SetActive(false);
|
||||
#endif
|
||||
ResetPanel();
|
||||
transform.MyDOFade();
|
||||
|
||||
@@ -31,9 +31,14 @@ public class MapListExtraController : PFUIPanel
|
||||
p2originx = p2.GetComponent<RectTransform>().localPosition.x;
|
||||
#if UNITY_ANDROID || UNITY_IOS
|
||||
tmpCollectItem = Resources.Load<Transform>("UI/Prefab/NewRoute/Mobile/RouteItem");
|
||||
UIManager.AddEvent(transform.Find("Top/Return").gameObject, EventTriggerType.PointerClick, b =>
|
||||
{
|
||||
GetComponent<MapListController>().CloseFilter();
|
||||
});
|
||||
#else
|
||||
tmpCollectItem = Resources.Load<Transform>("UI/Prefab/NewRoute/RouteItem");
|
||||
#endif
|
||||
|
||||
UIManager.AddEvent(typeSelector.Find("Container/Route").gameObject, EventTriggerType.PointerClick, b =>
|
||||
{
|
||||
typeSelector.Find("Container/Route").GetComponent<Text>().color = Utils.HexToColorHtml("#ffffff");
|
||||
|
||||
Reference in new issue
Block a user