修改新设计稿,保存每次划船的影子id;修改细节,增加c2适配前暂存
This commit is contained in:
1 parent
ab653b994f
commit
e0649f7ea1
20 files changed
+4964
-4083
No files matched your search
@@ -95,7 +95,28 @@ public class RouteItem : MonoBehaviour
|
||||
row1.Find("Distance").GetComponent<Text>().text = $"<color=#5c5c6e>{App.GetLocalString("Distance")}:</color>{result.TotalDistance}M";
|
||||
row2.Find("Device").GetComponent<Text>().text = $"<color=#5c5c6e>{App.GetLocalString("Rowing equipment")}:</color>{result.ManufacturerName}";
|
||||
left.Find("Progress").gameObject.SetActive(false);
|
||||
left.Find("Main/Name").GetComponent<Text>().text = $"{result.CreateTime.ToLocalTime().ToString("yyyy-MM-dd HH:mm:ss")} Free Rowing";
|
||||
string typeStr = "Free";
|
||||
if (result.Type == 1)
|
||||
{
|
||||
typeStr = $"{result.TypeValue}M";
|
||||
}
|
||||
else if (result.Type == 2 && result.TypeValue.HasValue)
|
||||
{
|
||||
var ts = TimeSpan.FromSeconds(result.TypeValue.Value);
|
||||
if (ts.TotalHours >= 1)
|
||||
{
|
||||
typeStr = ts.TotalHours.ToString("#0.0") + "h";
|
||||
}
|
||||
else if (ts.TotalMinutes >= 1)
|
||||
{
|
||||
typeStr = ts.TotalMinutes.ToString("#0.0") + "min";
|
||||
}
|
||||
else
|
||||
{
|
||||
typeStr = result.TypeValue.Value + "s";
|
||||
}
|
||||
}
|
||||
left.Find("Main/Name").GetComponent<Text>().text = $"{result.CreateTime.ToLocalTime().ToString("yyyy-MM-dd HH:mm:ss")} {typeStr} Rowing";
|
||||
left.Find("Main/Time").GetComponent<Text>().text = $"{result.StartTime.ToLocalTime().ToString("yyyy-MM-dd HH:mm:ss")} ~ {result.CreateTime.ToLocalTime().ToString("yyyy-MM-dd HH:mm:ss")}";
|
||||
var rect = left.Find("Main").GetComponent<RectTransform>();
|
||||
rect.sizeDelta = new Vector2(399,rect.sizeDelta.y);
|
||||
|
||||
Reference in new issue
Block a user