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
0889f6e8
Commit
0889f6e8
authored
May 25, 2024
by
SherryChaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
speed up for duel
parent
37e4b30b
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
103 additions
and
539 deletions
+103
-539
Assets/AddressableAssetsData/link.xml
Assets/AddressableAssetsData/link.xml
+0
-279
Assets/AddressableAssetsData/link.xml.meta
Assets/AddressableAssetsData/link.xml.meta
+0
-7
Assets/Addressables/Text/UpdateContent.txt
Assets/Addressables/Text/UpdateContent.txt
+4
-4
Assets/Fonts/SourceHanSansSC-Medium SDF.asset
Assets/Fonts/SourceHanSansSC-Medium SDF.asset
+39
-24
Assets/Main.unity
Assets/Main.unity
+23
-211
Assets/Scripts/MDPro3/Servants/OcgCore.cs
Assets/Scripts/MDPro3/Servants/OcgCore.cs
+13
-8
Assets/Scripts/MDPro3/Servants/Setting.cs
Assets/Scripts/MDPro3/Servants/Setting.cs
+11
-4
Assets/Scripts/MDPro3/Tools.cs
Assets/Scripts/MDPro3/Tools.cs
+9
-0
Assets/Scripts/MDPro3/UI/Handler/TimerHandler.cs
Assets/Scripts/MDPro3/UI/Handler/TimerHandler.cs
+1
-1
Assets/Scripts/MDPro3/UI/Popup/PopupDuelSelectCardItem.cs
Assets/Scripts/MDPro3/UI/Popup/PopupDuelSelectCardItem.cs
+3
-1
No files found.
Assets/AddressableAssetsData/link.xml
deleted
100644 → 0
View file @
37e4b30b
This diff is collapsed.
Click to expand it.
Assets/AddressableAssetsData/link.xml.meta
deleted
100644 → 0
View file @
37e4b30b
fileFormatVersion: 2
guid: 27f50d889844fb84ca79ae8635801e2d
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Assets/Addressables/Text/UpdateContent.txt
View file @
0889f6e8
MDPro3 v1.1.1更新:
MDPro3 v1.1.1更新:
1.
同步YGOPro,支持组队决斗投降
。
1.
新投稿动画:琰魔龙 红莲魔·渊、龙骑士 D-终
。
2.
修复上版本中,部分新卡在本地模式下无法发动效果的错误
。
2.
现在在决斗中也能开启加速了,回放下为2倍速,其他模式下为1.5倍速
。
3.修复上版本中,
编辑卡组模式下,卡图加载过程中退出卡组编辑模式,导致游戏不能继续读取卡图
的错误。
3.修复上版本中,
部分新卡在本地模式下无法发动效果
的错误。
4.修复上版本中,编辑卡组模式下,卡图加载过程中退出卡组编辑模式,导致游戏不能继续读取卡图的错误。
MDPro3 v1.1.0更新:
MDPro3 v1.1.0更新:
0.本次更新安卓端需要卸载老版本才能进行安装。安卓端的首选图形API改为Vulkan。
0.本次更新安卓端需要卸载老版本才能进行安装。安卓端的首选图形API改为Vulkan。
...
...
Assets/Fonts/SourceHanSansSC-Medium SDF.asset
View file @
0889f6e8
This diff is collapsed.
Click to expand it.
Assets/Main.unity
View file @
0889f6e8
This diff is collapsed.
Click to expand it.
Assets/Scripts/MDPro3/Servants/OcgCore.cs
View file @
0889f6e8
...
@@ -40,7 +40,6 @@ namespace MDPro3
...
@@ -40,7 +40,6 @@ namespace MDPro3
public
CardList
list
;
public
CardList
list
;
public
DuelLog
log
;
public
DuelLog
log
;
public
RectTransform
popup
;
public
RectTransform
popup
;
public
GameObject
replayButtons
;
public
GameObject
buttonStop
;
public
GameObject
buttonStop
;
public
GameObject
buttonPlay
;
public
GameObject
buttonPlay
;
public
GameObject
buttonAcc
;
public
GameObject
buttonAcc
;
...
@@ -174,14 +173,19 @@ namespace MDPro3
...
@@ -174,14 +173,19 @@ namespace MDPro3
}
}
public
void
OnAcc
()
public
void
OnAcc
()
{
{
float
targetSpeed
=
1.5f
;
#if UNITY_EDITOR
#if UNITY_EDITOR
Program
.
I
().
timeScaleForEdit
=
2f
;
if
(
condition
==
Condition
.
Replay
)
targetSpeed
=
2f
;
Program
.
I
().
timeScaleForEdit
=
targetSpeed
;
#else
#else
Program
.
I
().
timeScale
=
2f
;
if
(
condition
==
Condition
.
Replay
)
targetSpeed
=
2f
;
Program
.
I
().
timeScale
=
targetSpeed
;
#endif
#endif
buttonAcc
.
SetActive
(
false
);
buttonAcc
.
SetActive
(
false
);
buttonNor
.
SetActive
(
true
);
buttonNor
.
SetActive
(
true
);
SetBgTimeScale
(
0.5f
);
SetBgTimeScale
(
1f
/
targetSpeed
);
}
}
public
void
OnNor
()
public
void
OnNor
()
{
{
...
@@ -1450,10 +1454,6 @@ namespace MDPro3
...
@@ -1450,10 +1454,6 @@ namespace MDPro3
cantCheckGrave
=
false
;
cantCheckGrave
=
false
;
cookie_matchKill
=
0
;
cookie_matchKill
=
0
;
needDamageResponseInstant
=
false
;
needDamageResponseInstant
=
false
;
if
(
condition
==
Condition
.
Replay
)
replayButtons
.
SetActive
(
true
);
else
replayButtons
.
SetActive
(
false
);
buttonStop
.
SetActive
(
true
);
buttonStop
.
SetActive
(
true
);
buttonPlay
.
SetActive
(
false
);
buttonPlay
.
SetActive
(
false
);
buttonAcc
.
SetActive
(
true
);
buttonAcc
.
SetActive
(
true
);
...
@@ -7089,10 +7089,15 @@ namespace MDPro3
...
@@ -7089,10 +7089,15 @@ namespace MDPro3
{
{
Tools
.
SetAnimatorTimescale
(
field0
.
transform
,
timeScale
);
Tools
.
SetAnimatorTimescale
(
field0
.
transform
,
timeScale
);
Tools
.
SetAnimatorTimescale
(
field1
.
transform
,
timeScale
);
Tools
.
SetAnimatorTimescale
(
field1
.
transform
,
timeScale
);
Tools
.
SetParticleSystemSimulationSpeed
(
field0
.
transform
,
timeScale
);
Tools
.
SetParticleSystemSimulationSpeed
(
field1
.
transform
,
timeScale
);
if
(
mate0
!=
null
)
if
(
mate0
!=
null
)
mate0
.
SetTimeScale
(
timeScale
);
mate0
.
SetTimeScale
(
timeScale
);
if
(
mate1
!=
null
)
if
(
mate1
!=
null
)
mate1
.
SetTimeScale
(
timeScale
);
mate1
.
SetTimeScale
(
timeScale
);
foreach
(
var
card
in
cards
)
if
(
card
.
model
!=
null
)
Tools
.
SetAnimatorTimescale
(
card
.
model
.
transform
,
timeScale
);
}
}
public
void
GraveBgEffect
(
GPS
p
,
bool
cardIn
)
public
void
GraveBgEffect
(
GPS
p
,
bool
cardIn
)
...
...
Assets/Scripts/MDPro3/Servants/Setting.cs
View file @
0889f6e8
...
@@ -242,30 +242,37 @@ namespace MDPro3
...
@@ -242,30 +242,37 @@ namespace MDPro3
exportPicture
.
onClick
.
AddListener
(
OnExportPictures
);
exportPicture
.
onClick
.
AddListener
(
OnExportPictures
);
clearPicture
.
onClick
.
AddListener
(
OnClearPictures
);
clearPicture
.
onClick
.
AddListener
(
OnClearPictures
);
clearExpansions
.
onClick
.
AddListener
(
OnClearExpansions
);
clearExpansions
.
onClick
.
AddListener
(
OnClearExpansions
);
supportExpansions
.
onClick
.
AddListener
(
OnSupportExpansions
);
updatePrerelease
.
onClick
.
AddListener
(
OnUpdatePrerelease
);
bgmVol
.
value
=
int
.
Parse
(
Config
.
Get
(
"BgmVol"
,
"700"
))
/
(
float
)
1000
;
bgmVol
.
value
=
int
.
Parse
(
Config
.
Get
(
"BgmVol"
,
"700"
))
/
(
float
)
1000
;
OnBgmVolChange
(
bgmVol
.
value
);
seVol
.
value
=
int
.
Parse
(
Config
.
Get
(
"SeVol"
,
"700"
))
/
(
float
)
1000
;
seVol
.
value
=
int
.
Parse
(
Config
.
Get
(
"SeVol"
,
"700"
))
/
(
float
)
1000
;
OnSeVolChange
(
seVol
.
value
);
voiceVol
.
value
=
int
.
Parse
(
Config
.
Get
(
"VoiceVol"
,
"700"
))
/
(
float
)
1000
;
voiceVol
.
value
=
int
.
Parse
(
Config
.
Get
(
"VoiceVol"
,
"700"
))
/
(
float
)
1000
;
OnVoiceVolChange
(
voiceVol
.
value
);
fps
.
value
=
int
.
Parse
(
Config
.
Get
(
"FPS"
,
"60"
));
fps
.
value
=
int
.
Parse
(
Config
.
Get
(
"FPS"
,
"60"
));
scale
.
value
=
int
.
Parse
(
Config
.
Get
(
"Scale"
,
"1000"
))
/
(
float
)
1000
;
OnFpsChange
(
fps
.
value
);
supportExpansions
.
onClick
.
AddListener
(
OnSupportExpansions
);
updatePrerelease
.
onClick
.
AddListener
(
OnUpdatePrerelease
);
var
defau
=
"1000"
;
var
defau
=
"1000"
;
#if UNITY_ANDROID
#if UNITY_ANDROID
defau
=
"500"
;
defau
=
"500"
;
#endif
#endif
scale
.
value
=
int
.
Parse
(
Config
.
Get
(
"Scale"
,
defau
))
/
(
float
)
1000
;
scale
.
value
=
int
.
Parse
(
Config
.
Get
(
"Scale"
,
defau
))
/
(
float
)
1000
;
OnScaleChange
(
scale
.
value
);
defau
=
"1000"
;
defau
=
"1000"
;
#if UNITY_ANDROID
#if UNITY_ANDROID
defau
=
"1500"
;
defau
=
"1500"
;
#endif
#endif
uiScale
.
value
=
int
.
Parse
(
Config
.
Get
(
"UIScale"
,
defau
))
/
(
float
)
1000
;
uiScale
.
value
=
int
.
Parse
(
Config
.
Get
(
"UIScale"
,
defau
))
/
(
float
)
1000
;
quality
.
value
=
int
.
Parse
(
Config
.
Get
(
"Quality"
,
"3"
));
quality
.
value
=
int
.
Parse
(
Config
.
Get
(
"Quality"
,
"3"
));
OnQualityChange
(
quality
.
value
);
faa
.
value
=
int
.
Parse
(
Config
.
Get
(
"FAA"
,
"1"
));
faa
.
value
=
int
.
Parse
(
Config
.
Get
(
"FAA"
,
"1"
));
OnFAAChange
(
faa
.
value
);
aaa
.
value
=
int
.
Parse
(
Config
.
Get
(
"AAA"
,
"0"
));
aaa
.
value
=
int
.
Parse
(
Config
.
Get
(
"AAA"
,
"0"
));
OnAAAChange
(
aaa
.
value
);
shadow
.
value
=
int
.
Parse
(
Config
.
Get
(
"Shadow"
,
"0"
));
shadow
.
value
=
int
.
Parse
(
Config
.
Get
(
"Shadow"
,
"0"
));
OnShadowChange
(
shadow
.
value
);
InitializeShowFPS
();
InitializeShowFPS
();
InitializeScreenMode
();
InitializeScreenMode
();
InitializeResolution
();
InitializeResolution
();
...
...
Assets/Scripts/MDPro3/Tools.cs
View file @
0889f6e8
...
@@ -75,6 +75,15 @@ namespace MDPro3
...
@@ -75,6 +75,15 @@ namespace MDPro3
foreach
(
var
animator
in
container
.
GetComponentsInChildren
<
Animator
>(
true
))
foreach
(
var
animator
in
container
.
GetComponentsInChildren
<
Animator
>(
true
))
animator
.
speed
=
timeScale
;
animator
.
speed
=
timeScale
;
}
}
public
static
void
SetParticleSystemSimulationSpeed
(
Transform
container
,
float
timeScale
)
{
foreach
(
var
particle
in
container
.
GetComponentsInChildren
<
ParticleSystem
>(
true
))
{
var
main
=
particle
.
main
;
main
.
simulationSpeed
=
timeScale
;
}
}
public
static
void
SetPlayableDirectorUnscaledGameTime
(
Transform
container
)
public
static
void
SetPlayableDirectorUnscaledGameTime
(
Transform
container
)
{
{
foreach
(
var
director
in
container
.
GetComponentsInChildren
<
PlayableDirector
>(
true
))
foreach
(
var
director
in
container
.
GetComponentsInChildren
<
PlayableDirector
>(
true
))
...
...
Assets/Scripts/MDPro3/UI/Handler/TimerHandler.cs
View file @
0889f6e8
...
@@ -51,7 +51,7 @@ namespace MDPro3.UI
...
@@ -51,7 +51,7 @@ namespace MDPro3.UI
if
(
timeLimit
==
0
)
if
(
timeLimit
==
0
)
DuelEnd
();
DuelEnd
();
pastTime
+=
Time
.
d
eltaTime
;
pastTime
+=
Time
.
unscaledD
eltaTime
;
int
remainTime
=
Mathf
.
CeilToInt
(
time
-
pastTime
);
int
remainTime
=
Mathf
.
CeilToInt
(
time
-
pastTime
);
text
.
text
=
remainTime
.
ToString
();
text
.
text
=
remainTime
.
ToString
();
...
...
Assets/Scripts/MDPro3/UI/Popup/PopupDuelSelectCardItem.cs
View file @
0889f6e8
...
@@ -35,6 +35,8 @@ namespace MDPro3.UI
...
@@ -35,6 +35,8 @@ namespace MDPro3.UI
public
bool
unselectable
;
public
bool
unselectable
;
static
Color
unselectableColor
=
new
Color
(
0.5f
,
0.5f
,
0.5f
,
1f
);
static
Color
unselectableColor
=
new
Color
(
0.5f
,
0.5f
,
0.5f
,
1f
);
public
bool
preselected
;
public
bool
preselected
;
static
float
doubleClickTime
=
0.2f
;
private
void
Start
()
private
void
Start
()
{
{
...
@@ -159,7 +161,7 @@ namespace MDPro3.UI
...
@@ -159,7 +161,7 @@ namespace MDPro3.UI
{
{
if
(!
unselectable
)
if
(!
unselectable
)
{
{
if
((
Time
.
time
-
clickTime
)
<
0.2f
)
if
((
Time
.
time
-
clickTime
)
<
doubleClickTime
*
Time
.
timeScale
)
{
{
if
(
manager
.
selectedCount
==
1
&&
manager
.
min
==
1
&&
manager
.
max
==
1
)
if
(
manager
.
selectedCount
==
1
&&
manager
.
min
==
1
&&
manager
.
max
==
1
)
manager
.
OnConfirm
();
manager
.
OnConfirm
();
...
...
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