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
SK
MDPro3
Commits
5786eba3
Commit
5786eba3
authored
Jun 04, 2025
by
SherryChaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
61be2be9
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
48 additions
and
1955 deletions
+48
-1955
Assets/Addressables/Text/UpdateContent.txt
Assets/Addressables/Text/UpdateContent.txt
+2
-0
Assets/Fonts/SourceHanSansSC-Bold.asset
Assets/Fonts/SourceHanSansSC-Bold.asset
+10
-145
Assets/Fonts/SourceHanSansSC-Medium.asset
Assets/Fonts/SourceHanSansSC-Medium.asset
+9
-1805
Assets/Scripts/MDPro3/Net/OnlineDeck.cs
Assets/Scripts/MDPro3/Net/OnlineDeck.cs
+19
-0
Assets/Scripts/MDPro3/Servant/OnlineServant.cs
Assets/Scripts/MDPro3/Servant/OnlineServant.cs
+6
-4
Assets/Scripts/MDPro3/UI/ServantUI/AppearanceUI.cs
Assets/Scripts/MDPro3/UI/ServantUI/AppearanceUI.cs
+1
-0
ProjectSettings/ProjectSettings.asset
ProjectSettings/ProjectSettings.asset
+1
-1
No files found.
Assets/Addressables/Text/UpdateContent.txt
View file @
5786eba3
...
...
@@ -4,6 +4,8 @@ MDPro3 v1.3.1更新:
2.修复Linux端决斗中需要显示“解放怪兽”特效时,游戏卡死的问题。
3.*修复Mac端非Apple Silicon芯片的设备无法本地决斗的错误。
4.*修复非Windows端无法导入、导出文件的错误。
5.修复安卓端和Linux端中,外观设置中CrossDuel的宠物选项不显示的错误。
6.修复游戏启动后不同步在线卡组的错误。
MDPro3 v1.3.0更新:
0.本次更新跳过了v1.2.9版本,仅提供完整包安装。
...
...
Assets/Fonts/SourceHanSansSC-Bold.asset
View file @
5786eba3
This diff is collapsed.
Click to expand it.
Assets/Fonts/SourceHanSansSC-Medium.asset
View file @
5786eba3
This diff is collapsed.
Click to expand it.
Assets/Scripts/MDPro3/Net/OnlineDeck.cs
View file @
5786eba3
...
...
@@ -16,6 +16,7 @@ namespace MDPro3.Net
public
static
OnlineDeckData
[]
decks
;
#
region
Const
const
string
url
=
"http://rarnu.xyz:38383"
;
const
string
liteAPI
=
"/api/mdpro3/deck/list/lite"
;
const
string
getAPI
=
"/api/mdpro3/deck/"
;
...
...
@@ -33,9 +34,11 @@ namespace MDPro3.Net
const
string
contentTypeHeader
=
"Content-Type"
;
const
string
jsonHeader
=
"application/json"
;
const
string
tokenHeader
=
"token"
;
#
endregion
#
region
Online
Get
public
static
async
Task
<
OnlineDeckData
[
]>
FetchSimpleDeckList
(
int
size
,
string
keyWord
=
""
,
string
contributor
=
""
,
bool
sortLike
=
true
)
{
string
apiUrl
=
url
+
liteAPI
+
$"?size=
{
size
}
&keyWord=
{
keyWord
}
&contributor=
{
contributor
}
&sortLike=
{
sortLike
}
"
;
...
...
@@ -73,6 +76,7 @@ namespace MDPro3.Net
request
.
downloadHandler
.
Dispose
();
}
}
public
static
async
Task
<
OnlineDeckData
>
GetDeck
(
string
deckID
)
{
string
apiUrl
=
url
+
getAPI
+
deckID
;
...
...
@@ -128,6 +132,7 @@ namespace MDPro3.Net
if
(
request
.
result
==
UnityWebRequest
.
Result
.
Success
)
{
//UnityEngine.Debug.Log(request.downloadHandler.text);
decks
=
JsonUtility
.
FromJson
<
ResponseMultiSimpleData
>(
request
.
downloadHandler
.
text
).
data
;
return
decks
;
}
...
...
@@ -137,6 +142,7 @@ namespace MDPro3.Net
return
null
;
}
}
public
static
async
void
LikeDeck
(
string
deckId
)
{
string
apiUrl
=
url
+
likeAPI
+
deckId
;
...
...
@@ -161,9 +167,11 @@ namespace MDPro3.Net
else
MessageManager
.
Cast
(
InterString
.
Get
(
"点赞卡组失败:"
)
+
request
.
error
);
}
#
endregion
#
region
Online
Post
public
static
async
Task
<
bool
>
UploadDecks
(
List
<
Deck
>
decks
,
List
<
string
>
deckNames
)
{
string
apiUrl
=
url
+
getIdsAPI
+
decks
.
Count
;
...
...
@@ -355,6 +363,7 @@ namespace MDPro3.Net
return
false
;
}
}
public
static
async
Task
<
bool
>
UpdatePublicState
(
string
deckId
,
bool
isPublic
)
{
var
apiUrl
=
url
+
publicAPI
;
...
...
@@ -391,6 +400,7 @@ namespace MDPro3.Net
#
endregion
#
region
Functions
public
static
OnlineDeckData
GetByID
(
string
deckId
)
{
if
(
decks
==
null
)
...
...
@@ -400,6 +410,7 @@ namespace MDPro3.Net
return
deck
;
return
null
;
}
public
static
bool
GetDeckPublicState
(
string
deckId
)
{
if
(
decks
==
null
)
...
...
@@ -409,6 +420,7 @@ namespace MDPro3.Net
return
deck
.
isPublic
;
return
false
;
}
public
static
bool
StringIsIdFormat
(
string
deckId
)
{
return
!
string
.
IsNullOrEmpty
(
deckId
);
...
...
@@ -418,6 +430,7 @@ namespace MDPro3.Net
return
false
;
return
true
;
}
private
static
bool
DeckNameExist
(
string
deckName
)
{
if
(
decks
==
null
)
...
...
@@ -468,6 +481,7 @@ namespace MDPro3.Net
return
DateTime
.
Parse
(
deckUploadDate
);
}
}
}
[
Serializable
]
...
...
@@ -494,6 +508,7 @@ namespace MDPro3.Net
public
string
message
;
public
bool
data
;
}
[
Serializable
]
public
class
ResponseMultiSimpleData
{
...
...
@@ -512,6 +527,7 @@ namespace MDPro3.Net
public
int
pages
;
public
OnlineDeckData
[]
records
;
}
[
Serializable
]
public
class
ResponseDeckID
{
...
...
@@ -519,6 +535,7 @@ namespace MDPro3.Net
public
int
message
;
public
string
data
;
}
[
Serializable
]
public
class
ResponseDeckIDs
{
...
...
@@ -584,6 +601,8 @@ namespace MDPro3.Net
public
string
deckId
;
public
bool
isPublic
;
}
#
endregion
}
}
Assets/Scripts/MDPro3/Servant/OnlineServant.cs
View file @
5786eba3
...
...
@@ -10,6 +10,7 @@ using TMPro;
using
UnityEngine.EventSystems
;
using
MDPro3.Net
;
using
MDPro3.UI.ServantUI
;
using
static
MDPro3
.
Duel
.
YGOSharp
.
PacksManager
;
namespace
MDPro3.Servant
{
...
...
@@ -215,11 +216,12 @@ namespace MDPro3.Servant
private
void
LoginSuccessEvent
()
{
if
(
servantUI
==
null
||
MyCard
.
account
==
null
)
if
(
MyCard
.
account
==
null
)
return
;
StartCoroutine
(
RefreshMyCardAssets
());
StartCoroutine
(
SyncDecks
());
if
(
servantUI
==
null
)
return
;
StartCoroutine
(
RefreshMyCardAssets
());
}
private
IEnumerator
RefreshMyCardAssets
()
...
...
@@ -272,7 +274,6 @@ namespace MDPro3.Servant
for
(
int
i
=
0
;
i
<
decks
.
Count
;
i
++)
{
var
deckName
=
Path
.
GetFileNameWithoutExtension
(
deckFiles
[
i
]);
if
(
decks
[
i
].
userId
!=
MyCard
.
account
.
user
.
id
.
ToString
())
{
decksNeedUpload
.
Add
(
deckName
,
decks
[
i
]);
...
...
@@ -282,6 +283,7 @@ namespace MDPro3.Servant
bool
deckIdFound
=
false
;
foreach
(
var
od
in
OnlineDeck
.
decks
)
{
Debug
.
Log
(
od
.
deckId
);
if
(
od
.
deckId
==
decks
[
i
].
deckId
)
{
deckIdFound
=
true
;
...
...
Assets/Scripts/MDPro3/UI/ServantUI/AppearanceUI.cs
View file @
5786eba3
...
...
@@ -414,6 +414,7 @@ namespace MDPro3.UI.ServantUI
int
code
=
int
.
Parse
(
files
[
i
].
Name
.
Replace
(
".bundle"
,
string
.
Empty
));
var
card
=
CardsManager
.
Get
(
code
,
true
);
GameObject
item
=
Instantiate
(
Template
);
item
.
SetActive
(
true
);
var
itemMono
=
item
.
GetComponent
<
SelectionToggle_AppearanceItem
>();
itemMono
.
index
=
itemCount
++;
itemMono
.
itemID
=
code
;
...
...
ProjectSettings/ProjectSettings.asset
View file @
5786eba3
...
...
@@ -857,7 +857,7 @@ PlayerSettings:
PS4
:
QNX
:
Server
:
Standalone
:
SUPPORT_WINDOWS_PORT
Standalone
:
WebGL
:
Windows Store Apps
:
XboxOne
:
...
...
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