diff --git a/Assets/MainScene.unity b/Assets/MainScene.unity index 2c16ad3..6aae264 100644 --- a/Assets/MainScene.unity +++ b/Assets/MainScene.unity @@ -228,7 +228,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 1, y: 0} m_AnchorMax: {x: 1, y: 0} - m_AnchoredPosition: {x: -129.79, y: 27} + m_AnchoredPosition: {x: -132, y: 27} m_SizeDelta: {x: 251, y: 40.9} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &23128034 @@ -3002,7 +3002,7 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: Improve this map + m_Text: ' Improve this map' --- !u!222 &227121913 CanvasRenderer: m_ObjectHideFlags: 0 @@ -22973,7 +22973,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 130.99051, y: 60} + m_AnchoredPosition: {x: 130.99039, y: 60} m_SizeDelta: {x: 0, y: 150} m_Pivot: {x: 1, y: 1} --- !u!114 &1433522477 diff --git a/Assets/Scripts/ReadJson.cs b/Assets/Scripts/ReadJson.cs index 25805e0..e512713 100644 --- a/Assets/Scripts/ReadJson.cs +++ b/Assets/Scripts/ReadJson.cs @@ -516,7 +516,7 @@ IEnumerator RenderAfterTime(MovesJson m, bool canChangeWeight) { ValidateIfNoReapeted(); } void SpawnSummary(MovesJson.SummaryInfo summary, bool canChangeWeight) { - if (summary.group == "transport") + if (summary.group == "transport" || summary.duration < 60) return; GameObject summaryObject = Instantiate(summaryPrefab, historySpawn.transform.position, historySpawn.transform.rotation); RectTransform summaryObjectRect = summaryObject.GetComponent(); diff --git a/Assets/Scripts/SummaryItem.cs b/Assets/Scripts/SummaryItem.cs index f47beca..9f971b3 100644 --- a/Assets/Scripts/SummaryItem.cs +++ b/Assets/Scripts/SummaryItem.cs @@ -60,14 +60,14 @@ void SetupIcon() { } } void SetupTexts(bool canChangeWeight) { - if (summary.calories > 1) { - calories.gameObject.SetActive(true); + if (summary.calories > 1) { double caloriesNumber = summary.calories; if (canChangeWeight) { caloriesNumber *= SettingsBox.instance.weight; } calories.text = caloriesNumber.ToString() + "cal"; - } + } else + calories.text = "- cal"; if (summary.distance > 1) { distance.gameObject.SetActive(true); if (SettingsBox.instance.isMetric)