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
12739029
Commit
12739029
authored
Feb 27, 2026
by
ElderLich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented Overframe and Some Bug fixes
parent
b2c3a0fc
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1618 additions
and
9 deletions
+1618
-9
Assets/Scripts/MDPro3/CardRenderer.cs
Assets/Scripts/MDPro3/CardRenderer.cs
+1532
-0
Assets/Scripts/MDPro3/Duel/YGOSharp/Deck.cs
Assets/Scripts/MDPro3/Duel/YGOSharp/Deck.cs
+4
-3
Assets/Scripts/MDPro3/Helper/YdkIdHelper.cs
Assets/Scripts/MDPro3/Helper/YdkIdHelper.cs
+41
-3
Assets/Scripts/MDPro3/Utility/Language.cs
Assets/Scripts/MDPro3/Utility/Language.cs
+3
-2
Data/YDK_Helper.txt
Data/YDK_Helper.txt
+38
-1
No files found.
Assets/Scripts/MDPro3/CardRenderer.cs
View file @
12739029
This diff is collapsed.
Click to expand it.
Assets/Scripts/MDPro3/Duel/YGOSharp/Deck.cs
View file @
12739029
...
...
@@ -114,8 +114,9 @@ namespace MDPro3.Duel.YGOSharp
if
(
code
>
100
)
{
// Replace pre-release ids with official ids (if mapping exists).
code
=
YdkIdHelper
.
ToOfficial
(
code
);
// Replace pre-release ids with official ids only for playable deck sections.
if
(
flag
>=
1
&&
flag
<=
3
)
code
=
YdkIdHelper
.
ToOfficial
(
code
);
switch
(
flag
)
{
...
...
@@ -337,4 +338,4 @@ namespace MDPro3.Duel.YGOSharp
return
value
;
}
}
}
\ No newline at end of file
}
Assets/Scripts/MDPro3/Helper/YdkIdHelper.cs
View file @
12739029
...
...
@@ -25,6 +25,14 @@ namespace MDPro3
private
static
readonly
Regex
_ydkIdLine
=
new
Regex
(
@"^(\s*#?\s*)(\d+)(\s*)$"
,
RegexOptions
.
Compiled
);
private
enum
DeckSection
{
None
,
Main
,
Extra
,
Side
}
public
static
void
EnsureLoaded
()
{
if
(
_loaded
)
return
;
...
...
@@ -107,12 +115,12 @@ namespace MDPro3
changed
+=
NormalizeList
(
deck
.
Main
);
changed
+=
NormalizeList
(
deck
.
Extra
);
changed
+=
NormalizeList
(
deck
.
Side
);
changed
+=
NormalizeList
(
deck
.
Pickup
);
return
changed
;
}
/// <summary>
/// Reads a .ydk file and rewrites it on disk, replacing pre-release ids with official ids.
/// Reads a .ydk file and rewrites it on disk, replacing pre-release ids with official ids
/// only inside #main, #extra and !side sections.
/// Returns the number of lines changed.
/// </summary>
public
static
int
NormalizeYdkFile
(
string
path
)
...
...
@@ -138,12 +146,42 @@ namespace MDPro3
var
lines
=
original
.
Replace
(
"\r\n"
,
"\n"
).
Split
(
'\n'
);
var
changed
=
0
;
var
section
=
DeckSection
.
None
;
for
(
int
i
=
0
;
i
<
lines
.
Length
;
i
++)
{
var
line
=
lines
[
i
];
var
trimmed
=
line
.
TrimStart
();
if
(
trimmed
.
StartsWith
(
"#main"
,
StringComparison
.
Ordinal
))
{
section
=
DeckSection
.
Main
;
continue
;
}
if
(
trimmed
.
StartsWith
(
"#extra"
,
StringComparison
.
Ordinal
))
{
section
=
DeckSection
.
Extra
;
continue
;
}
if
(
trimmed
.
StartsWith
(
"!side"
,
StringComparison
.
Ordinal
))
{
section
=
DeckSection
.
Side
;
continue
;
}
var
m
=
_ydkIdLine
.
Match
(
line
);
if
(!
m
.
Success
)
continue
;
if
(!
m
.
Success
)
{
// Any other ydk directive/header exits card sections.
if
(
trimmed
.
StartsWith
(
"#"
,
StringComparison
.
Ordinal
)
||
trimmed
.
StartsWith
(
"!"
,
StringComparison
.
Ordinal
))
{
section
=
DeckSection
.
None
;
}
continue
;
}
if
(
section
==
DeckSection
.
None
)
continue
;
if
(!
int
.
TryParse
(
m
.
Groups
[
2
].
Value
,
out
var
id
))
continue
;
if
(
id
<=
100
)
continue
;
...
...
Assets/Scripts/MDPro3/Utility/Language.cs
View file @
12739029
...
...
@@ -121,8 +121,9 @@ namespace MDPro3.Utility
public
static
string
GetRightBracket
()
{
if
(
NeedSmallBracket
())
return
"]"
;
var
language
=
GetConfig
();
if
(
UseLatin
(
language
))
return
"] "
;
return
"】"
;
}
...
...
Data/YDK_Helper.txt
View file @
12739029
...
...
@@ -1401,4 +1401,41 @@
101304116 19144623
101304154 52782440
100254201 48016074
100254202 11911336
\ No newline at end of file
100254202 11911336
100200284 60516416
100256001 88570003
100256002 14965712
100256003 41350417
100256004 87758525
100256005 13243124
100256006 40237839
100256007 76636978
100256008 13021682
100256009 49415281
100256010 76504386
100256011 12908094
100256012 48393693
100256013 75787708
100256014 1186447
100256015 48171151
100256016 74665150
100256017 64865
100256018 37458564
100256019 73443672
100256020 847217
100256021 32236916
100256022 68721020
100256023 5125629
100256024 31114334
100256025 68508433
100201001 4993187
100259001 81684048
100259002 18078153
100259003 54077752
100259004 80461466
100259005 17856505
100259006 43355214
100259007 80749819
100259008 16734927
100259009 42138622
100259010 75527221
\ No newline at end of file
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