准备颜色改为天蓝色,连接成功由变色改为半透明填充
This commit is contained in:
@@ -191,12 +191,17 @@ function netPLY.draw()
|
|||||||
gc_translate(p.x,p.y)
|
gc_translate(p.x,p.y)
|
||||||
--Rectangle
|
--Rectangle
|
||||||
gc_setColor(COLOR[
|
gc_setColor(COLOR[
|
||||||
p.mode==0 and'Z'or
|
p.mode==0 and'lH'or
|
||||||
p.mode==1 and(p.connected and"N"or"G")or
|
p.mode==1 and'N'or
|
||||||
p.mode==2 and(p.connected and"Y"or"F")
|
p.mode==2 and'F'
|
||||||
])
|
])
|
||||||
gc_setLineWidth(2)
|
gc_setLineWidth(2)
|
||||||
gc_rectangle('line',0,0,p.w,p.h)
|
gc_rectangle('line',0,0,p.w,p.h)
|
||||||
|
if p.connected then
|
||||||
|
local c=COLOR[p.mode==1 and'N'or'F']
|
||||||
|
gc_setColor(c[1],c[2],c[3],.26)
|
||||||
|
gc_rectangle('fill',0,0,p.w,p.h)
|
||||||
|
end
|
||||||
|
|
||||||
--Stencil
|
--Stencil
|
||||||
stencilW,stencilH=p.w,p.h
|
stencilW,stencilH=p.w,p.h
|
||||||
|
|||||||
Reference in New Issue
Block a user