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
xiaoye
MDPro3
Commits
216c3162
Commit
216c3162
authored
Sep 17, 2024
by
SherryChaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new card image save option: all deck
parent
69390a82
Changes
13
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
24395 additions
and
12629 deletions
+24395
-12629
Assets/Fonts/Brock.asset
Assets/Fonts/Brock.asset
+90
-86
Assets/Fonts/RenderFontJapanese.asset
Assets/Fonts/RenderFontJapanese.asset
+24120
-12323
Assets/Fonts/Ro_GSan_Serif_Std.asset
Assets/Fonts/Ro_GSan_Serif_Std.asset
+102
-94
Assets/Main.unity
Assets/Main.unity
+6
-6
Assets/ScriptableObjects/Items.asset
Assets/ScriptableObjects/Items.asset
+2
-2
Assets/Scripts/MDPro3/Duel/CardDetail.cs
Assets/Scripts/MDPro3/Duel/CardDetail.cs
+60
-108
Assets/Scripts/MDPro3/Duel/MDPro3.YGOSharp/CardsManager.cs
Assets/Scripts/MDPro3/Duel/MDPro3.YGOSharp/CardsManager.cs
+6
-4
Assets/Scripts/MDPro3/Duel/PercyOCG.cs
Assets/Scripts/MDPro3/Duel/PercyOCG.cs
+1
-1
Assets/Scripts/MDPro3/Helper/ZipHelper.cs
Assets/Scripts/MDPro3/Helper/ZipHelper.cs
+2
-1
Assets/Scripts/MDPro3/Servants/EditDeck.cs
Assets/Scripts/MDPro3/Servants/EditDeck.cs
+1
-1
Assets/Scripts/MDPro3/Servants/Online.cs
Assets/Scripts/MDPro3/Servants/Online.cs
+2
-2
Assets/Scripts/MDPro3/Servants/SelectPuzzle.cs
Assets/Scripts/MDPro3/Servants/SelectPuzzle.cs
+1
-1
Data/locales/zh-CN/translation.conf
Data/locales/zh-CN/translation.conf
+2
-0
No files found.
Assets/Fonts/Brock.asset
View file @
216c3162
This diff is collapsed.
Click to expand it.
Assets/Fonts/RenderFontJapanese.asset
View file @
216c3162
This diff is collapsed.
Click to expand it.
Assets/Fonts/Ro_GSan_Serif_Std.asset
View file @
216c3162
This diff is collapsed.
Click to expand it.
Assets/Main.unity
View file @
216c3162
...
@@ -50105,7 +50105,7 @@ RectTransform:
...
@@ -50105,7 +50105,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0.000030517578}
m_AnchoredPosition: {x: 0, y:
-
0.000030517578}
m_SizeDelta: {x: 0, y: 300}
m_SizeDelta: {x: 0, y: 300}
m_Pivot: {x: 0.5, y: 1}
m_Pivot: {x: 0.5, y: 1}
--- !u!114 &702608002
--- !u!114 &702608002
...
@@ -54023,7 +54023,7 @@ MonoBehaviour:
...
@@ -54023,7 +54023,7 @@ MonoBehaviour:
m_HandleRect: {fileID: 476827028}
m_HandleRect: {fileID: 476827028}
m_Direction: 2
m_Direction: 2
m_Value: 1
m_Value: 1
m_Size: 0.
60808754
m_Size: 0.
5975252
m_NumberOfSteps: 0
m_NumberOfSteps: 0
m_OnValueChanged:
m_OnValueChanged:
m_PersistentCalls:
m_PersistentCalls:
...
@@ -77464,7 +77464,7 @@ RectTransform:
...
@@ -77464,7 +77464,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0
.000030517578
}
m_SizeDelta: {x: 0, y: 300}
m_SizeDelta: {x: 0, y: 300}
m_Pivot: {x: 0.5, y: 1}
m_Pivot: {x: 0.5, y: 1}
--- !u!1 &1117266860
--- !u!1 &1117266860
...
@@ -122766,7 +122766,7 @@ RectTransform:
...
@@ -122766,7 +122766,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: -59.999
94
, y: 0}
m_AnchoredPosition: {x: -59.999
878
, y: 0}
m_SizeDelta: {x: -1080, y: 0}
m_SizeDelta: {x: -1080, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1766834024
--- !u!1 &1766834024
...
@@ -128326,8 +128326,8 @@ MonoBehaviour:
...
@@ -128326,8 +128326,8 @@ MonoBehaviour:
m_PersistentCalls:
m_PersistentCalls:
m_Calls:
m_Calls:
- m_Target: {fileID: 1267939043}
- m_Target: {fileID: 1267939043}
m_TargetAssemblyTypeName: CardDetail, Assembly-CSharp
m_TargetAssemblyTypeName:
MDPro3.
CardDetail, Assembly-CSharp
m_MethodName:
GenerateCard
m_MethodName:
OnCardPictureSave
m_Mode: 1
m_Mode: 1
m_Arguments:
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgument: {fileID: 0}
Assets/ScriptableObjects/Items.asset
View file @
216c3162
...
@@ -4027,7 +4027,7 @@ MonoBehaviour:
...
@@ -4027,7 +4027,7 @@ MonoBehaviour:
-
id
:
1000019
-
id
:
1000019
m_name
:
m_name
:
m_description
:
m_description
:
path
:
Mate/
m08732_model
path
:
Mate/
M08732_Model_Folder
functional
:
0
functional
:
0
secondFace
:
0
secondFace
:
0
diy
:
0
diy
:
0
...
@@ -4293,7 +4293,7 @@ MonoBehaviour:
...
@@ -4293,7 +4293,7 @@ MonoBehaviour:
-
id
:
1001024
-
id
:
1001024
m_name
:
m_name
:
m_description
:
m_description
:
path
:
Mate/
m15125_model
path
:
Mate/
M15125_Model_Folder
functional
:
0
functional
:
0
secondFace
:
0
secondFace
:
0
diy
:
0
diy
:
0
...
...
Assets/Scripts/MDPro3/Duel/CardDetail.cs
View file @
216c3162
This diff is collapsed.
Click to expand it.
Assets/Scripts/MDPro3/Duel/MDPro3.YGOSharp/CardsManager.cs
View file @
216c3162
...
@@ -174,13 +174,15 @@ namespace MDPro3.YGOSharp
...
@@ -174,13 +174,15 @@ namespace MDPro3.YGOSharp
Card
card
=
new
Card
(
reader
);
Card
card
=
new
Card
(
reader
);
if
(!
render
)
if
(!
render
)
{
{
if
(!
_cards
.
ContainsKey
(
card
.
Id
))
//if (!_cards.ContainsKey(card.Id))
_cards
.
Add
(
card
.
Id
,
card
);
// _cards.Add(card.Id, card);
_cards
[
card
.
Id
]
=
card
;
}
}
else
else
{
{
if
(!
_cardsForRender
.
ContainsKey
(
card
.
Id
))
//if (!_cardsForRender.ContainsKey(card.Id))
_cardsForRender
.
Add
(
card
.
Id
,
card
);
// _cardsForRender.Add(card.Id, card);
_cardsForRender
[
card
.
Id
]
=
card
;
}
}
}
}
...
...
Assets/Scripts/MDPro3/Duel/PercyOCG.cs
View file @
216c3162
...
@@ -59,7 +59,7 @@ namespace MDPro3
...
@@ -59,7 +59,7 @@ namespace MDPro3
ret
.
len
=
0
;
ret
.
len
=
0
;
var
fileName2
=
fileName
.
TrimStart
(
'.'
,
'/'
);
var
fileName2
=
fileName
.
TrimStart
(
'.'
,
'/'
);
if
(
fileName
.
StartsWith
(
"puzzle"
))
if
(
fileName
.
StartsWith
(
Program
.
puzzlePath
))
{
{
if
(
File
.
Exists
(
fileName
))
if
(
File
.
Exists
(
fileName
))
{
{
...
...
Assets/Scripts/MDPro3/Helper/ZipHelper.cs
View file @
216c3162
...
@@ -11,7 +11,6 @@ namespace MDPro3
...
@@ -11,7 +11,6 @@ namespace MDPro3
public
static
void
Initialize
()
public
static
void
Initialize
()
{
{
zips
.
Clear
();
zips
.
Clear
();
zips
.
Add
(
new
ZipFile
(
"Data/script.zip"
));
if
(!
Directory
.
Exists
(
"Expansions"
))
if
(!
Directory
.
Exists
(
"Expansions"
))
Directory
.
CreateDirectory
(
"Expansions"
);
Directory
.
CreateDirectory
(
"Expansions"
);
...
@@ -19,6 +18,8 @@ namespace MDPro3
...
@@ -19,6 +18,8 @@ namespace MDPro3
zips
.
Add
(
new
ZipFile
(
zip
));
zips
.
Add
(
new
ZipFile
(
zip
));
foreach
(
var
zip
in
Directory
.
GetFiles
(
"Expansions"
,
"*.zip"
))
foreach
(
var
zip
in
Directory
.
GetFiles
(
"Expansions"
,
"*.zip"
))
zips
.
Add
(
new
ZipFile
(
zip
));
zips
.
Add
(
new
ZipFile
(
zip
));
zips
.
Add
(
new
ZipFile
(
"Data/script.zip"
));
//Make "Data/script.zip" the last one to read.
}
}
public
static
void
Dispose
()
public
static
void
Dispose
()
{
{
...
...
Assets/Scripts/MDPro3/Servants/EditDeck.cs
View file @
216c3162
...
@@ -687,7 +687,7 @@ namespace MDPro3
...
@@ -687,7 +687,7 @@ namespace MDPro3
detail
.
Show
(
cardShowing
,
cardFace
,
mat
,
cardIndex
>=
0
?
CardsInDeck
()
:
CardsOnList
(),
cardIndex
);
detail
.
Show
(
cardShowing
,
cardFace
,
mat
,
cardIndex
>=
0
?
CardsInDeck
()
:
CardsOnList
(),
cardIndex
);
}
}
List
<
int
>
CardsInDeck
()
public
List
<
int
>
CardsInDeck
()
{
{
var
cards
=
new
Dictionary
<
int
,
int
>();
var
cards
=
new
Dictionary
<
int
,
int
>();
foreach
(
var
card
in
this
.
cards
)
foreach
(
var
card
in
this
.
cards
)
...
...
Assets/Scripts/MDPro3/Servants/Online.cs
View file @
216c3162
...
@@ -789,7 +789,7 @@ namespace MDPro3.Net
...
@@ -789,7 +789,7 @@ namespace MDPro3.Net
while
(!
task
.
IsCompleted
)
while
(!
task
.
IsCompleted
)
yield
return
null
;
yield
return
null
;
}
}
//
下载
已经有Id的本地较旧卡组
//
更新
已经有Id的本地较旧卡组
foreach
(
var
deck
in
decksNeedUpdate2
)
foreach
(
var
deck
in
decksNeedUpdate2
)
{
{
var
od
=
OnlineDeck
.
GetDeck
(
deck
.
Value
.
deckId
);
var
od
=
OnlineDeck
.
GetDeck
(
deck
.
Value
.
deckId
);
...
@@ -856,7 +856,7 @@ namespace MDPro3.Net
...
@@ -856,7 +856,7 @@ namespace MDPro3.Net
return
null
;
return
null
;
var
oldDeckName
=
Path
.
GetFileNameWithoutExtension
(
deckPath
);
var
oldDeckName
=
Path
.
GetFileNameWithoutExtension
(
deckPath
);
if
(
oldDeckName
==
newName
)
if
(
oldDeckName
==
newName
)
return
newName
;
return
deckPath
;
var
folderPath
=
Path
.
GetDirectoryName
(
deckPath
);
var
folderPath
=
Path
.
GetDirectoryName
(
deckPath
);
if
(
folderPath
==
null
)
if
(
folderPath
==
null
)
return
null
;
return
null
;
...
...
Assets/Scripts/MDPro3/Servants/SelectPuzzle.cs
View file @
216c3162
...
@@ -161,7 +161,7 @@ namespace MDPro3
...
@@ -161,7 +161,7 @@ namespace MDPro3
if
(
percy
!=
null
)
if
(
percy
!=
null
)
percy
.
Dispose
();
percy
.
Dispose
();
percy
=
new
PercyOCG
();
percy
=
new
PercyOCG
();
percy
.
StartPuzzle
(
Program
.
puzzlePath
.
ToLower
()
+
puzzle
+
".lua"
);
percy
.
StartPuzzle
(
Program
.
puzzlePath
+
puzzle
+
".lua"
);
}
}
}
}
}
}
Data/locales/zh-CN/translation.conf
View file @
216c3162
...
@@ -661,3 +661,5 @@ YDK 内容不合法,主卡组必须满 40 张->YDK 内容不合法,主卡组
...
@@ -661,3 +661,5 @@ YDK 内容不合法,主卡组必须满 40 张->YDK 内容不合法,主卡组
保存所有衍生物卡图->保存所有衍生物卡图
保存所有衍生物卡图->保存所有衍生物卡图
卡图保存中->卡图保存中
卡图保存中->卡图保存中
错误:->错误:
错误:->错误:
保存卡组所有卡图->保存卡组所有卡图
保存卡组卡图->保存卡组卡图
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