序列/任务自定义编辑bug
This commit is contained in:
@@ -1377,12 +1377,14 @@ do--custom_seq
|
|||||||
S.cur=p
|
S.cur=p
|
||||||
end
|
end
|
||||||
elseif key=="ten"then
|
elseif key=="ten"then
|
||||||
S.cur=min(S.cur+9,#preBag)
|
for i=1,10 do
|
||||||
local p=S.cur
|
local p=S.cur
|
||||||
repeat
|
if p==#preBag then break end
|
||||||
p=p+1
|
repeat
|
||||||
until preBag[p+1]~=preBag[S.cur+1]
|
p=p+1
|
||||||
S.cur=p
|
until preBag[p+1]~=preBag[S.cur+1]
|
||||||
|
S.cur=p
|
||||||
|
end
|
||||||
elseif key=="c"and kb.isDown("lctrl","rctrl")or key=="cC"then
|
elseif key=="c"and kb.isDown("lctrl","rctrl")or key=="cC"then
|
||||||
if #preBag>0 then
|
if #preBag>0 then
|
||||||
sys.setClipboardText("Techmino SEQ:"..copySequence())
|
sys.setClipboardText("Techmino SEQ:"..copySequence())
|
||||||
@@ -1425,11 +1427,12 @@ do--custom_seq
|
|||||||
S.cur=S.cur+1
|
S.cur=S.cur+1
|
||||||
ins(preBag,S.cur,key)
|
ins(preBag,S.cur,key)
|
||||||
elseif #key==1 then
|
elseif #key==1 then
|
||||||
local i=(kb.isDown("lshift","lalt","rshift","ralt")and minoKey2 or minoKey)[key]
|
key=(kb.isDown("lshift","lalt","rshift","ralt")and minoKey2 or minoKey)[key]
|
||||||
if i then
|
if key then
|
||||||
local C=S.cur+1
|
local p=S.cur+1
|
||||||
ins(preBag,C,i)
|
while preBag[p]==key do p=p+1 end
|
||||||
S.cur=C
|
ins(preBag,p,key)
|
||||||
|
S.cur=p
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -1726,12 +1729,14 @@ do--custom_mission
|
|||||||
S.cur=p
|
S.cur=p
|
||||||
end
|
end
|
||||||
elseif key=="ten"then
|
elseif key=="ten"then
|
||||||
S.cur=min(S.cur+9,#preMission)
|
for i=1,10 do
|
||||||
local p=S.cur
|
local p=S.cur
|
||||||
repeat
|
if p==#preMission then break end
|
||||||
p=p+1
|
repeat
|
||||||
until preMission[p+1]~=preMission[S.cur+1]
|
p=p+1
|
||||||
S.cur=p
|
until preMission[p+1]~=preMission[S.cur+1]
|
||||||
|
S.cur=p
|
||||||
|
end
|
||||||
elseif key=="c"and kb.isDown("lctrl","rctrl")or key=="cC"then
|
elseif key=="c"and kb.isDown("lctrl","rctrl")or key=="cC"then
|
||||||
if #preMission>0 then
|
if #preMission>0 then
|
||||||
sys.setClipboardText("Techmino Target:"..copyMission())
|
sys.setClipboardText("Techmino Target:"..copyMission())
|
||||||
@@ -1771,8 +1776,10 @@ do--custom_mission
|
|||||||
elseif key=="escape"then
|
elseif key=="escape"then
|
||||||
SCN.back()
|
SCN.back()
|
||||||
elseif type(key)=="number"then
|
elseif type(key)=="number"then
|
||||||
S.cur=S.cur+1
|
local p=S.cur+1
|
||||||
ins(preMission,S.cur,key)
|
while preMission[p]==key do p=p+1 end
|
||||||
|
ins(preMission,p,key)
|
||||||
|
S.cur=p
|
||||||
else
|
else
|
||||||
if key=="space"then
|
if key=="space"then
|
||||||
key="_"
|
key="_"
|
||||||
|
|||||||
Reference in New Issue
Block a user