修改细节

This commit is contained in:
Caiyanpeng committed 2021-04-25 13:35:07 +08:00
1 parent a96d538dc1
commit 048538a0c8
78 files changed
+15285 -6903

No files matched your search

@@ -25,6 +25,7 @@ namespace Assets.Scripts.UI.Prefab.MapList
{"5-10KM","5-10" },
{"10-20KM","10-20" },
{"20-30KM","20-30" },
{"30-50KM","30-50" },
{"50-100KM","50-100" },
{"100-200KM","100-200" },
{"200-无限制","200-99999" },
+6 -4
View File
@@ -122,8 +122,8 @@ public class MapItem : MonoBehaviour, IPointerExitHandler, IPointerEnterHandler
}
transform.Find("CollectImg").gameObject.SetActive(true);
transform.DOLocalMoveY(localY.Value + 5, 0.5f);
SetActive4Button(true);
SetColor(map.IsFavorite);
//SetActive4Button(true);
SetColor(true);
}
void SetActive4Button(bool b)
{
@@ -135,7 +135,7 @@ public class MapItem : MonoBehaviour, IPointerExitHandler, IPointerEnterHandler
{
transform.DOLocalMoveY(localY.Value, 0.5f);
transform.Find("CollectImg").gameObject.SetActive(false);
SetActive4Button(false);
//SetActive4Button(false);
SetColor(false);
}
private void SetColor(bool isFav)
@@ -150,6 +150,8 @@ public class MapItem : MonoBehaviour, IPointerExitHandler, IPointerEnterHandler
transform.Find("Props").Find(v).GetComponent<Text>().color = Utils.HexToColorHtml(
PropNames.colorDict[isFav]);
});
transform.Find("MapHBImg").GetComponent<RawImage>().color = Utils.HexToColorHtml(
PropNames.colorDict[isFav]);
}
async void Collect()
{
@@ -167,7 +169,7 @@ public class MapItem : MonoBehaviour, IPointerExitHandler, IPointerEnterHandler
map.IsFavorite = !map.IsFavorite;
transform.Find("CollectImg").Find("Image").GetComponent<Image>().sprite =
UIManager.Instance.collectDict[map.IsFavorite];
SetColor(map.IsFavorite);
//SetColor(map.IsFavorite);
}
else
{