中文绑定一波

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

@@ -91,7 +91,7 @@ namespace Assets.Scenes.Ride.Scripts
if (_canCancelApply)
{
CompetitionStatus.text = "Registered";
CompetitionStatus.text = App.GetLocalString("Registered");
}
else
{
@@ -288,7 +288,7 @@ namespace Assets.Scenes.Ride.Scripts
UpdateCompetition();
if (competition.Status == 4)
{
Utils.showToast(gameObject, "race close");
Utils.showToast(gameObject, "Race close");
return;
}
competitionUI = cyclingController.singleUIManager as CompetitionUIManager;
@@ -303,7 +303,7 @@ namespace Assets.Scenes.Ride.Scripts
UpdateCompetition();
if (competition.Status == 4)
{
Utils.showToast(gameObject, "race close");
Utils.showToast(gameObject, "Race close");
return;
}
//隐藏当前用户
@@ -349,7 +349,7 @@ namespace Assets.Scenes.Ride.Scripts
{
UpdateCompetition();
UIManager.UpdateJoinCompetition();
Utils.showToast(gameObject, "success", 2, 1);
Utils.showToast(gameObject, "Success", 2, 1);
}
else
{
@@ -367,7 +367,7 @@ namespace Assets.Scenes.Ride.Scripts
{
try
{
UIManager.ShowConfirm("Canel Reservation", "Do you want to cancel reservation?", async () =>
UIManager.ShowConfirm("Cancel Reservation", "Do you want to cancel reservation?", async () =>
{
MapCompetitionApi api = ConfigHelper.mapCompetitionApi;
var data = api.CancelMapCompetition(cyclingController.competition.Id);
@@ -376,7 +376,7 @@ namespace Assets.Scenes.Ride.Scripts
UpdateCompetition();
App.CompetitionIdList.Remove(cyclingController.competition.Id);
UIManager.UpdateJoinCompetition();
Utils.showToast(gameObject, "success", 2, 1);
Utils.showToast(gameObject, "Success", 2, 1);
}
else
{
+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
{
+1 -1
View File
@@ -36,7 +36,7 @@ public class Toast : MonoBehaviour
{
json.func = () => false;
}
StartCoroutine(showToastCOR(json.text, json.duration,json.func,json.showSeconds,json.endCallback));
StartCoroutine(showToastCOR(App.GetLocalString(json.text), json.duration,json.func,json.showSeconds,json.endCallback));
}
private IEnumerator showToastCOR(string text,