中文绑定一波

This commit is contained in:
Caiyanpeng committed 2021-11-25 17:31:26 +08:00
1 parent 134dc76ec5
commit aa0c8d4fb6
9 files changed
+100 -102

No files matched your search

+7 -1
View File
@@ -66,7 +66,13 @@ namespace Assets.Scripts.UI.Control
{
//
//tooltips.GetComponent<RectTransform>().localPosition.
tooltips.transform.Find("Text").GetComponent<Text>().text = Tooltips;
tooltips.transform.Find("Text").GetComponent<Text>().text = App.GetLocalString(Tooltips);
var pftext = tooltips.transform.Find("Text").GetComponent<PFUIText>();
Debug.Log(pftext);
if (pftext)
{
tooltips.transform.Find("Text").GetComponent<PFUIText>().key = Tooltips;
}
}
tooltips.SetActive(false);
@@ -208,7 +208,7 @@ public class RaceItemScript : MonoBehaviour, IPointerExitHandler, IPointerEnterH
{
status.GetComponent<CanvasGroup>().alpha = 1;
status.Find("Text").GetComponent<Text>().text =
mapCompetition.Status == 2?"Registered":mapCompetition.StatusVlaue;
mapCompetition.Status == 2?App.GetLocalString("Registered") :mapCompetition.StatusVlaue;
}
}
if (status.GetComponent<ContentFitterController>())
@@ -326,7 +326,7 @@ public class RaceItemScript : MonoBehaviour, IPointerExitHandler, IPointerEnterH
//transform.Find("BtnContainer").gameObject.Destroy();
//SetButtonGroup(mapCompetition);
Refresh();
Utils.showToast(null, "success", type: 1);
Utils.showToast(null, "Success", type: 1);
}
else
{
@@ -346,7 +346,7 @@ public class RaceItemScript : MonoBehaviour, IPointerExitHandler, IPointerEnterH
//SetButtonGroup(mapCompetition);
App.CompetitionIdList.Remove(mapCompetition.Id);
Refresh();
Utils.showToast(null, "success", type: 1);
Utils.showToast(null, "Success", type: 1);
}
else
{