注释后加空格
联网稍微推进
This commit is contained in:
@@ -7,7 +7,7 @@ local gc_setColor,gc_print=gc.setColor,gc.print
|
||||
|
||||
local scene={}
|
||||
|
||||
local cur--Cursor position
|
||||
local cur-- Cursor position
|
||||
|
||||
function scene.sceneInit()
|
||||
cur=#BAG
|
||||
@@ -80,7 +80,7 @@ function scene.keyDown(key)
|
||||
end
|
||||
elseif key=='v' and kb.isDown('lctrl','rctrl') or key=='cV' then
|
||||
local str=sys.getClipboardText()
|
||||
local p=str:find(":")--ptr*
|
||||
local p=str:find(":")-- ptr*
|
||||
if p then
|
||||
if not str:sub(1,p-1):find("SEQ") then
|
||||
MES.new('error',text.pasteWrongPlace)
|
||||
@@ -114,17 +114,17 @@ end
|
||||
|
||||
local blockCharWidth={} for i=1,#BLOCK_CHARS do blockCharWidth[i]=gc.newText(FONT.get(60),BLOCK_CHARS[i]):getWidth() end
|
||||
function scene.draw()
|
||||
--Draw frame
|
||||
-- Draw frame
|
||||
gc_setColor(COLOR.Z)
|
||||
gc.setLineWidth(2)
|
||||
gc.rectangle('line',100,110,1080,260,5)
|
||||
|
||||
--Draw sequence
|
||||
-- Draw sequence
|
||||
local BLOCK_COLORS=BLOCK_COLORS
|
||||
local skinSetting=SETTING.skin
|
||||
local BAG=BAG
|
||||
local x,y=120,136--Next block pos
|
||||
local cx,cy=120,136--Cursor-center pos
|
||||
local x,y=120,136-- Next block pos
|
||||
local cx,cy=120,136-- Cursor-center pos
|
||||
local i,j=1,#BAG
|
||||
local count=1
|
||||
repeat
|
||||
@@ -159,12 +159,12 @@ function scene.draw()
|
||||
i=i+1
|
||||
until i>j+1
|
||||
|
||||
--Draw lenth
|
||||
-- Draw lenth
|
||||
setFont(40)
|
||||
gc_setColor(COLOR.Z)
|
||||
gc_print(#BAG,120,310)
|
||||
|
||||
--Draw cursor
|
||||
-- Draw cursor
|
||||
gc_setColor(.5,1,.5,.6+.4*sin(TIME()*6.26))
|
||||
gc.line(cx-5,cy-20,cx-5,cy+20)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user