Commit b991f2f8 authored by 赤子奈落's avatar 赤子奈落

add serials in card description

回滚上一版的改动,在卡片描述中添加系列字段
parent 73d0a1d8
...@@ -3009,7 +3009,7 @@ MonoBehaviour: ...@@ -3009,7 +3009,7 @@ MonoBehaviour:
anchorOffset: 0 anchorOffset: 0
softBorderPadding: 1 softBorderPadding: 1
renderQueue: 0 renderQueue: 0
startingRenderQueue: 3028 startingRenderQueue: 3030
mClipTexture: {fileID: 0} mClipTexture: {fileID: 0}
mAlpha: 0 mAlpha: 0
mClipping: 0 mClipping: 0
...@@ -3742,7 +3742,7 @@ MonoBehaviour: ...@@ -3742,7 +3742,7 @@ MonoBehaviour:
anchorOffset: 0 anchorOffset: 0
softBorderPadding: 1 softBorderPadding: 1
renderQueue: 0 renderQueue: 0
startingRenderQueue: 3028 startingRenderQueue: 3030
mClipTexture: {fileID: 0} mClipTexture: {fileID: 0}
mAlpha: 1 mAlpha: 1
mClipping: 3 mClipping: 3
...@@ -21191,7 +21191,7 @@ MonoBehaviour: ...@@ -21191,7 +21191,7 @@ MonoBehaviour:
anchorOffset: 0 anchorOffset: 0
softBorderPadding: 1 softBorderPadding: 1
renderQueue: 0 renderQueue: 0
startingRenderQueue: 3028 startingRenderQueue: 3030
mClipTexture: {fileID: 0} mClipTexture: {fileID: 0}
mAlpha: 0 mAlpha: 0
mClipping: 0 mClipping: 0
...@@ -39084,7 +39084,7 @@ MonoBehaviour: ...@@ -39084,7 +39084,7 @@ MonoBehaviour:
anchorOffset: 0 anchorOffset: 0
softBorderPadding: 1 softBorderPadding: 1
renderQueue: 0 renderQueue: 0
startingRenderQueue: 3028 startingRenderQueue: 3030
mClipTexture: {fileID: 0} mClipTexture: {fileID: 0}
mAlpha: 0 mAlpha: 0
mClipping: 0 mClipping: 0
...@@ -64220,7 +64220,7 @@ MonoBehaviour: ...@@ -64220,7 +64220,7 @@ MonoBehaviour:
anchorOffset: 0 anchorOffset: 0
softBorderPadding: 1 softBorderPadding: 1
renderQueue: 0 renderQueue: 0
startingRenderQueue: 3028 startingRenderQueue: 3030
mClipTexture: {fileID: 0} mClipTexture: {fileID: 0}
mAlpha: 1 mAlpha: 1
mClipping: 3 mClipping: 3
...@@ -88370,7 +88370,7 @@ MonoBehaviour: ...@@ -88370,7 +88370,7 @@ MonoBehaviour:
anchorOffset: 0 anchorOffset: 0
softBorderPadding: 1 softBorderPadding: 1
renderQueue: 0 renderQueue: 0
startingRenderQueue: 3028 startingRenderQueue: 3030
mClipTexture: {fileID: 0} mClipTexture: {fileID: 0}
mAlpha: 0 mAlpha: 0
mClipping: 0 mClipping: 0
...@@ -104232,7 +104232,7 @@ MonoBehaviour: ...@@ -104232,7 +104232,7 @@ MonoBehaviour:
anchorOffset: 0 anchorOffset: 0
softBorderPadding: 1 softBorderPadding: 1
renderQueue: 0 renderQueue: 0
startingRenderQueue: 3028 startingRenderQueue: 3030
mClipTexture: {fileID: 0} mClipTexture: {fileID: 0}
mAlpha: 1 mAlpha: 1
mClipping: 3 mClipping: 3
...@@ -106232,7 +106232,7 @@ MonoBehaviour: ...@@ -106232,7 +106232,7 @@ MonoBehaviour:
anchorOffset: 0 anchorOffset: 0
softBorderPadding: 1 softBorderPadding: 1
renderQueue: 0 renderQueue: 0
startingRenderQueue: 3028 startingRenderQueue: 3030
mClipTexture: {fileID: 0} mClipTexture: {fileID: 0}
mAlpha: 0 mAlpha: 0
mClipping: 0 mClipping: 0
...@@ -107532,7 +107532,7 @@ MonoBehaviour: ...@@ -107532,7 +107532,7 @@ MonoBehaviour:
anchorOffset: 0 anchorOffset: 0
softBorderPadding: 1 softBorderPadding: 1
renderQueue: 0 renderQueue: 0
startingRenderQueue: 3028 startingRenderQueue: 3030
mClipTexture: {fileID: 0} mClipTexture: {fileID: 0}
mAlpha: 1 mAlpha: 1
mClipping: 3 mClipping: 3
...@@ -124127,7 +124127,7 @@ MonoBehaviour: ...@@ -124127,7 +124127,7 @@ MonoBehaviour:
anchorOffset: 0 anchorOffset: 0
softBorderPadding: 1 softBorderPadding: 1
renderQueue: 0 renderQueue: 0
startingRenderQueue: 3027 startingRenderQueue: 3029
mClipTexture: {fileID: 0} mClipTexture: {fileID: 0}
mAlpha: 1 mAlpha: 1
mClipping: 3 mClipping: 3
...@@ -133916,7 +133916,7 @@ MonoBehaviour: ...@@ -133916,7 +133916,7 @@ MonoBehaviour:
anchorOffset: 0 anchorOffset: 0
softBorderPadding: 1 softBorderPadding: 1
renderQueue: 0 renderQueue: 0
startingRenderQueue: 3028 startingRenderQueue: 3030
mClipTexture: {fileID: 0} mClipTexture: {fileID: 0}
mAlpha: 0 mAlpha: 0
mClipping: 0 mClipping: 0
...@@ -142815,7 +142815,7 @@ MonoBehaviour: ...@@ -142815,7 +142815,7 @@ MonoBehaviour:
anchorOffset: 0 anchorOffset: 0
softBorderPadding: 1 softBorderPadding: 1
renderQueue: 0 renderQueue: 0
startingRenderQueue: 3028 startingRenderQueue: 3030
mClipTexture: {fileID: 0} mClipTexture: {fileID: 0}
mAlpha: 1 mAlpha: 1
mClipping: 3 mClipping: 3
...@@ -195283,7 +195283,7 @@ MonoBehaviour: ...@@ -195283,7 +195283,7 @@ MonoBehaviour:
anchorOffset: 0 anchorOffset: 0
softBorderPadding: 1 softBorderPadding: 1
renderQueue: 0 renderQueue: 0
startingRenderQueue: 3028 startingRenderQueue: 3030
mClipTexture: {fileID: 0} mClipTexture: {fileID: 0}
mAlpha: 1 mAlpha: 1
mClipping: 3 mClipping: 3
...@@ -202409,7 +202409,7 @@ MonoBehaviour: ...@@ -202409,7 +202409,7 @@ MonoBehaviour:
anchorOffset: 0 anchorOffset: 0
softBorderPadding: 1 softBorderPadding: 1
renderQueue: 0 renderQueue: 0
startingRenderQueue: 3028 startingRenderQueue: 3030
mClipTexture: {fileID: 0} mClipTexture: {fileID: 0}
mAlpha: 1 mAlpha: 1
mClipping: 3 mClipping: 3
...@@ -202576,7 +202576,7 @@ MonoBehaviour: ...@@ -202576,7 +202576,7 @@ MonoBehaviour:
anchorOffset: 0 anchorOffset: 0
softBorderPadding: 1 softBorderPadding: 1
renderQueue: 0 renderQueue: 0
startingRenderQueue: 3028 startingRenderQueue: 3030
mClipTexture: {fileID: 0} mClipTexture: {fileID: 0}
mAlpha: 1 mAlpha: 1
mClipping: 3 mClipping: 3
...@@ -216954,7 +216954,7 @@ MonoBehaviour: ...@@ -216954,7 +216954,7 @@ MonoBehaviour:
anchorOffset: 0 anchorOffset: 0
softBorderPadding: 1 softBorderPadding: 1
renderQueue: 0 renderQueue: 0
startingRenderQueue: 3028 startingRenderQueue: 3030
mClipTexture: {fileID: 0} mClipTexture: {fileID: 0}
mAlpha: 0 mAlpha: 0
mClipping: 0 mClipping: 0
...@@ -222731,7 +222731,7 @@ MonoBehaviour: ...@@ -222731,7 +222731,7 @@ MonoBehaviour:
anchorOffset: 0 anchorOffset: 0
softBorderPadding: 1 softBorderPadding: 1
renderQueue: 0 renderQueue: 0
startingRenderQueue: 3028 startingRenderQueue: 3030
mClipTexture: {fileID: 0} mClipTexture: {fileID: 0}
mAlpha: 0 mAlpha: 0
mClipping: 0 mClipping: 0
...@@ -229365,7 +229365,7 @@ MonoBehaviour: ...@@ -229365,7 +229365,7 @@ MonoBehaviour:
anchorOffset: 0 anchorOffset: 0
softBorderPadding: 1 softBorderPadding: 1
renderQueue: 0 renderQueue: 0
startingRenderQueue: 3028 startingRenderQueue: 3030
mClipTexture: {fileID: 0} mClipTexture: {fileID: 0}
mAlpha: 0 mAlpha: 0
mClipping: 0 mClipping: 0
...@@ -247294,7 +247294,7 @@ MonoBehaviour: ...@@ -247294,7 +247294,7 @@ MonoBehaviour:
anchorOffset: 0 anchorOffset: 0
softBorderPadding: 1 softBorderPadding: 1
renderQueue: 0 renderQueue: 0
startingRenderQueue: 3028 startingRenderQueue: 3030
mClipTexture: {fileID: 0} mClipTexture: {fileID: 0}
mAlpha: 0 mAlpha: 0
mClipping: 0 mClipping: 0
...@@ -261597,7 +261597,7 @@ MonoBehaviour: ...@@ -261597,7 +261597,7 @@ MonoBehaviour:
anchorOffset: 0 anchorOffset: 0
softBorderPadding: 1 softBorderPadding: 1
renderQueue: 0 renderQueue: 0
startingRenderQueue: 3027 startingRenderQueue: 3029
mClipTexture: {fileID: 0} mClipTexture: {fileID: 0}
mAlpha: 1 mAlpha: 1
mClipping: 3 mClipping: 3
...@@ -276526,7 +276526,7 @@ MonoBehaviour: ...@@ -276526,7 +276526,7 @@ MonoBehaviour:
anchorOffset: 0 anchorOffset: 0
softBorderPadding: 1 softBorderPadding: 1
renderQueue: 0 renderQueue: 0
startingRenderQueue: 3027 startingRenderQueue: 3029
mClipTexture: {fileID: 0} mClipTexture: {fileID: 0}
mAlpha: 1 mAlpha: 1
mClipping: 3 mClipping: 3
...@@ -304385,7 +304385,7 @@ MonoBehaviour: ...@@ -304385,7 +304385,7 @@ MonoBehaviour:
anchorOffset: 0 anchorOffset: 0
softBorderPadding: 1 softBorderPadding: 1
renderQueue: 0 renderQueue: 0
startingRenderQueue: 3028 startingRenderQueue: 3030
mClipTexture: {fileID: 0} mClipTexture: {fileID: 0}
mAlpha: 1 mAlpha: 1
mClipping: 3 mClipping: 3
...@@ -332610,7 +332610,7 @@ MonoBehaviour: ...@@ -332610,7 +332610,7 @@ MonoBehaviour:
anchorOffset: 0 anchorOffset: 0
softBorderPadding: 1 softBorderPadding: 1
renderQueue: 0 renderQueue: 0
startingRenderQueue: 3024 startingRenderQueue: 3026
mClipTexture: {fileID: 0} mClipTexture: {fileID: 0}
mAlpha: 1 mAlpha: 1
mClipping: 3 mClipping: 3
...@@ -229,7 +229,13 @@ public class CardDescription : Servant ...@@ -229,7 +229,13 @@ public class CardDescription : Servant
description.Clear(); description.Clear();
if (GameStringHelper.attribute(card.Attribute).Length > 1) if (GameStringHelper.attribute(card.Attribute).Length > 1)
tail = GameStringHelper.attribute(card.Attribute) + "\n" + tail; tail = GameStringHelper.attribute(card.Attribute) + "\n" + tail;
if(GameStringHelper.getSetName(card.Setcode) != "")
{
tail += GameStringHelper.xilie;
tail += GameStringHelper.getSetName(card.Setcode);
tail += "\n";
}
if (tail == "") if (tail == "")
description.Add(card.Desc); description.Add(card.Desc);
else else
......
...@@ -481,69 +481,39 @@ public class gameHiddenButton : OCGobject ...@@ -481,69 +481,39 @@ public class gameHiddenButton : OCGobject
{ {
showAll(); showAll();
//if(!Program.I().cardSelection.isShowed) if (!Program.I().cardSelection.isShowed)
//{ {
// bool spsummon = false; bool spsummon = false;
// bool activate = false; bool activate = false;
// for (var i = 0; i < Program.I().ocgcore.cards.Count; i++) for (var i = 0; i < Program.I().ocgcore.cards.Count; i++)
// if (Program.I().ocgcore.cards[i].gameObject.activeInHierarchy) if (Program.I().ocgcore.cards[i].gameObject.activeInHierarchy)
// if ((Program.I().ocgcore.cards[i].p.location & (uint)location) > 0) if ((Program.I().ocgcore.cards[i].p.location & (uint)location) > 0)
// if (Program.I().ocgcore.cards[i].p.controller == player) if (Program.I().ocgcore.cards[i].p.controller == player)
// {
// if (Program.I().ocgcore.cards[i].buttons.Count > 0)
// {
// foreach (var btn in Program.I().ocgcore.cards[i].buttons)
// {
// if (btn.type == superButtonType.spsummon)
// spsummon = true;
// else if (btn.type == superButtonType.act)
// activate = true;
// }
// }
// }
// var vector_of_begin = gameObject.transform.position;
// vector_of_begin = Program.I().main_camera.WorldToScreenPoint(vector_of_begin);
// if (spsummon && activate)
// {
// spButton.show(vector_of_begin + new Vector3(gameCard.SortLine(0, 2, 180 * Screen.height / 1080f), 150f * Screen.height / 1080f, 0f));
// actButton.show(vector_of_begin + new Vector3(gameCard.SortLine(1, 2, 180 * Screen.height / 1080f), 150f * Screen.height / 1080f, 0f));
// }
// else if (spsummon)
// spButton.show(vector_of_begin + new Vector3(gameCard.SortLine(0, 1, 180 * Screen.height / 1080f), 150f * Screen.height / 1080f, 0f));
// else if (activate)
// actButton.show(vector_of_begin + new Vector3(gameCard.SortLine(0, 1, 180 * Screen.height / 1080f), 150f * Screen.height / 1080f, 0f));
//}
bool spsummon = false;
bool activate = false;
for (var i = 0; i < Program.I().ocgcore.cards.Count; i++)
if (Program.I().ocgcore.cards[i].gameObject.activeInHierarchy)
if ((Program.I().ocgcore.cards[i].p.location & (uint)location) > 0)
if (Program.I().ocgcore.cards[i].p.controller == player)
{
if (Program.I().ocgcore.cards[i].buttons.Count > 0)
{ {
foreach (var btn in Program.I().ocgcore.cards[i].buttons) if (Program.I().ocgcore.cards[i].buttons.Count > 0)
{ {
if (btn.type == superButtonType.spsummon) foreach (var btn in Program.I().ocgcore.cards[i].buttons)
spsummon = true; {
else if (btn.type == superButtonType.act) if (btn.type == superButtonType.spsummon)
activate = true; spsummon = true;
else if (btn.type == superButtonType.act)
activate = true;
}
} }
} }
} var vector_of_begin = gameObject.transform.position;
var vector_of_begin = gameObject.transform.position; vector_of_begin = Program.I().main_camera.WorldToScreenPoint(vector_of_begin);
vector_of_begin = Program.I().main_camera.WorldToScreenPoint(vector_of_begin); if (spsummon && activate)
if (spsummon && activate) {
{ spButton.show(vector_of_begin + new Vector3(gameCard.SortLine(0, 2, 180 * Screen.height / 1080f), 150f * Screen.height / 1080f, 0f));
spButton.show(vector_of_begin + new Vector3(gameCard.SortLine(0, 2, 180 * Screen.height / 1080f), 150f * Screen.height / 1080f, 0f)); actButton.show(vector_of_begin + new Vector3(gameCard.SortLine(1, 2, 180 * Screen.height / 1080f), 150f * Screen.height / 1080f, 0f));
actButton.show(vector_of_begin + new Vector3(gameCard.SortLine(1, 2, 180 * Screen.height / 1080f), 150f * Screen.height / 1080f, 0f)); }
} else if (spsummon)
else if (spsummon) spButton.show(vector_of_begin + new Vector3(gameCard.SortLine(0, 1, 180 * Screen.height / 1080f), 150f * Screen.height / 1080f, 0f));
spButton.show(vector_of_begin + new Vector3(gameCard.SortLine(0, 1, 180 * Screen.height / 1080f), 150f * Screen.height / 1080f, 0f));
else if (activate) else if (activate)
actButton.show(vector_of_begin + new Vector3(gameCard.SortLine(0, 1, 180 * Screen.height / 1080f), 150f * Screen.height / 1080f, 0f)); actButton.show(vector_of_begin + new Vector3(gameCard.SortLine(0, 1, 180 * Screen.height / 1080f), 150f * Screen.height / 1080f, 0f));
}
} }
} }
......
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