中文调整
This commit is contained in:
1 parent
265430053a
commit
23e5ae6ebd
13 files changed
+1865
-1534
No files matched your search
@@ -35,10 +35,10 @@ namespace Assets.Scripts.UI.Control
|
||||
}
|
||||
protected void Start()
|
||||
{
|
||||
Debug.Log(text.text);
|
||||
//Debug.Log(text.text);
|
||||
if (App.LanguageManager != null && App.LanguageManager.ContainsKey(key))
|
||||
{
|
||||
Debug.Log(text.text);
|
||||
//Debug.Log(text.text);
|
||||
text.text = App.LanguageManager[key];
|
||||
}
|
||||
App.ChangeLanguageEvent += App_ChangeLanguageEvent;
|
||||
|
||||
@@ -83,7 +83,7 @@ public class ConnectDeviceModal : PFUIPanel
|
||||
|
||||
UIManager.AddEvent(connectBtn.gameObject, EventTriggerType.PointerClick, new UnityEngine.Events.UnityAction<BaseEventData>(e =>
|
||||
{
|
||||
if (!connectBtnText.text.Equals("DISCONNECT"))
|
||||
if (!connectBtnText.text.Equals(App.GetLocalString("DISCONNECT")))
|
||||
{
|
||||
foreach (var item in deviceList)
|
||||
{
|
||||
@@ -208,11 +208,13 @@ public class ConnectDeviceModal : PFUIPanel
|
||||
var nontrainer = deviceItemObj.DeviceInfo.Sensor != SensorType.Trainer && SensorType != SensorType.Trainer && deviceItemObj.DeviceInfo.State == DeviceState.Connected;
|
||||
if (trainer || nontrainer)
|
||||
{
|
||||
connectBtnText.text = "DISCONNECT";
|
||||
connectBtnText.text = App.GetLocalString("DISCONNECT");
|
||||
connectBtnText.GetComponent<PFUIText>().key = "DISCONNECT";
|
||||
}
|
||||
else
|
||||
{
|
||||
connectBtnText.text = "CONNECT";
|
||||
connectBtnText.text = App.GetLocalString("CONNECT");
|
||||
connectBtnText.GetComponent<PFUIText>().key = "CONNECT";
|
||||
}
|
||||
|
||||
foreach (var item in deviceList)
|
||||
@@ -248,10 +250,12 @@ public class ConnectDeviceModal : PFUIPanel
|
||||
if(trainer || nontrainer)
|
||||
{
|
||||
connectBtnText.text = App.GetLocalString("DISCONNECT");
|
||||
connectBtnText.GetComponent<PFUIText>().key = "DISCONNECT";
|
||||
}
|
||||
else
|
||||
{
|
||||
connectBtnText.text = App.GetLocalString("CONNECT");
|
||||
connectBtnText.GetComponent<PFUIText>().key = "CONNECT";
|
||||
}
|
||||
//connectBtn.text.text = "DISCOUNECT";
|
||||
noDevice.text = firstDevice.DeviceInfo.Name;
|
||||
|
||||
@@ -286,7 +286,7 @@ public class DeviceView : MonoBehaviour
|
||||
else {
|
||||
hasDevice = App.MainDeviceAdapter.GetDevices().Any(d => d.Sensor == SensorType);
|
||||
}
|
||||
Debug.Log(hasDevice);
|
||||
//Debug.Log(hasDevice);
|
||||
if (hasDevice)
|
||||
{
|
||||
mSearchButton.SetActive(false);
|
||||
|
||||
@@ -128,6 +128,7 @@ public class EarthController : PFUIPanel
|
||||
map.OnCountryEnter += (int countryIndex, int regionIndex) =>
|
||||
{
|
||||
map.autoRotationSpeed = 0f;
|
||||
|
||||
var country = map.countries[countryIndex];
|
||||
if (country.name.ToLower().Contains("taiwan"))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user