Commit d93da2fc authored by SherryChaos's avatar SherryChaos

adjust translation

parent aa60e631
......@@ -14970,7 +14970,7 @@ MonoBehaviour:
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: "LP\uFF1A"
m_Text: "\u57FA\u672C\u5206\uFF1A"
--- !u!222 &295256969
CanvasRenderer:
m_ObjectHideFlags: 0
......@@ -7386,7 +7386,7 @@ MonoBehaviour:
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: "\u5176\u4ED6"
m_Text: "\u5176\u5B83"
--- !u!1 &7739551655930817060
GameObject:
m_ObjectHideFlags: 0
......@@ -26,7 +26,7 @@ namespace MDPro3
public PercyOCG()
{
_buffer = Marshal.AllocHGlobal(1024 * 256); // 256 KiB
error = InterString.Get("YGOPro1旧版的录像崩溃了!您可以选择使用永不崩溃的新版录像。");
error = InterString.Get("YGOPro旧版的回放崩溃了!您可以选择使用永不崩溃的新版回放。");
ygopro = new Ygopro(ReceiveHandler, CardHandler, ScriptHandler, ChatHandler);
//ygopro.m_log = a => UnityEngine.Debug.Log(a);
}
......
......@@ -36,7 +36,7 @@ namespace MDPro3
var result = www.downloadHandler.text;
var lines = result.Replace("\r", "").Split('\n');
if (Application.version != lines[0])
MessageManager.Cast(InterString.Get("检测到新版本。"));
MessageManager.Cast(InterString.Get("检测到新版本[[?]]。", lines[0]));
}
catch
{
......
......@@ -233,7 +233,7 @@ namespace MDPro3
{
var selections = new List<string>()
{
InterString.Get("存录像"),
InterString.Get("存回放"),
InterString.Get("保存"),
InterString.Get("放弃"),
Tools.GetTimeString()
......@@ -1469,7 +1469,7 @@ namespace MDPro3
//Start 决斗改名
//AiName 残局改名
//sibyl_name 像改名
//sibyl_name 回放改名
private void PracticalizeMessage(Package p)
{
......@@ -1643,7 +1643,7 @@ namespace MDPro3
{
selections = new List<string>()
{
InterString.Get("存录像"),
InterString.Get("存回放"),
InterString.Get("保存"),
InterString.Get("放弃"),
Tools.GetTimeString()
......
......@@ -121,7 +121,7 @@ namespace MDPro3
{
if (god)
{
MessageManager.Cast(InterString.Get("您正在观看旧版的录像(上帝视角),不保证稳定性。"));
MessageManager.Cast(InterString.Get("您正在观看旧版的回放(上帝视角),不保证稳定性。"));
percy?.Dispose();
percy = new PercyOCG();
var replays = GetYRPBuffer(fileName);
......@@ -136,7 +136,7 @@ namespace MDPro3
}
else
{
MessageManager.Cast(InterString.Get("您正在观看旧版的录像(上帝视角),不保证稳定性。"));
MessageManager.Cast(InterString.Get("您正在观看旧版的回放(上帝视角),不保证稳定性。"));
percy?.Dispose();
percy = new PercyOCG();
var collections = TcpHelper.GetPackages(percy.ygopro.GetYRP3dBuffer(GetYRP(File.ReadAllBytes(fileName))));
......@@ -145,7 +145,7 @@ namespace MDPro3
}
catch
{
MessageManager.Cast(InterString.Get("录像没有录制完整。"));
MessageManager.Cast(InterString.Get("回放没有录制完整。"));
}
}
List<byte[]> GetYRPBuffer(string path)
......
......@@ -45,8 +45,6 @@ namespace MDPro3
returnServant = Program.I().menu;
base.Initialize();
btnDeck.transform.GetChild(0).GetComponent<Text>().text = Config.Get("DeckInUse", "@ui");
if(btnDeck.transform.GetChild(0).GetComponent<Text>().text.Contains(" "))
btnDeck.transform.GetChild(0).GetComponent<Text>().text = string.Empty;
btnDeck.SetActive(false);
Load();
}
......@@ -158,12 +156,13 @@ namespace MDPro3
string aiCommand = bot.command;
if (aiCode == 4)
{
if(btnDeck.transform.GetChild(0).GetComponent<Text>().text == string.Empty)
string selectedDeck = btnDeck.transform.GetChild(0).GetComponent<Text>().text;
if (!File.Exists("Deck/" + selectedDeck + ".ydk"))
{
MessageManager.Cast(InterString.Get("ѡ顣"));
MessageManager.Cast(InterString.Get("请先为AI选择有效的卡组。"));
return;
}
aiCommand += " DeckFile=" + btnDeck.transform.GetChild(0).GetComponent<Text>().text;
aiCommand += " DeckFile=\"" + btnDeck.transform.GetChild(0).GetComponent<Text>().text + "\"";
}
Match match = Regex.Match(aiCommand, "Random=(\\w+)");
if (match.Success)
......
......@@ -170,6 +170,8 @@ namespace MDPro3
}
}
result.Add(input.Substring(start));
for (int i = 0; i < result.Count; i++)
result[i] = result[i].Replace("\"", "");
return result.ToArray();
}
}
......
......@@ -152,11 +152,6 @@ namespace MDPro3.UI
}
else if (SelectDeck.state == SelectDeck.State.ForSolo)
{
if(deckName.Contains(" "))
{
MessageManager.Cast(InterString.Get("给AI用的卡组的卡组名中不能包含空格。"));
return;
}
Program.I().ShiftToServant(Program.I().solo);
Program.I().solo.btnDeck.transform.GetChild(0).GetComponent<Text>().text = deckName;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment