Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-rush-duel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
5
Issues
5
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
MyCard
ygopro-rush-duel
Commits
6643da66
Commit
6643da66
authored
Oct 22, 2025
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2025/10/22 使用CancelableSelect减少选取的卡顿
parent
3457f111
Pipeline
#41193
passed with stages
in 5 minutes and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
28 deletions
+1
-28
script/RDFunction.lua
script/RDFunction.lua
+1
-28
No files found.
script/RDFunction.lua
View file @
6643da66
...
@@ -161,34 +161,7 @@ function RushDuel.SelectGroup(player, group, min, max)
...
@@ -161,34 +161,7 @@ function RushDuel.SelectGroup(player, group, min, max)
end
end
end
end
-- 多选
-- 多选
local
sg
=
Group
.
CreateGroup
()
return
group
:
CancelableSelect
(
player
,
min
,
max
,
nil
)
local
finish
=
(
#
sg
>=
min
and
#
sg
<=
max
)
while
#
sg
<
max
do
local
cg
=
group
:
Clone
()
cg
:
Sub
(
sg
)
finish
=
(
#
sg
>=
min
and
#
sg
<=
max
)
if
#
cg
==
0
then
break
end
local
cancel
=
not
finish
local
tc
=
cg
:
SelectUnselect
(
sg
,
player
,
finish
,
cancel
,
min
,
max
)
if
not
tc
then
break
end
if
not
sg
:
IsContains
(
tc
)
then
sg
:
AddCard
(
tc
)
if
#
sg
==
max
then
finish
=
true
end
else
sg
:
RemoveCard
(
tc
)
end
end
if
finish
then
return
sg
else
return
nil
end
end
end
-- 让玩家可以选择卡片组的 min ~ max 张卡
-- 让玩家可以选择卡片组的 min ~ max 张卡
...
...
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