MES模块增加更多图标,调整使用方法

This commit is contained in:
MrZ626
2021-06-14 01:02:38 +08:00
parent 28cf3d878f
commit c17865d777
28 changed files with 150 additions and 125 deletions

View File

@@ -3,7 +3,6 @@ local kb=love.keyboard
local int,sin=math.floor,math.sin
local ins,rem=table.insert,table.remove
local sub=string.sub
local scene={}
@@ -71,22 +70,22 @@ function scene.keyDown(key)
elseif key=="c"and kb.isDown("lctrl","rctrl")or key=="cC"then
if #MISSION>0 then
sys.setClipboardText("Techmino Target:"..DATA.copyMission())
MES.new(text.exportSuccess)
MES.new('check',text.exportSuccess)
end
elseif key=="v"and kb.isDown("lctrl","rctrl")or key=="cV"then
local str=sys.getClipboardText()
local p=str:find(":")--ptr*
if p then
if not str:sub(1,p-1):find("Target")then
MES.new(text.pasteWrongPlace)
MES.new('error',text.pasteWrongPlace)
end
str=str:sub(p+1)
end
if DATA.pasteMission(str)then
MES.new(text.importSuccess)
MES.new('check',text.importSuccess)
cur=#MISSION
else
MES.new(text.dataCorrupted)
MES.new('error',text.dataCorrupted)
end
elseif key=="escape"then
SCN.back()