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
Ricky
MDPro3
Commits
fc68c3f3
Commit
fc68c3f3
authored
Apr 25, 2024
by
SherryChaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
fc32ab1e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
12 deletions
+23
-12
Assets/Addressables/AddressableAssetsData/Windows/addressables_content_state.bin
...ressableAssetsData/Windows/addressables_content_state.bin
+0
-0
Assets/Scripts/MDPro3/Helper/PortHelper.cs
Assets/Scripts/MDPro3/Helper/PortHelper.cs
+14
-6
Assets/Scripts/MDPro3/Managers/TextureManager.cs
Assets/Scripts/MDPro3/Managers/TextureManager.cs
+5
-0
Assets/Scripts/MDPro3/Servants/MonsterCutin.cs
Assets/Scripts/MDPro3/Servants/MonsterCutin.cs
+2
-5
ProjectSettings/ProjectSettings.asset
ProjectSettings/ProjectSettings.asset
+2
-1
No files found.
Assets/Addressables/AddressableAssetsData/Windows/addressables_content_state.bin
View file @
fc68c3f3
No preview for this file type
Assets/Scripts/MDPro3/Helper/PortHelper.cs
View file @
fc68c3f3
...
...
@@ -36,27 +36,35 @@ namespace MDPro3
if
(!
Directory
.
Exists
(
Program
.
cardPicPath
))
Directory
.
CreateDirectory
(
Program
.
cardPicPath
);
var
filePaths
=
Directory
.
GetFiles
(
Program
.
cardPicPath
);
Export
(
filePaths
);
Export
(
filePaths
,
false
);
}
static
void
Export
(
string
[]
filePaths
)
static
void
Export
(
string
[]
filePaths
,
bool
copy
=
true
)
{
#if UNITY_ANDROID && !UNITY_EDITOR
NativeFilePicker
.
ExportMultipleFiles
(
filePaths
,
ExportResult
);
if
(!
copy
)
foreach
(
var
file
in
filePaths
)
File
.
Delete
(
file
);
#else
StandaloneFileBrowser
.
OpenFolderPanelAsync
(
InterString
.
Get
(
"请选择导出目录"
),
""
,
false
,
(
string
[]
paths
)
=>
{
ExportFiles
(
paths
,
filePaths
);
ExportFiles
(
paths
,
filePaths
,
copy
);
});
#endif
}
private
static
void
ExportFiles
(
string
[]
result
,
string
[]
filePaths
)
private
static
void
ExportFiles
(
string
[]
result
,
string
[]
filePaths
,
bool
copy
=
true
)
{
try
{
foreach
(
var
file
in
filePaths
)
File
.
Copy
(
file
,
Path
.
Combine
(
result
.
FirstOrDefault
(),
Path
.
GetFileName
(
file
)));
foreach
(
var
file
in
filePaths
)
{
if
(
copy
)
File
.
Copy
(
file
,
Path
.
Combine
(
result
.
FirstOrDefault
(),
Path
.
GetFileName
(
file
)));
else
File
.
Move
(
file
,
Path
.
Combine
(
result
.
FirstOrDefault
(),
Path
.
GetFileName
(
file
)));
}
ExportResult
(
true
);
}
catch
...
...
Assets/Scripts/MDPro3/Managers/TextureManager.cs
View file @
fc68c3f3
...
...
@@ -9,6 +9,7 @@ using YgomSystem.ElementSystem;
using
MDPro3.YGOSharp
;
using
MDPro3.YGOSharp.OCGWrapper.Enums
;
using
static
MDPro3
.
EditDeck
;
using
DG.Tweening
;
namespace
MDPro3
{
...
...
@@ -370,6 +371,10 @@ namespace MDPro3
var
aspect
=
(
float
)
tex
.
width
/
tex
.
height
;
renderer
.
transform
.
localScale
=
new
Vector3
(
8f
*
aspect
,
8f
,
1f
);
renderer
.
gameObject
.
SetActive
(
true
);
DOTween
.
To
(()
=>
0f
,
x
=>
{
renderer
.
transform
.
localScale
=
new
Vector3
(
x
*
aspect
,
x
,
1f
);
},
8f
,
0.3f
);
}
public
Texture2D
GetNameMask
(
int
code
,
bool
cache
=
false
)
...
...
Assets/Scripts/MDPro3/Servants/MonsterCutin.cs
View file @
fc68c3f3
...
...
@@ -193,13 +193,10 @@ namespace MDPro3
loader
.
transform
.
SetParent
(
Program
.
I
().
container_2D
,
false
);
Destroy
(
loader
,
1.6f
);
if
(
diy
)
{
}
else
if
(!
diy
)
{
loader
.
transform
.
GetChild
(
0
).
localPosition
=
Vector3
.
zero
;
loader
.
transform
.
GetChild
(
0
).
GetComponent
<
PlayableDirector
>().
time
=
0
;
}
//BackEffects
...
...
ProjectSettings/ProjectSettings.asset
View file @
fc68c3f3
...
...
@@ -135,7 +135,8 @@ PlayerSettings:
16:9:
1
Others
:
1
bundleVersion
:
1.0.8
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