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
minh khanh
MDPro3
Commits
a186af36
Commit
a186af36
authored
May 27, 2024
by
SherryChaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix deleting deck bug
parent
ce07cb07
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
207 additions
and
38 deletions
+207
-38
Assets/AddressableAssetsData/Android/addressables_content_state.bin
...ressableAssetsData/Android/addressables_content_state.bin
+0
-0
Assets/AddressableAssetsData/Windows/addressables_content_state.bin
...ressableAssetsData/Windows/addressables_content_state.bin
+0
-0
Assets/Addressables/Text/UpdateContent.txt
Assets/Addressables/Text/UpdateContent.txt
+2
-1
Assets/Main.unity
Assets/Main.unity
+179
-27
Assets/Scripts/MDPro3/Servants/OcgCore.cs
Assets/Scripts/MDPro3/Servants/OcgCore.cs
+5
-1
Assets/Scripts/MDPro3/Servants/SelectDeck.cs
Assets/Scripts/MDPro3/Servants/SelectDeck.cs
+11
-8
Assets/Scripts/MDPro3/UI/SuperScrollView/SuperScrollView.cs
Assets/Scripts/MDPro3/UI/SuperScrollView/SuperScrollView.cs
+1
-0
Assets/Scripts/MDPro3/UI/SuperScrollView/SuperScrollViewItem.cs
.../Scripts/MDPro3/UI/SuperScrollView/SuperScrollViewItem.cs
+1
-0
Assets/Scripts/MDPro3/UI/SuperScrollView/SuperScrollViewItemForDeckSelect.cs
...o3/UI/SuperScrollView/SuperScrollViewItemForDeckSelect.cs
+7
-0
ProjectSettings/ProjectSettings.asset
ProjectSettings/ProjectSettings.asset
+1
-1
No files found.
Assets/AddressableAssetsData/Android/addressables_content_state.bin
View file @
a186af36
No preview for this file type
Assets/AddressableAssetsData/Windows/addressables_content_state.bin
View file @
a186af36
No preview for this file type
Assets/Addressables/Text/UpdateContent.txt
View file @
a186af36
MDPro3 v1.1.2更新:
1.修复了在决斗中需要输入文字时(如[抹杀之指名者]),会响应快捷键功能的错误。
2.修复由对方发动的[闪刀起动-交闪]的特效中的卡片不是检索的卡片的错误。
3.增加发送消息的间隔时间,减少CPU开销。
3.修复选择卡组界面的卡组数多到需要滚动浏览时,删除卡组会错位删除的错误。
4.增加发送消息的间隔时间,减少CPU开销。
MDPro3 v1.1.1更新:
1.新投稿动画:琰魔龙 红莲魔·渊、龙骑士 D-终。
...
...
Assets/Main.unity
View file @
a186af36
This diff is collapsed.
Click to expand it.
Assets/Scripts/MDPro3/Servants/OcgCore.cs
View file @
a186af36
...
...
@@ -19,7 +19,6 @@ using MDPro3.YGOSharp;
using
MDPro3.YGOSharp.OCGWrapper.Enums
;
using
static
YgomGame
.
Bg
.
BgEffectSettingInner
;
using
MDPro3.UI
;
using
Mono.Cecil.Cil
;
namespace
MDPro3
{
...
...
@@ -45,6 +44,7 @@ namespace MDPro3
public
GameObject
buttonPlay
;
public
GameObject
buttonAcc
;
public
GameObject
buttonNor
;
public
GameObject
buttonReplayQuit
;
public
GameObject
buttonForceSaveReplay
;
public
Button
buttonTiming
;
public
Button
buttonLog
;
...
...
@@ -1481,6 +1481,10 @@ namespace MDPro3
}
else
buttonTiming
.
gameObject
.
SetActive
(
false
);
if
(
condition
==
Condition
.
Replay
)
buttonReplayQuit
.
SetActive
(
true
);
else
buttonReplayQuit
.
SetActive
(
false
);
HidePlaceCount
();
mySummonCount
=
0
;
mySpSummonCount
=
0
;
...
...
Assets/Scripts/MDPro3/Servants/SelectDeck.cs
View file @
a186af36
...
...
@@ -133,12 +133,13 @@ namespace MDPro3
{
if
(!
deck
.
Key
.
Contains
(
search
))
continue
;
var
task
=
new
string
[
6
]
var
task
=
new
string
[
7
]
{
deck
.
Key
,
deck
.
Value
.
Case
[
0
].
ToString
(),
"0"
,
"0"
,
"0"
,
deck
.
Value
.
Protector
[
0
].
ToString
()
deck
.
Value
.
Protector
[
0
].
ToString
(),
"0"
//For Delete
};
if
(
deck
.
Value
.
Pickup
.
Count
>
0
)
task
[
2
]
=
deck
.
Value
.
Pickup
[
0
].
ToString
();
...
...
@@ -161,6 +162,7 @@ namespace MDPro3
handler
.
card2
=
int
.
Parse
(
task
[
3
]);
handler
.
card3
=
int
.
Parse
(
task
[
4
]);
handler
.
protector
=
task
[
5
];
handler
.
selected
=
task
[
6
]
!=
"0"
;
handler
.
Refresh
();
}
...
...
@@ -260,25 +262,26 @@ namespace MDPro3
{
deleting
=
false
;
int
count
=
0
;
foreach
(
var
item
in
items
)
if
(
item
.
selected
)
foreach
(
var
item
in
superScrollView
.
items
)
if
(
item
.
args
[
6
]
!=
"0"
)
{
count
++;
File
.
Delete
(
"Deck/"
+
item
.
deckName
+
".ydk"
);
MessageManager
.
Cast
(
InterString
.
Get
(
"已删除卡组「[?]」"
,
item
.
dec
kName
));
File
.
Delete
(
"Deck/"
+
item
.
args
[
0
]
+
".ydk"
);
MessageManager
.
Cast
(
InterString
.
Get
(
"已删除卡组「[?]」"
,
item
.
ar
gs
[
0
]));
}
if
(
count
>
0
)
RefreshList
();
else
{
ExitDeleteDeck
();
}
}
}
void
ExitDeleteDeck
()
{
deleting
=
false
;
if
(
superScrollView
!=
null
)
foreach
(
var
item
in
superScrollView
.
items
)
item
.
args
[
6
]
=
"0"
;
foreach
(
var
item
in
items
)
item
.
HideToggle
();
}
...
...
Assets/Scripts/MDPro3/UI/SuperScrollView/SuperScrollView.cs
View file @
a186af36
...
...
@@ -93,6 +93,7 @@ namespace MDPro3.UI
{
items
[
i
].
gameObject
=
UnityEngine
.
Object
.
Instantiate
(
itemObject
);
items
[
i
].
gameObject
.
transform
.
SetParent
(
scrollView
.
content
,
false
);
items
[
i
].
gameObject
.
GetComponent
<
SuperScrollViewItem
>().
handler
=
this
;
ItemRefreshPositon
(
i
);
}
}
...
...
Assets/Scripts/MDPro3/UI/SuperScrollView/SuperScrollViewItem.cs
View file @
a186af36
...
...
@@ -8,6 +8,7 @@ namespace MDPro3.UI
public
class
SuperScrollViewItem
:
MonoBehaviour
{
public
int
id
;
public
SuperScrollView
handler
;
private
void
Start
()
{
...
...
Assets/Scripts/MDPro3/UI/SuperScrollView/SuperScrollViewItemForDeckSelect.cs
View file @
a186af36
...
...
@@ -47,6 +47,11 @@ namespace MDPro3.UI
bool
refreshed
;
IEnumerator
RefreshAsync
()
{
if
(
selected
)
ToggleOn
();
else
ToggleOff
();
refreshed
=
false
;
textName
.
text
=
deckName
;
var
casePath
=
deckCase
.
ToString
();
...
...
@@ -209,11 +214,13 @@ namespace MDPro3.UI
{
selected
=
true
;
toggleOn
.
SetActive
(
true
);
handler
.
items
[
id
].
args
[
6
]
=
"1"
;
}
public
void
ToggleOff
()
{
selected
=
false
;
toggleOn
.
SetActive
(
false
);
handler
.
items
[
id
].
args
[
6
]
=
"0"
;
}
}
}
ProjectSettings/ProjectSettings.asset
View file @
a186af36
...
...
@@ -551,7 +551,7 @@ PlayerSettings:
m_APIs
:
0b000000
m_Automatic
:
1
-
m_BuildTarget
:
WindowsStandaloneSupport
m_APIs
:
1500000002
000000
m_APIs
:
0200000015
000000
m_Automatic
:
0
m_BuildTargetVRSettings
:
-
m_BuildTarget
:
Standalone
...
...
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