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
d6adff5c
Commit
d6adff5c
authored
Apr 25, 2024
by
SherryChaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pick up monster closeup
parent
4e3828f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
1 deletion
+38
-1
Assets/Scripts/MDPro3/Servants/Menu.cs
Assets/Scripts/MDPro3/Servants/Menu.cs
+37
-0
Assets/Scripts/MDPro3/Servants/Setting.cs
Assets/Scripts/MDPro3/Servants/Setting.cs
+1
-1
No files found.
Assets/Scripts/MDPro3/Servants/Menu.cs
View file @
d6adff5c
...
...
@@ -9,6 +9,8 @@ using System;
using
UnityEngine.Networking
;
using
YgomSystem.LocalFileSystem.Internal
;
using
System.IO
;
using
MDPro3.YGOSharp
;
using
MDPro3.YGOSharp.OCGWrapper.Enums
;
namespace
MDPro3
{
...
...
@@ -143,7 +145,42 @@ namespace MDPro3
if
(
Program
.
TimePassed
()
-
exitPressedTime
<
300
)
OnReturn
();
}
#if UNITY_EDITOR
//if (Input.GetKeyDown(KeyCode.C))
//{
// CopyMonsterCutin();
//}
#endif
}
}
#if UNITY_EDITOR
void
CopyMonsterCutin
()
{
var
files
=
Directory
.
GetFiles
(
Program
.
closeupPath
);
foreach
(
var
file
in
files
)
{
var
code
=
0
;
try
{
code
=
int
.
Parse
(
Path
.
GetFileName
(
file
).
ToLower
().
Replace
(
".png"
,
string
.
Empty
));
}
catch
{
Debug
.
Log
(
"Error Closeup file name: "
+
file
);
continue
;
}
var
card
=
CardsManager
.
Get
(
code
);
if
((
card
.
Type
&
(
uint
)
CardType
.
Monster
)
>
0
||
(
card
.
Type
&
(
uint
)
CardType
.
TrapMonster
)
>
0
)
{
if
(!
Directory
.
Exists
(
"CloseupMonsters"
))
Directory
.
CreateDirectory
(
"CloseupMonsters"
);
File
.
Copy
(
file
,
Path
.
Combine
(
"CloseupMonsters"
,
Path
.
GetFileName
(
file
)));
}
}
}
#endif
}
}
Assets/Scripts/MDPro3/Servants/Setting.cs
View file @
d6adff5c
...
...
@@ -1055,7 +1055,7 @@ namespace MDPro3
else
{
replayCloseupValue
.
text
=
InterString
.
Get
(
"开"
);
Config
.
Set
(
"ReplayCloseup"
,
"
0
"
);
Config
.
Set
(
"ReplayCloseup"
,
"
1
"
);
}
Config
.
Save
();
Program
.
I
().
ocgcore
.
RefreshAllCardsLabel
();
...
...
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