Commit 8d6b3879 authored by SherryChaos's avatar SherryChaos

translation bug fix

parent b00e71a9
...@@ -30,9 +30,9 @@ RectTransform: ...@@ -30,9 +30,9 @@ RectTransform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 6305648746385571272} m_Father: {fileID: 6305648746385571272}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1}
...@@ -178,9 +178,9 @@ RectTransform: ...@@ -178,9 +178,9 @@ RectTransform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 6305648746225455783} m_Father: {fileID: 6305648746225455783}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 0} m_AnchorMax: {x: 1, y: 0}
...@@ -255,13 +255,13 @@ RectTransform: ...@@ -255,13 +255,13 @@ RectTransform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: m_Children:
- {fileID: 6305648746225455783} - {fileID: 6305648746225455783}
- {fileID: 6305648746066734664} - {fileID: 6305648746066734664}
- {fileID: 6305648746458738646} - {fileID: 6305648746458738646}
- {fileID: 6305648746398079749} - {fileID: 6305648746398079749}
m_Father: {fileID: 6305648747176641661} m_Father: {fileID: 6305648747176641661}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1}
...@@ -280,7 +280,7 @@ GameObject: ...@@ -280,7 +280,7 @@ GameObject:
- component: {fileID: 6305648745631350305} - component: {fileID: 6305648745631350305}
- component: {fileID: 6305648745631350334} - component: {fileID: 6305648745631350334}
m_Layer: 5 m_Layer: 5
m_Name: Text m_Name: '#Text'
m_TagString: Untagged m_TagString: Untagged
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
...@@ -296,9 +296,9 @@ RectTransform: ...@@ -296,9 +296,9 @@ RectTransform:
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 6305648747174983254} m_Father: {fileID: 6305648747174983254}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5}
...@@ -375,11 +375,11 @@ RectTransform: ...@@ -375,11 +375,11 @@ RectTransform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: m_Children:
- {fileID: 6305648746484835619} - {fileID: 6305648746484835619}
- {fileID: 6305648746177535860} - {fileID: 6305648746177535860}
m_Father: {fileID: 6305648745328750899} m_Father: {fileID: 6305648745328750899}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0.5} m_AnchorMin: {x: 0, y: 0.5}
m_AnchorMax: {x: 1, y: 0.5} m_AnchorMax: {x: 1, y: 0.5}
...@@ -452,9 +452,9 @@ RectTransform: ...@@ -452,9 +452,9 @@ RectTransform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 6305648746225455783} m_Father: {fileID: 6305648746225455783}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 0} m_AnchorMax: {x: 1, y: 0}
...@@ -527,9 +527,9 @@ RectTransform: ...@@ -527,9 +527,9 @@ RectTransform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 6305648746066734664} m_Father: {fileID: 6305648746066734664}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1}
...@@ -606,11 +606,11 @@ RectTransform: ...@@ -606,11 +606,11 @@ RectTransform:
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: m_Children:
- {fileID: 6305648746082042701} - {fileID: 6305648746082042701}
- {fileID: 6305648745316138392} - {fileID: 6305648745316138392}
m_Father: {fileID: 6305648745328750899} m_Father: {fileID: 6305648745328750899}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1}
...@@ -682,11 +682,11 @@ RectTransform: ...@@ -682,11 +682,11 @@ RectTransform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: m_Children:
- {fileID: 7776129882806202646} - {fileID: 7776129882806202646}
- {fileID: 6305648747176641661} - {fileID: 6305648747176641661}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1}
...@@ -742,9 +742,9 @@ RectTransform: ...@@ -742,9 +742,9 @@ RectTransform:
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 6305648745328750899} m_Father: {fileID: 6305648745328750899}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1}
...@@ -817,10 +817,10 @@ RectTransform: ...@@ -817,10 +817,10 @@ RectTransform:
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: m_Children:
- {fileID: 6305648747174983254} - {fileID: 6305648747174983254}
m_Father: {fileID: 6305648745328750899} m_Father: {fileID: 6305648745328750899}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 0} m_AnchorMax: {x: 1, y: 0}
...@@ -893,9 +893,9 @@ RectTransform: ...@@ -893,9 +893,9 @@ RectTransform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 6305648746066734664} m_Father: {fileID: 6305648746066734664}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1}
...@@ -968,10 +968,10 @@ RectTransform: ...@@ -968,10 +968,10 @@ RectTransform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: m_Children:
- {fileID: 6305648747218796591} - {fileID: 6305648747218796591}
m_Father: {fileID: 6305648747176641661} m_Father: {fileID: 6305648747176641661}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1}
...@@ -1046,10 +1046,10 @@ RectTransform: ...@@ -1046,10 +1046,10 @@ RectTransform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: m_Children:
- {fileID: 6305648745631350335} - {fileID: 6305648745631350335}
m_Father: {fileID: 6305648746458738646} m_Father: {fileID: 6305648746458738646}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 1} m_AnchorMin: {x: 0.5, y: 1}
m_AnchorMax: {x: 0.5, y: 1} m_AnchorMax: {x: 0.5, y: 1}
...@@ -1192,11 +1192,11 @@ RectTransform: ...@@ -1192,11 +1192,11 @@ RectTransform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: m_Children:
- {fileID: 6305648746763370051} - {fileID: 6305648746763370051}
- {fileID: 6305648745328750899} - {fileID: 6305648745328750899}
m_Father: {fileID: 6305648746385571272} m_Father: {fileID: 6305648746385571272}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5}
...@@ -1231,9 +1231,9 @@ RectTransform: ...@@ -1231,9 +1231,9 @@ RectTransform:
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 6305648746763370051} m_Father: {fileID: 6305648746763370051}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1}
......
...@@ -60,18 +60,26 @@ namespace MDPro3 ...@@ -60,18 +60,26 @@ namespace MDPro3
cards.Clear(); cards.Clear();
for (int i = 0; i < dirInfos.Length; i++) for (int i = 0; i < dirInfos.Length; i++)
{ {
Card card = CardsManager.Get(int.Parse(dirInfos[i].Name)); try
cards.Add(card); {
codes.Add(card.Id); Card card = CardsManager.Get(int.Parse(dirInfos[i].Name));
cards.Add(card);
codes.Add(card.Id);
}
catch { }
} }
for (int i = 0; i < fileInfos.Length; i++) for (int i = 0; i < fileInfos.Length; i++)
{ {
Card card = CardsManager.Get(int.Parse(fileInfos[i].Name)); try
if (!cards.Contains(card))
{ {
cards.Add(card); Card card = CardsManager.Get(int.Parse(fileInfos[i].Name));
codes2.Add(card.Id); if (!cards.Contains(card))
{
cards.Add(card);
codes2.Add(card.Id);
}
} }
catch { }
} }
cards.Sort(CardsManager.ComparisonOfCard()); cards.Sort(CardsManager.ComparisonOfCard());
Print(); Print();
......
...@@ -880,7 +880,7 @@ namespace MDPro3 ...@@ -880,7 +880,7 @@ namespace MDPro3
break; break;
case 2: case 2:
var flag = code >> 28; var flag = code >> 28;
code = code & 0xFFFFFFF; code &= 0xFFFFFFF;
var cardName = CardsManager.Get(code).Name; var cardName = CardsManager.Get(code).Name;
List<string> tasks = new List<string>() { StringHelper.GetUnsafe(1406) }; List<string> tasks = new List<string>() { StringHelper.GetUnsafe(1406) };
var task = ""; var task = "";
...@@ -898,13 +898,18 @@ namespace MDPro3 ...@@ -898,13 +898,18 @@ namespace MDPro3
task = StringHelper.GetUnsafe(1411 + flag); task = StringHelper.GetUnsafe(1411 + flag);
replace = new Regex("%ls"); replace = new Regex("%ls");
task = replace.Replace(task, cardName); task = replace.Replace(task, cardName);
if(flag == 4)
{
replace = new Regex("%d");
task = replace.Replace(task, code.ToString());
}
break; break;
case 6: case 6:
case 7: case 7:
case 8: case 8:
case 9: case 9:
task = StringHelper.GetUnsafe(1411 + flag); task = StringHelper.GetUnsafe(1411 + flag);
replace = new Regex("%ls"); replace = new Regex("%d");
var target = ""; var target = "";
if (flag == 6) if (flag == 6)
target = deck.Main.Count.ToString(); target = deck.Main.Count.ToString();
...@@ -918,21 +923,20 @@ namespace MDPro3 ...@@ -918,21 +923,20 @@ namespace MDPro3
task = StringHelper.GetUnsafe(1406); task = StringHelper.GetUnsafe(1406);
break; break;
} }
task = task.Replace("(%d)", ""); //task = task.Replace("(%d)", "");
tasks.Add(task); tasks.Add(task);
UIManager.ShowPopupConfirm(tasks); UIManager.ShowPopupConfirm(tasks);
break; break;
case 3: case 3:
tasks = new List<string>() tasks = new List<string>()
{ {
StringHelper.GetUnsafe(1408), StringHelper.GetUnsafe(1408),
StringHelper.GetUnsafe(1410), StringHelper.GetUnsafe(1410),
}; };
UIManager.ShowPopupConfirm(tasks); UIManager.ShowPopupConfirm(tasks);
break; break;
case 4: case 4:
Debug.Log("ERROR 4: " + code); Debug.Log("ERROR 4: " + code);
break; break;
} }
} }
......
...@@ -551,7 +551,7 @@ PlayerSettings: ...@@ -551,7 +551,7 @@ PlayerSettings:
m_APIs: 0b000000 m_APIs: 0b000000
m_Automatic: 1 m_Automatic: 1
- m_BuildTarget: WindowsStandaloneSupport - m_BuildTarget: WindowsStandaloneSupport
m_APIs: 1500000002000000 m_APIs: 0200000015000000
m_Automatic: 0 m_Automatic: 0
m_BuildTargetVRSettings: m_BuildTargetVRSettings:
- m_BuildTarget: Standalone - m_BuildTarget: Standalone
......
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