倒计时的算法及界面调整
This commit is contained in:
1 parent
bea0e40ec1
commit
074200cb4f
16 files changed
+2714
-2596
No files matched your search
@@ -48,6 +48,7 @@ public class LocalRouteItem : MonoBehaviour, IPointerExitHandler, IPointerEnterH
|
||||
UIManager.AddEvent(uploadBtn.gameObject, EventTriggerType.PointerClick, (b) => GoUplaod());
|
||||
UIManager.AddEvent(deleteBtn.gameObject, EventTriggerType.PointerClick, (b) => GoDelete());
|
||||
var fileList = Directory.GetFiles(path);
|
||||
|
||||
foreach (var item in fileList)
|
||||
{
|
||||
var fileInfo = new FileInfo(item);
|
||||
@@ -73,8 +74,9 @@ public class LocalRouteItem : MonoBehaviour, IPointerExitHandler, IPointerEnterH
|
||||
var isself = record.UserId == App.CurrentUser.Id;
|
||||
if (!isself)
|
||||
{
|
||||
this.gameObject.SetActive(false);
|
||||
this.gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
Name.text = record.RouteName;
|
||||
Time.text = record.StartTime.ToString();
|
||||
RidingTime.text = $"<color={titleColor}>Riding time:</color>{record.Ticks}";
|
||||
|
||||
@@ -127,6 +127,7 @@ public class ResultListController : MonoBehaviour
|
||||
isEnd[scrollIndex] = false;
|
||||
pageIndex[scrollIndex] = 0;
|
||||
GetList();
|
||||
DisplayLocalRouteResult(contents[0], 0);//显示本地未上传成功的记录
|
||||
}
|
||||
|
||||
public void Reset()
|
||||
@@ -176,7 +177,6 @@ public class ResultListController : MonoBehaviour
|
||||
{
|
||||
isEnd[index] = false;
|
||||
DisplayRouteResult(r.data, contents[index],index);
|
||||
DisplayLocalRouteResult(contents[index], index);//显示本地未上传成功的记录
|
||||
scroll.transform.Find("Error").gameObject.SetActive(false);
|
||||
//DisplayRouteResult(r.data, matchContent);
|
||||
|
||||
|
||||
Reference in new issue
Block a user