Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
Nguyễn Anh Kiệt
ygopro-222DIY-cards
Commits
56cbe409
Commit
56cbe409
authored
Aug 10, 2024
by
Huangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
group.foreach fix
parent
612eb29e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
expansions/script/special.lua
expansions/script/special.lua
+12
-0
No files found.
expansions/script/special.lua
View file @
56cbe409
function
Auxiliary
.
PreloadUds
()
function
Auxiliary
.
PreloadUds
()
--require(lib) redirect
function
require
(
str
)
function
require
(
str
)
dofile
(
str
..
".lua"
)
dofile
(
str
..
".lua"
)
--[[local len = string.len(str)
--[[local len = string.len(str)
...
@@ -15,4 +17,14 @@ function Auxiliary.PreloadUds()
...
@@ -15,4 +17,14 @@ function Auxiliary.PreloadUds()
end
end
]]
--
]]
--
end
end
--Group.ForEach redirect
function
Group
.
ForEach
(
group
,
func
,
...
)
if
aux
.
GetValueType
(
group
)
==
"Group"
and
group
:
GetCount
()
>
0
then
local
d_group
=
group
:
Clone
()
for
tc
in
aux
.
Next
(
d_group
)
do
func
(
tc
,
...
)
end
end
end
end
end
\ No newline at end of file
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