移除划船机相关内容

This commit is contained in:
lishuo committed 2022-07-15 13:07:23 +08:00
1 parent 29625182c3
commit 4d0a383a88
316 files changed
+730 -69567

No files matched your search

@@ -18,7 +18,7 @@ public class ResultListController : PFUIPanel
Transform scrollContent;
Transform routeScroll, matchScroll, rowerScroll;
Transform routeContent, matchContent, rowerContent;
Transform btnRoute, btnMatch ,btnRower, searchInput;
Transform btnRoute, btnMatch , searchInput;
Color c1, c2;
// Start is called before the first frame update
int pageSize = 20;
@@ -46,7 +46,6 @@ public class ResultListController : PFUIPanel
scroll = transform.Find("ListPanel").Find("Scroll").GetComponent<ScrollRect>();
btnMatch = transform.Find("ListPanel").Find("BtnMatch");
btnRoute = transform.Find("ListPanel").Find("BtnRoute");
btnRower = transform.Find("ListPanel").Find("BtnRower");
searchInput = transform.Find("ListPanel").Find("SearchInput");
scrollContent = scroll.transform.Find("Viewport").Find("Content");
routeScroll = scrollContent.Find("RouteList");
@@ -76,14 +75,7 @@ public class ResultListController : PFUIPanel
});
//btnMatch.GetComponent<Button>().onClick.AddListener(() => StartScroll(0));
}
if (btnRower != null)
{
UIManager.AddEvent(btnRower.gameObject, EventTriggerType.PointerClick, (b) =>
{
StartScroll(2);
});
}
btns = new Transform[] { btnRoute,btnMatch,btnRower };
btns = new Transform[] { btnRoute,btnMatch };
if (searchInput != null)
{
UIManager.AddEvent(searchInput.Find("Button").gameObject, EventTriggerType.PointerClick, (b) =>
@@ -119,20 +111,6 @@ public class ResultListController : PFUIPanel
#if UNITY_ANDROID || UNITY_IOS
GetList(2);
#endif
btnRower.gameObject.SetActive(false);
// #region 划船机功能:隐藏骑行记录
//#if UNITY_ANDROID || UNITY_IOS
// btnRower.transform.localPosition = new Vector3(btnRower.transform.localPosition.x, btnRoute.transform.localPosition.y, btnRower.transform.localPosition.z);
// btnRoute.gameObject.SetActive(false);
// btnMatch.gameObject.SetActive(false);
// transform.Find("ListPanel/Line").gameObject.SetActive(false);
// transform.Find("ListPanel/Line2").gameObject.SetActive(false);
// StartScroll(2);
// //scrollContent.localPosition = new Vector3(674 * -2, scrollContent.localPosition.y, scrollContent.localPosition.z);//.DOLocalMoveX(674 * index * -1, 0.3f);
// //btnRower.GetComponent<Text>().color = Utils.HexToColor("#ffffff");
//#endif
// #endregion
}
public void Load()
@@ -211,10 +189,7 @@ public class ResultListController : PFUIPanel
{
r = await ConfigHelper.mapInterruptRecordApi.GetMapInterruptRecord(name, pageIndex[index], 20, filterOptionDict[index]);
}
else
{
r = await ConfigHelper.rowerApi.GetList(pageIndex[index], 20);
}
if (r.result)
{
if (r.data.Count == 0)
@@ -375,7 +350,5 @@ public class ResultListController : PFUIPanel
{
caches = null;
Resources.UnloadUnusedAssets();
GC.Collect();
Debug.Log("list empty");
}
}
@@ -139,18 +139,6 @@ public class RouteItem : MonoBehaviour
//UIManager.ShowRowerResult(result.Id);
});
}
btnReRide = right.Find("BtnRide");
if (btnReRide)
{
UIManager.AddEvent(btnReRide.gameObject, EventTriggerType.PointerClick, b =>
{
UIManager.ShowConfirm("Re-Rowing", "Rowing again?", () =>
{
UIManager.CloseConfirm();
UIManager.ShowRowerPanel(result);
});
});
}
}
//UIManager.AddEvent(transform.gameObject, EventTriggerType.PointerClick, b => UIManager.ShowRowerResult(result.Id));
}
@@ -270,10 +258,6 @@ public class RouteItem : MonoBehaviour
{
r = await ConfigHelper.mapApi.DeleteRecord(routeResult.Id);
}
else
{
r = await ConfigHelper.rowerApi.Delete(rowerResult.Id);
}
UIManager.CloseConfirm();
if (r.result)
{