中文版本
This commit is contained in:
1 parent
8e88b4adba
commit
51834b709c
85 files changed
+12545
-4847
No files matched your search
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b10ceda9bec25b14ea5e190eb9bb0341
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -73,7 +73,7 @@ namespace Assets.Scripts.Scenes
|
||||
{
|
||||
isNetWorkLose = false;
|
||||
App.delayTime = ping.time;
|
||||
Debug.Log(App.delayTime);
|
||||
//Debug.Log(App.delayTime);
|
||||
ping.DestroyPing();
|
||||
ping = null;
|
||||
}
|
||||
|
||||
@@ -1180,7 +1180,7 @@ public class LoginController : BaseScene
|
||||
else
|
||||
{
|
||||
pageNums = 4;
|
||||
signContainer.Find("signText").GetComponent<Text>().text = "RESET PASSWORD";
|
||||
signContainer.Find("signText").GetComponent<Text>().text = App.GetLocalString("RESET PASSWORD");
|
||||
wxLogin2.gameObject.SetActive(false);
|
||||
signPage1.Find("next").gameObject.SetActive(false);
|
||||
signPage1.Find("BtnModiPass").gameObject.SetActive(true);
|
||||
|
||||
@@ -222,7 +222,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
//比赛状态
|
||||
CompetitionStatus.text = competition.StatusVlaue.ToString();
|
||||
//参赛选手
|
||||
Contestant.text = competition.UserList.Count.ToString() + "Riders";
|
||||
Contestant.text = competition.UserList.Count.ToString() + App.GetLocalString("Riders");
|
||||
ShowPlayers(competition.UserList);
|
||||
//路书描述
|
||||
mapDescText.text = GetMaxString(competition.Dec, 400);
|
||||
@@ -335,7 +335,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
_raceStart = competition.Status == 3;
|
||||
_canEnter = competition.CanEnter;
|
||||
|
||||
Contestant.text = competition.UserList.Count.ToString() + "Riders";
|
||||
Contestant.text = competition.UserList.Count.ToString() + App.GetLocalString("Riders");
|
||||
ShowPlayers(competition.UserList);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
//比赛开始前倒计时
|
||||
if (count >= 0 && !competitionModel.recorderData.Saved)
|
||||
{
|
||||
ShowCountDown(count, "Get Ready!");//显示倒计时面板信息
|
||||
ShowCountDown(count, App.GetLocalString("Get Ready!"));//显示倒计时面板信息
|
||||
Timer.gameObject.SetActive(false);
|
||||
TimerTitle.gameObject.SetActive(false);
|
||||
}
|
||||
@@ -50,7 +50,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
{
|
||||
#if UNITY_IOS || UNITY_ANDROID
|
||||
//显示倒计时面板信息
|
||||
ShowCountDown(s.Item1, "Time Limit");
|
||||
ShowCountDown(s.Item1, App.GetLocalString("Time Limit"));
|
||||
#else
|
||||
ShowCountDown(s.Item1, "Get The First Place. Time Limit");
|
||||
#endif
|
||||
@@ -59,7 +59,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
{
|
||||
//显示倒计时面板信息
|
||||
//ShowCountDown(s.Item1, "remaining");
|
||||
ShowCountDown(s.Item1, "Remaining Time");
|
||||
ShowCountDown(s.Item1, App.GetLocalString("Remaining Time"));
|
||||
}
|
||||
//显示当前选手骑行时间
|
||||
Timer.gameObject.SetActive(true);
|
||||
|
||||
@@ -409,7 +409,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
heartRate.text = (currentPlayer.HeartRate ?? 0).ToString();
|
||||
candance.text = $"{Math.Round(currentPlayer.Cadance, 0)}";
|
||||
preSlopeText.text = $"{Math.Round(currentPlayer.PreSlope, 1)}%";
|
||||
currentSlopeToatalDistanceText.text = $"Total:{Math.Round(currentPlayer.CurrentDistance, 0)}M";
|
||||
currentSlopeToatalDistanceText.text = $"{App.GetLocalString("Total")}:{Math.Round(currentPlayer.CurrentDistance, 0)}M";
|
||||
//坡度相关数据
|
||||
nextSlopeText.text = Math.Round(currentPlayer.NextSlope, 1).ToString() + "%";
|
||||
//nextSlopeDistanceText.GetComponent<NumberDotween>().AnimateNum((float)playerController.NextSlopeDistance, 0, "-{0}M");
|
||||
|
||||
@@ -499,9 +499,9 @@ public class CyclingController : DeviceServiceMonoBase
|
||||
public void GameStart()
|
||||
{
|
||||
var check = CheckAnt();
|
||||
//#if UNITY_EDITOR
|
||||
// check = true;
|
||||
//#endif
|
||||
#if UNITY_EDITOR
|
||||
check = true;
|
||||
#endif
|
||||
if (check)
|
||||
{
|
||||
singleUIManager.StartRide();
|
||||
|
||||
@@ -11,6 +11,7 @@ namespace Assets.Scripts.UI.Control
|
||||
[RequireComponent(typeof(Text))]
|
||||
public class PFUIText : PFUIComponentBase
|
||||
{
|
||||
public string key;
|
||||
private Text text;
|
||||
|
||||
public string Text
|
||||
@@ -27,6 +28,28 @@ namespace Assets.Scripts.UI.Control
|
||||
protected void Awake()
|
||||
{
|
||||
text = this.transform.GetComponent<Text>();
|
||||
if (string.IsNullOrEmpty(key))
|
||||
{
|
||||
key = text.text;//默认英文内容为key值
|
||||
}
|
||||
}
|
||||
protected void Start()
|
||||
{
|
||||
Debug.Log(text.text);
|
||||
if (App.LanguageManager != null && App.LanguageManager.ContainsKey(key))
|
||||
{
|
||||
Debug.Log(text.text);
|
||||
text.text = App.LanguageManager[key];
|
||||
}
|
||||
App.ChangeLanguageEvent += App_ChangeLanguageEvent;
|
||||
}
|
||||
|
||||
private void App_ChangeLanguageEvent()
|
||||
{
|
||||
if (App.LanguageManager != null && App.LanguageManager.ContainsKey(text.text))
|
||||
{
|
||||
text.text = App.LanguageManager[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -71,8 +71,8 @@ public class Confirm : PFUIPanel
|
||||
// return;
|
||||
//}
|
||||
//text.text = txt;
|
||||
_title.Text = title;
|
||||
_content.Text = content;
|
||||
_title.Text = App.GetLocalString(title);
|
||||
_content.Text = App.GetLocalString(content);
|
||||
_callback = callback;
|
||||
_cancelCallback = cancelCallback;
|
||||
}
|
||||
|
||||
@@ -242,8 +242,8 @@ public class DeviceView : MonoBehaviour
|
||||
connectionPanel.SetActive(false);
|
||||
|
||||
logo.sprite = sprite0;
|
||||
noDevice.text = "NO DEVICE";
|
||||
searchState.text = "Searching...";
|
||||
noDevice.text = App.GetLocalString("NO DEVICE");
|
||||
searchState.text = App.GetLocalString("Searching...");
|
||||
|
||||
var hasDevice = false;
|
||||
if (SensorType == SensorType.SpeedCadence) {
|
||||
|
||||
@@ -83,10 +83,10 @@ public class RaceScript : PFUIPanel
|
||||
var map = currentItem.GetComponent<RaceItemScript>().mapCompetition;
|
||||
if (map.Status == 1)
|
||||
{
|
||||
currentItem.Find("GetReadyContainer/Title").GetComponent<Text>().text = "Start for Registration";
|
||||
currentItem.Find("GetReadyContainer/Title").GetComponent<Text>().text = App.GetLocalString("Start for Registration");
|
||||
currentItem.Find("GetReadyContainer/Value").GetComponent<Text>().text =
|
||||
map.StartApplyTime.ToLocalTime().ToString("yyyy-MM-dd HH:mm");
|
||||
currentItem.Find("GetReadyContainer-2/Title").GetComponent<Text>().text = "Deadline for Registration";
|
||||
currentItem.Find("GetReadyContainer-2/Title").GetComponent<Text>().text = App.GetLocalString("Deadline for Registration");
|
||||
currentItem.Find("GetReadyContainer-2/Value").GetComponent<Text>().text =
|
||||
map.EndApplyTime.ToLocalTime().ToString("yyyy-MM-dd HH:mm");
|
||||
|
||||
@@ -102,7 +102,7 @@ public class RaceScript : PFUIPanel
|
||||
}
|
||||
else if (map.Status == 3)
|
||||
{
|
||||
currentItem.Find("GetReadyContainer/Title").GetComponent<Text>().text = "Start Time";
|
||||
currentItem.Find("GetReadyContainer/Title").GetComponent<Text>().text = App.GetLocalString("Start Time");
|
||||
currentItem.Find("GetReadyContainer/Value").GetComponent<Text>().text =
|
||||
map.StartTime.ToLocalTime().ToString("yyyy-MM-dd HH:mm");
|
||||
}
|
||||
@@ -130,7 +130,7 @@ public class RaceScript : PFUIPanel
|
||||
{
|
||||
currentItem.Find("GetReadyContainer").GetComponent<CanvasGroup>().alpha = 1;
|
||||
currentItem.Find("GetReadyContainer/Title").GetComponent<Text>().text
|
||||
= map.HasJoin ? "Get Ready" : "Start Time";
|
||||
= App.GetLocalString(map.HasJoin ? "Get Ready" : "Start Time");
|
||||
currentItem.Find("GetReadyContainer/Value").GetComponent<Text>().text
|
||||
= map.HasJoin ? Utils.GetCountDown(time): map.StartTime.ToLocalTime().ToString("yyyy-MM-dd HH:mm");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user