變更
無編輯摘要
end
end
function group( name )
function group( name, frame )
if name == nil or name == '' then
if name == nil or name == '' then
return ''
return ''
end
end
function Gcode( args )
function Gcode( args, frame )
local code = {}
local code = {}
for i = 1, 30 do
for i = 1, 30 do
table.insert( code, group( args['G' .. i] ) )
table.insert( code, group( args['G' .. i], frame ) )
end
end
code = table.concat( code )
code = table.concat( code )
local args = frame:getParent().args
local args = frame:getParent().args
local Tc = Tcode( args )
local Tc = Tcode( args )
local Gc = Gcode( args )
local Gc = Gcode( args, frame )
local Lc = Lcode( args )
local Lc = Lcode( args )
local code = Tc .. Gc .. Lc
local code = Tc .. Gc .. Lc