Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
MDPro2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Fakesonkun
MDPro2
Commits
b991f2f8
Commit
b991f2f8
authored
Jul 20, 2023
by
赤子奈落
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add serials in card description
回滚上一版的改动,在卡片描述中添加系列字段
parent
73d0a1d8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
82 deletions
+58
-82
Assets/MD/main.unity
Assets/MD/main.unity
+23
-23
Assets/SibylSystem/CardDescription/CardDescription.cs
Assets/SibylSystem/CardDescription/CardDescription.cs
+7
-1
Assets/SibylSystem/Ocgcore/OCGobjects/gameHiddenButton.cs
Assets/SibylSystem/Ocgcore/OCGobjects/gameHiddenButton.cs
+28
-58
No files found.
Assets/MD/main.unity
View file @
b991f2f8
...
@@ -3009,7 +3009,7 @@ MonoBehaviour:
...
@@ -3009,7 +3009,7 @@ MonoBehaviour:
anchorOffset: 0
anchorOffset: 0
softBorderPadding: 1
softBorderPadding: 1
renderQueue: 0
renderQueue: 0
startingRenderQueue: 30
28
startingRenderQueue: 30
30
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: 30
28
startingRenderQueue: 30
30
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: 30
28
startingRenderQueue: 30
30
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: 30
28
startingRenderQueue: 30
30
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: 30
28
startingRenderQueue: 30
30
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: 30
28
startingRenderQueue: 30
30
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: 30
28
startingRenderQueue: 30
30
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: 30
28
startingRenderQueue: 30
30
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: 30
28
startingRenderQueue: 30
30
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: 302
7
startingRenderQueue: 302
9
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: 30
28
startingRenderQueue: 30
30
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: 30
28
startingRenderQueue: 30
30
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: 30
28
startingRenderQueue: 30
30
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: 30
28
startingRenderQueue: 30
30
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: 30
28
startingRenderQueue: 30
30
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: 30
28
startingRenderQueue: 30
30
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: 30
28
startingRenderQueue: 30
30
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: 30
28
startingRenderQueue: 30
30
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: 30
28
startingRenderQueue: 30
30
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: 302
7
startingRenderQueue: 302
9
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: 302
7
startingRenderQueue: 302
9
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: 30
28
startingRenderQueue: 30
30
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: 302
4
startingRenderQueue: 302
6
mClipTexture: {fileID: 0}
mClipTexture: {fileID: 0}
mAlpha: 1
mAlpha: 1
mClipping: 3
mClipping: 3
Assets/SibylSystem/CardDescription/CardDescription.cs
View file @
b991f2f8
...
@@ -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
...
...
Assets/SibylSystem/Ocgcore/OCGobjects/gameHiddenButton.cs
View file @
b991f2f8
...
@@ -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
));
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment