fb分享;比赛页面箭头去了

This commit is contained in:
Caiyanpeng committed 2022-01-13 15:35:57 +08:00
1 parent 7a7c1ee55c
commit 4d5523e2ff
9 files changed
+547 -430

No files matched your search

@@ -76,12 +76,7 @@ public class RaceHomeScript : RaceScript
#else
btnGoList = rightContainer.Find("BtnGoList");
var nav = transform.Find("Tmp/MainNav-mobile").GetComponent<NewMainNav>();
nav.SetButtonActive(new List<int> { 2, 3, 4, 6, 7 }, 2,
custom: new NewMainNav.CustomButton(Resources.Load<Sprite>("Images/Race/back down"), () =>
{
//OpenFilter();
UIManager.ShowRaceListPanel();
}));
nav.SetButtonActive(new List<int> { 2, 3, 4, 6, 7 }, 2);
newNav = nav;
#endif
if (btnGoList != null)
+31 -14
View File
@@ -232,37 +232,54 @@ public class RaceListScript : RaceScript
var mc = transform.Find("MC");
UIManager.AddEvent(transform.Find("SwitchMode/BtnFilter").gameObject, EventTriggerType.PointerClick, b =>
{
conditions.DOLocalMoveX(App.topRectStartX.Value + topRect.rect.width, 0.3f);
mc.gameObject.SetActive(true);
mc.GetComponent<CanvasGroup>().alpha = 0;
mc.GetComponent<CanvasGroup>().DOFade(1, 0.3f);
});
transform.Find("Conditions/Return").gameObject.SetActive(false);
UIManager.AddEvent(mc.gameObject, EventTriggerType.PointerClick, b =>
{
conditions.DOLocalMoveX(App.topRectStartX.Value, 0.3f);
mc.GetComponent<CanvasGroup>().DOFade(0, 0.3f).onComplete = () =>
{
mc.gameObject.SetActive(false);
};
CloseFilter();
});
UIManager.AddEvent(transform.Find("Conditions/Return").gameObject, EventTriggerType.PointerClick, b =>
{
CloseFilter();
});
var nav = transform.Find("Tmp/MainNav-mobile").GetComponent<NewMainNav>();
nav.SetButtonActive(new List<int> { 0, 3, 4, 6, 7 }, 0,
custom: new NewMainNav.CustomButton(Resources.Load<Sprite>("Images/Mobile/map_筛选"), () =>
{
//OpenFilter();
conditions.DOLocalMoveX(App.topRectStartX.Value + topRect.rect.width, 0.3f);
mc.gameObject.SetActive(true);
mc.GetComponent<CanvasGroup>().alpha = 0;
mc.GetComponent<CanvasGroup>().DOFade(1, 0.3f);
}),custom2:new NewMainNav.CustomButton(Resources.Load<Sprite>("Images/Race/back up"),()=>
{
UIManager.ShowPrePanel();
OpenFilter();
}));
newNav = nav;
#else
#endif
}
private void OpenFilter()
{
var topRect = conditions.GetComponent<RectTransform>();
var mc = transform.Find("MC");
transform.Find("Conditions/Return").gameObject.SetActive(true);
conditions.DOLocalMoveX(App.topRectStartX.Value + topRect.rect.width, 0.3f);
mc.gameObject.SetActive(true);
mc.GetComponent<CanvasGroup>().alpha = 0;
mc.GetComponent<CanvasGroup>().DOFade(1, 0.3f);
}
private void CloseFilter()
{
var mc = transform.Find("MC");
transform.Find("Conditions/Return").gameObject.SetActive(false);
conditions.DOLocalMoveX(App.topRectStartX.Value, 0.3f);
mc.GetComponent<CanvasGroup>().DOFade(0, 0.3f).onComplete = () =>
{
mc.gameObject.SetActive(false);
};
}
private async Task Login()
{
var result = await ConfigHelper.userApi.Login("13115011550", "laozhong", "");