Commit 8eefb38f authored by SherryChaos's avatar SherryChaos

bug fix

parent d73bc161
......@@ -3077,7 +3077,7 @@ MonoBehaviour:
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: "\u6D4B\u8BD5"
m_Text:
--- !u!222 &54642213
CanvasRenderer:
m_ObjectHideFlags: 0
......@@ -15728,7 +15728,7 @@ MonoBehaviour:
m_HandleRect: {fileID: 1581995138}
m_Direction: 2
m_Value: 0
m_Size: 0
m_Size: 1
m_NumberOfSteps: 0
m_OnValueChanged:
m_PersistentCalls:
......@@ -19094,7 +19094,7 @@ MonoBehaviour:
m_HandleRect: {fileID: 931169952}
m_Direction: 2
m_Value: 0
m_Size: 0.6103896
m_Size: 1
m_NumberOfSteps: 0
m_OnValueChanged:
m_PersistentCalls:
......@@ -35648,7 +35648,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: -0.000030517578}
m_AnchoredPosition: {x: 0, y: 0.000030517578}
m_SizeDelta: {x: 0, y: 300}
m_Pivot: {x: 0.5, y: 1}
--- !u!114 &702608002
......@@ -38898,7 +38898,7 @@ MonoBehaviour:
m_HandleRect: {fileID: 476827028}
m_Direction: 2
m_Value: 1
m_Size: 0.6400252
m_Size: 0.62751776
m_NumberOfSteps: 0
m_OnValueChanged:
m_PersistentCalls:
......@@ -55485,7 +55485,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0.000030517578}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 300}
m_Pivot: {x: 0.5, y: 1}
--- !u!1 &1117266860
......@@ -72024,7 +72024,7 @@ MonoBehaviour:
m_HandleRect: {fileID: 761159127}
m_Direction: 2
m_Value: 0
m_Size: 0.6629212
m_Size: 1
m_NumberOfSteps: 0
m_OnValueChanged:
m_PersistentCalls:
......@@ -75929,7 +75929,7 @@ MonoBehaviour:
m_HandleRect: {fileID: 2083794100}
m_Direction: 2
m_Value: 0
m_Size: 0.5588235
m_Size: 1
m_NumberOfSteps: 0
m_OnValueChanged:
m_PersistentCalls:
......@@ -78358,14 +78358,7 @@ MonoBehaviour:
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: "Puedes descartar al Cementerio esta carta y 1 monstruo de VIENTO; a\xF1ade
a tu mano 1 monstruo Drag\xF3n en tu Deck. Puedes desterrar un total de 2 monstruos
Drag\xF3n y/o de VIENTO en tu mano y/o Cementerio; Invoca esta carta de Modo
Especial desde tu mano o Cementerio. Durante la End Phase de tu adversario, si
controlas esta carta Invocada de Modo Especial: devu\xE9lvela a la mano. Si esta
carta es desterrada: puedes a\xF1adir a tu mano 1 monstruo Drag\xF3n de VIENTO
en tu Deck. S\xF3lo puedes usar 1 efecto de \"Tempest, Se\xF1or Drag\xF3n de
las Tormentas\" por turno, y s\xF3lo una vez ese turno."
m_Text:
--- !u!222 &1539038665
CanvasRenderer:
m_ObjectHideFlags: 0
......@@ -4,6 +4,7 @@ using UnityEngine.AddressableAssets;
using UnityEngine.UI;
using MDPro3.YGOSharp;
using MDPro3.YGOSharp.OCGWrapper.Enums;
using System;
namespace MDPro3
{
......@@ -491,13 +492,12 @@ namespace MDPro3
return string.Empty;
var language = Config.Get("Language", "zh-CN");
//Remove Space
if (language == "ja-JP")
{
description = description.Replace("\t\r\n", "\r\r\r");
description = description.Replace("\r\n●", "●●●");
description = description.Replace("\r\n", string.Empty);
description = description.Replace("\r\r\r", "\r\n");
description = description.Replace("\t", "\f\f\f");
description = description.Replace("\n●", "●●●");
description = description.Replace("\n", string.Empty);
description = description.Replace("\f\f\f", "\r\n");
description = description.Replace("●●●", "\r\n●");
}
else
......@@ -524,12 +524,8 @@ namespace MDPro3
description = description.Replace(Program.slash, bigSlash);
if (language != "en-US" && language != "es-ES")
description = description.Replace(" ", "\u00A0");
description = description.Replace("\r\n\r\n", "\r\n");
return description;
}
}
}
......@@ -44,17 +44,10 @@ namespace MDPro3
#if UNITY_ANDROID && !UNITY_EDITOR
NativeFilePicker.ExportMultipleFiles(filePaths, ExportResult);
#else
StandaloneFileBrowser.OpenFolderPanelAsync("请选择导出目录", "", false, (string[] paths) =>
StandaloneFileBrowser.OpenFolderPanelAsync(InterString.Get("请选择导出目录"), "", false, (string[] paths) =>
{
ExportFiles(paths, filePaths);
});
//var config = new FolderDialogConfiguration
//{
// Title = InterString.Get("请选择导出目录"),
//};
//var result = FileBrowser.FileBrowserService.OpenFolderDialog(config);
//ExportFiles(result, filePaths);
#endif
}
......@@ -74,25 +67,6 @@ namespace MDPro3
static void ChooseFiles()
{
//var config = new FileDialogConfiguration
//{
// Title = InterString.Get("请选择需要导入的文件"),
// FileDialogType = FileBrowser.FileDialogType.Open,
// Multiselect = true,
// ExtensionFilters = new[]
// {
// new ExtensionFilter(InterString.Get("所有文件"), "*"),
// new ExtensionFilter(InterString.Get("卡组码文件"), "ydk"),
// new ExtensionFilter(InterString.Get("回放文件"), "yrp", "yrp3d"),
// new ExtensionFilter(InterString.Get("扩展卡文件"), "ypk"),
// new ExtensionFilter(InterString.Get("数据库文件"), "cdb"),
// new ExtensionFilter(InterString.Get("字段文件"), "conf"),
// new ExtensionFilter(InterString.Get("图片文件"), "png", "jpg")
// }
//};
//var result = FileBrowser.FileBrowserService.OpenFileDialog(config);
//CopyFilesToGame(result);
var extensions = new[]
{
new ExtensionFilter(InterString.Get("所有文件"), "*"),
......
......@@ -105,11 +105,11 @@ namespace MDPro3.UI
IEnumerator RefreshCard()
{
GetComponent<RawImage>().texture = TextureManager.container.unknownCard.texture;
var ie = Program.I().texture_.LoadCardAsync(code);
var ie = Program.I().texture_.LoadCardAsync(code, true);
while (ie.MoveNext())
yield return null;
GetComponent<RawImage>().texture = ie.Current;
GetComponent<RawImage>().material = TextureManager.GetCardMaterial(code);
GetComponent<RawImage>().material = TextureManager.GetCardMaterial(code, true);
}
public void RefreshLimitIcon()
......
......@@ -150,7 +150,7 @@ namespace MDPro3.UI
for (int i = 0; i < transform.GetSiblingIndex(); i++)
yield return null;
var ie = Program.I().texture_.LoadCardAsync(code);
var ie = Program.I().texture_.LoadCardAsync(code, true);
StartCoroutine(ie);
while (ie.MoveNext())
yield return null;
......
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