调整上个commit的相关内容
This commit is contained in:
@@ -191,7 +191,7 @@ function scene.keyDown(key,isRep)
|
||||
elseif key=='v' and kb.isDown('lctrl','rctrl') or key=='cV' then
|
||||
local str=sys.getClipboardText()
|
||||
local args=str:sub((str:find(":") or 0)+1):split("!")
|
||||
local flagHasBoardWithLineLimit=false
|
||||
local hasTooHighField=false
|
||||
repeat
|
||||
if #args<4 then break end-- goto THROW_fail
|
||||
local success,env=DATA.pasteQuestArgs(args[1])
|
||||
@@ -211,12 +211,11 @@ function scene.keyDown(key,isRep)
|
||||
TABLE.cut(CUSTOMGAME_LOCAL.field)
|
||||
CUSTOMGAME_LOCAL.field[1]=DATA.newBoard()
|
||||
for i=4,#args do
|
||||
|
||||
if args[i]:find("%S") then
|
||||
local success, F, flagBoardLineLimit=DATA.pasteBoard(args[i])
|
||||
local success,F,hitHeightLimit=DATA.pasteBoard(args[i])
|
||||
if success then
|
||||
if flagBoardLineLimit then
|
||||
flagHasBoardWithLineLimit=true
|
||||
if hitHeightLimit then
|
||||
hasTooHighField=true
|
||||
end
|
||||
CUSTOMGAME_LOCAL.field[i-3]=F
|
||||
else
|
||||
@@ -224,8 +223,8 @@ function scene.keyDown(key,isRep)
|
||||
end
|
||||
end
|
||||
end
|
||||
if flagHasBoardWithLineLimit then
|
||||
MES.new('warn', text.customDataBoardLineLimit)
|
||||
if hasTooHighField then
|
||||
MES.new('warn',text.tooHighField)
|
||||
end
|
||||
MES.new('check',text.importSuccess)
|
||||
return
|
||||
|
||||
@@ -237,11 +237,11 @@ function scene.keyDown(key)
|
||||
end
|
||||
str=str:sub(p+1)
|
||||
end
|
||||
local success,F, flagBoardLineLimit=DATA.pasteBoard(str)
|
||||
local success,F,hitHeightLimit=DATA.pasteBoard(str)
|
||||
if success then
|
||||
FIELD[page]=F
|
||||
if flagBoardLineLimit then
|
||||
MES.new('warn', text.customDataSingleBoardLineLimit)
|
||||
if hitHeightLimit then
|
||||
MES.new('warn',text.tooHighField)
|
||||
end
|
||||
MES.new('check',text.importSuccess)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user