Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
MDPro3
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
Dark_Zane
MDPro3
Commits
727cbd30
Commit
727cbd30
authored
Mar 18, 2024
by
SherryChaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adapt to diy puzzle
parent
2d3477ab
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
6 deletions
+24
-6
Assets/Scripts/MDPro3/Duel/DuelButton.cs
Assets/Scripts/MDPro3/Duel/DuelButton.cs
+13
-2
Assets/Scripts/MDPro3/Duel/GameCard.cs
Assets/Scripts/MDPro3/Duel/GameCard.cs
+3
-0
Assets/Scripts/MDPro3/Servants/OcgCore.cs
Assets/Scripts/MDPro3/Servants/OcgCore.cs
+6
-3
ProjectSettings/ProjectSettings.asset
ProjectSettings/ProjectSettings.asset
+2
-1
No files found.
Assets/Scripts/MDPro3/Duel/DuelButton.cs
View file @
727cbd30
...
...
@@ -172,12 +172,23 @@ namespace MDPro3.UI
gps
.
sequence
=
sequence
;
var
position
=
GameCard
.
GetCardPosition
(
gps
);
uiPoint
=
UIManager
.
WorldToScreenPoint
(
Program
.
I
().
camera_
.
cameraMain
,
position
);
if
((
location
&
((
uint
)
CardLocation
.
Deck
+
(
uint
)
CardLocation
.
Extra
))
>
0
&&
controller
!=
0
)
height
=
-
100
;
}
else
{
uiPoint
=
UIManager
.
WorldToScreenPoint
(
Program
.
I
().
camera_
.
cameraMain
,
cookieCard
.
model
.
transform
.
position
);
if
(
cookieCard
!=
null
&&
(
cookieCard
.
p
.
location
&
(
uint
)
CardLocation
.
Hand
)
>
0
)
height
=
250
;
if
(
cookieCard
!=
null
)
{
if
((
cookieCard
.
p
.
location
&
(
uint
)
CardLocation
.
Hand
)
>
0
)
{
if
(
cookieCard
.
p
.
controller
==
0
)
height
=
250f
;
else
height
=
-
100
;
}
}
}
GetComponent
<
RectTransform
>().
anchoredPosition
=
new
Vector2
(
uiPoint
.
x
-
(
buttonsCount
-
1
)
*
80
+
id
*
160
,
uiPoint
.
y
+
height
);
}
...
...
Assets/Scripts/MDPro3/Duel/GameCard.cs
View file @
727cbd30
...
...
@@ -406,6 +406,9 @@ namespace MDPro3
else
if
((
p
.
location
&
(
uint
)
CardLocation
.
Hand
)
>
0
)
{
int
handsCount
;
if
(
c
==
null
)
return
Vector3
.
zero
;
if
(
c
.
p
.
controller
==
0
)
handsCount
=
Program
.
I
().
ocgcore
.
GetMyHandCount
();
else
...
...
Assets/Scripts/MDPro3/Servants/OcgCore.cs
View file @
727cbd30
...
...
@@ -1906,12 +1906,15 @@ namespace MDPro3
if
(
card
!=
null
)
{
card
.
CacheData
();
card.SetCode(code);
to.reason = reason;
Sleep((int)(card.Move(to) * 100));
}
else
{
Debug
.
LogFormat
(
"GCS_Get: not found, location: {0:X}, sequence: {1:X}, position: {2:X}"
,
from
.
location
,
from
.
sequence
,
from
.
position
);
card
=
GCS_Create
(
from
);
}
card
.
SetCode
(
code
);
to
.
reason
=
reason
;
Sleep
((
int
)(
card
.
Move
(
to
)
*
100
));
break
;
case
GameMessage
.
PosChange
:
ES_hint
=
StringHelper
.
GetUnsafe
(
1600
);
//卡片改变了表示形式
...
...
ProjectSettings/ProjectSettings.asset
View file @
727cbd30
...
...
@@ -135,7 +135,8 @@ PlayerSettings:
16:9:
1
Others
:
1
bundleVersion
:
0.5.2
preloadedAssets
:
[]
preloadedAssets
:
-
{
fileID
:
11400000
,
guid
:
5fb02d2098f52054b89ce4a9f63ba9ee
,
type
:
2
}
metroInputSource
:
0
wsaTransparentSwapchain
:
0
m_HolographicPauseOnTrackingLoss
:
1
...
...
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