汉化微调&赛事相关中文版本样式调整
This commit is contained in:
1 parent
aff636f9a8
commit
cc6730cbc4
16 files changed
+1615
-1409
No files matched your search
@@ -53,10 +53,11 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
{
|
||||
Close.gameObject.SetActive(false);
|
||||
isUsed = false;
|
||||
Name.text = "New Shadow";
|
||||
Name.text = App.GetLocalString("New Shadow");
|
||||
var defaultexture = Resources.Load<Sprite>("Images/Ride/head~").texture;
|
||||
Head.texture = defaultexture;
|
||||
RankingId = string.Empty;
|
||||
Name.color = new Color(0.3607843f, 0.3607843f, 0.4313726f, 1);
|
||||
}
|
||||
public void SetHead(Texture texture, bool select)
|
||||
{
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
public void Set(DateTime startTime, DateTime now,string title, string sceneName, int competitionId,int routeId)
|
||||
{
|
||||
ticks = (int)(startTime - now).TotalSeconds;
|
||||
var content = $"Your <color='#F93086'>{Helper.SubStr(title,10)}</color> race about to start";
|
||||
var content = App.GetLocalLanguage().Equals("en")? $"Your <color='#F93086'>{Helper.SubStr(title,10)}</color> race about to start": $"你参与的 <color='#F93086'>{Helper.SubStr(title, 10)}</color> 比赛即将开始!";
|
||||
Content.text = content;
|
||||
CompetitionId = competitionId;
|
||||
RouteId = routeId;
|
||||
|
||||
@@ -175,6 +175,10 @@ public class RaceListScript : RaceScript
|
||||
searchInput = transform.Find("Conditions/SearchInput");
|
||||
if (searchInput != null)
|
||||
{
|
||||
searchInput.GetComponent<InputField>().onEndEdit.AddListener((t) =>
|
||||
{
|
||||
raceName = t;
|
||||
});
|
||||
UIManager.AddEvent(searchInput.Find("Button").gameObject, EventTriggerType.PointerClick, (b) =>
|
||||
{
|
||||
var t = searchInput.GetComponent<InputField>().text;
|
||||
|
||||
Reference in new issue
Block a user