Commit 216c3162 authored by SherryChaos's avatar SherryChaos

new card image save option: all deck

parent 69390a82
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -50105,7 +50105,7 @@ RectTransform: ...@@ -50105,7 +50105,7 @@ RectTransform:
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}
m_AnchoredPosition: {x: 0, y: 0.000030517578} m_AnchoredPosition: {x: 0, y: -0.000030517578}
m_SizeDelta: {x: 0, y: 300} m_SizeDelta: {x: 0, y: 300}
m_Pivot: {x: 0.5, y: 1} m_Pivot: {x: 0.5, y: 1}
--- !u!114 &702608002 --- !u!114 &702608002
...@@ -54023,7 +54023,7 @@ MonoBehaviour: ...@@ -54023,7 +54023,7 @@ MonoBehaviour:
m_HandleRect: {fileID: 476827028} m_HandleRect: {fileID: 476827028}
m_Direction: 2 m_Direction: 2
m_Value: 1 m_Value: 1
m_Size: 0.60808754 m_Size: 0.5975252
m_NumberOfSteps: 0 m_NumberOfSteps: 0
m_OnValueChanged: m_OnValueChanged:
m_PersistentCalls: m_PersistentCalls:
...@@ -77464,7 +77464,7 @@ RectTransform: ...@@ -77464,7 +77464,7 @@ RectTransform:
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}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0.000030517578}
m_SizeDelta: {x: 0, y: 300} m_SizeDelta: {x: 0, y: 300}
m_Pivot: {x: 0.5, y: 1} m_Pivot: {x: 0.5, y: 1}
--- !u!1 &1117266860 --- !u!1 &1117266860
...@@ -122766,7 +122766,7 @@ RectTransform: ...@@ -122766,7 +122766,7 @@ RectTransform:
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}
m_AnchoredPosition: {x: -59.99994, y: 0} m_AnchoredPosition: {x: -59.999878, y: 0}
m_SizeDelta: {x: -1080, y: 0} m_SizeDelta: {x: -1080, y: 0}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1766834024 --- !u!1 &1766834024
...@@ -128326,8 +128326,8 @@ MonoBehaviour: ...@@ -128326,8 +128326,8 @@ MonoBehaviour:
m_PersistentCalls: m_PersistentCalls:
m_Calls: m_Calls:
- m_Target: {fileID: 1267939043} - m_Target: {fileID: 1267939043}
m_TargetAssemblyTypeName: CardDetail, Assembly-CSharp m_TargetAssemblyTypeName: MDPro3.CardDetail, Assembly-CSharp
m_MethodName: GenerateCard m_MethodName: OnCardPictureSave
m_Mode: 1 m_Mode: 1
m_Arguments: m_Arguments:
m_ObjectArgument: {fileID: 0} m_ObjectArgument: {fileID: 0}
...@@ -4027,7 +4027,7 @@ MonoBehaviour: ...@@ -4027,7 +4027,7 @@ MonoBehaviour:
- id: 1000019 - id: 1000019
m_name: m_name:
m_description: m_description:
path: Mate/m08732_model path: Mate/M08732_Model_Folder
functional: 0 functional: 0
secondFace: 0 secondFace: 0
diy: 0 diy: 0
...@@ -4293,7 +4293,7 @@ MonoBehaviour: ...@@ -4293,7 +4293,7 @@ MonoBehaviour:
- id: 1001024 - id: 1001024
m_name: m_name:
m_description: m_description:
path: Mate/m15125_model path: Mate/M15125_Model_Folder
functional: 0 functional: 0
secondFace: 0 secondFace: 0
diy: 0 diy: 0
......
This diff is collapsed.
...@@ -174,13 +174,15 @@ namespace MDPro3.YGOSharp ...@@ -174,13 +174,15 @@ namespace MDPro3.YGOSharp
Card card = new Card(reader); Card card = new Card(reader);
if (!render) if (!render)
{ {
if (!_cards.ContainsKey(card.Id)) //if (!_cards.ContainsKey(card.Id))
_cards.Add(card.Id, card); // _cards.Add(card.Id, card);
_cards[card.Id] = card;
} }
else else
{ {
if (!_cardsForRender.ContainsKey(card.Id)) //if (!_cardsForRender.ContainsKey(card.Id))
_cardsForRender.Add(card.Id, card); // _cardsForRender.Add(card.Id, card);
_cardsForRender[card.Id] = card;
} }
} }
......
...@@ -59,7 +59,7 @@ namespace MDPro3 ...@@ -59,7 +59,7 @@ namespace MDPro3
ret.len = 0; ret.len = 0;
var fileName2 = fileName.TrimStart('.', '/'); var fileName2 = fileName.TrimStart('.', '/');
if (fileName.StartsWith("puzzle")) if (fileName.StartsWith(Program.puzzlePath))
{ {
if (File.Exists(fileName)) if (File.Exists(fileName))
{ {
......
...@@ -11,7 +11,6 @@ namespace MDPro3 ...@@ -11,7 +11,6 @@ namespace MDPro3
public static void Initialize() public static void Initialize()
{ {
zips.Clear(); zips.Clear();
zips.Add(new ZipFile("Data/script.zip"));
if (!Directory.Exists("Expansions")) if (!Directory.Exists("Expansions"))
Directory.CreateDirectory("Expansions"); Directory.CreateDirectory("Expansions");
...@@ -19,6 +18,8 @@ namespace MDPro3 ...@@ -19,6 +18,8 @@ namespace MDPro3
zips.Add(new ZipFile(zip)); zips.Add(new ZipFile(zip));
foreach (var zip in Directory.GetFiles("Expansions", "*.zip")) foreach (var zip in Directory.GetFiles("Expansions", "*.zip"))
zips.Add(new ZipFile(zip)); zips.Add(new ZipFile(zip));
zips.Add(new ZipFile("Data/script.zip"));//Make "Data/script.zip" the last one to read.
} }
public static void Dispose() public static void Dispose()
{ {
......
...@@ -687,7 +687,7 @@ namespace MDPro3 ...@@ -687,7 +687,7 @@ namespace MDPro3
detail.Show(cardShowing, cardFace, mat, cardIndex >= 0 ? CardsInDeck() : CardsOnList(), cardIndex); detail.Show(cardShowing, cardFace, mat, cardIndex >= 0 ? CardsInDeck() : CardsOnList(), cardIndex);
} }
List<int> CardsInDeck() public List<int> CardsInDeck()
{ {
var cards = new Dictionary<int, int>(); var cards = new Dictionary<int, int>();
foreach (var card in this.cards) foreach (var card in this.cards)
......
...@@ -789,7 +789,7 @@ namespace MDPro3.Net ...@@ -789,7 +789,7 @@ namespace MDPro3.Net
while (!task.IsCompleted) while (!task.IsCompleted)
yield return null; yield return null;
} }
//下载已经有Id的本地较旧卡组 //更新已经有Id的本地较旧卡组
foreach (var deck in decksNeedUpdate2) foreach (var deck in decksNeedUpdate2)
{ {
var od = OnlineDeck.GetDeck(deck.Value.deckId); var od = OnlineDeck.GetDeck(deck.Value.deckId);
...@@ -856,7 +856,7 @@ namespace MDPro3.Net ...@@ -856,7 +856,7 @@ namespace MDPro3.Net
return null; return null;
var oldDeckName = Path.GetFileNameWithoutExtension(deckPath); var oldDeckName = Path.GetFileNameWithoutExtension(deckPath);
if(oldDeckName == newName ) if(oldDeckName == newName )
return newName; return deckPath;
var folderPath = Path.GetDirectoryName(deckPath); var folderPath = Path.GetDirectoryName(deckPath);
if (folderPath == null) if (folderPath == null)
return null; return null;
......
...@@ -161,7 +161,7 @@ namespace MDPro3 ...@@ -161,7 +161,7 @@ namespace MDPro3
if (percy != null) if (percy != null)
percy.Dispose(); percy.Dispose();
percy = new PercyOCG(); percy = new PercyOCG();
percy.StartPuzzle(Program.puzzlePath.ToLower() + puzzle + ".lua"); percy.StartPuzzle(Program.puzzlePath + puzzle + ".lua");
} }
} }
} }
...@@ -661,3 +661,5 @@ YDK 内容不合法,主卡组必须满 40 张->YDK 内容不合法,主卡组 ...@@ -661,3 +661,5 @@ YDK 内容不合法,主卡组必须满 40 张->YDK 内容不合法,主卡组
保存所有衍生物卡图->保存所有衍生物卡图 保存所有衍生物卡图->保存所有衍生物卡图
卡图保存中->卡图保存中 卡图保存中->卡图保存中
错误:->错误: 错误:->错误:
保存卡组所有卡图->保存卡组所有卡图
保存卡组卡图->保存卡组卡图
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