修复几处ui小问题
This commit is contained in:
@@ -207,8 +207,8 @@ local function drawFXs(P)
|
||||
gc_rectangle('fill',150-x*150,15-S[1]*30-y*15,300*x,y*30)
|
||||
end
|
||||
end
|
||||
local function drawGhost(P,clr)
|
||||
gc_setColor(1,1,1,P.gameEnv.ghost)
|
||||
local function drawGhost(P,clr,alpha)
|
||||
gc_setColor(1,1,1,alpha)
|
||||
local texture=SKIN.curText
|
||||
local CB=P.cur.bk
|
||||
for i=1,#CB do for j=1,#CB[1]do
|
||||
@@ -612,9 +612,9 @@ function draw.norm(P)
|
||||
|
||||
--Draw ghost & rotation center
|
||||
if ENV.ghost then
|
||||
drawGhost(P,curColor)
|
||||
drawGhost(P,curColor,ENV.ghost)
|
||||
if ENV.center then
|
||||
gc_setColor(1,1,1,trans*ENV.center)
|
||||
gc_setColor(1,1,1,ENV.center)
|
||||
gc_draw(spinCenterImg,centerX,-30*(P.ghoY+P.cur.sc[1])+15,nil,nil,nil,4,4)
|
||||
end
|
||||
end
|
||||
@@ -820,7 +820,7 @@ function draw.demo(P)
|
||||
drawField(P)
|
||||
drawFXs(P)
|
||||
if P.cur and P.waiting==-1 then
|
||||
if ENV.ghost then drawGhost(P,curColor)end
|
||||
if ENV.ghost then drawGhost(P,curColor,ENV.ghost)end
|
||||
if ENV.block then
|
||||
local dy=ENV.smooth and P.ghoY~=P.curY and(P.dropDelay/ENV.drop-1)*30 or 0
|
||||
gc_translate(0,-dy)
|
||||
|
||||
@@ -17,8 +17,8 @@ end
|
||||
|
||||
scene.widgetList={
|
||||
WIDGET.newKey{name="setting",fText=TEXTURE.setting,x=1200,y=160,w=90,h=90,code=goScene'setting_game'},
|
||||
WIDGET.newButton{name="league", x=640, y=180,w=350,h=120,font=40,color='dH',code=goScene'net_league'},
|
||||
WIDGET.newButton{name="ffa", x=640, y=360,w=350,h=120,font=40,color='dH',code=function()NET.enterRoom({name="ffa"})end},
|
||||
WIDGET.newButton{name="league", x=640, y=180,w=350,h=120,font=40,color='D',code=goScene'net_league'},
|
||||
WIDGET.newButton{name="ffa", x=640, y=360,w=350,h=120,font=40,color='D',code=function()LOG.print("Coming soon 开发中,敬请期待")--[[NET.enterRoom({name="ffa"})]]end},
|
||||
WIDGET.newButton{name="rooms", x=640, y=540,w=350,h=120,font=40,code=goScene'net_rooms'},
|
||||
WIDGET.newButton{name="logout", x=880, y=40,w=180,h=60,color='dR',
|
||||
code=function()
|
||||
|
||||
@@ -6,7 +6,7 @@ local setFont,mStr=setFont,mStr
|
||||
|
||||
local fnsRankColor={
|
||||
Z=COLOR.lY,
|
||||
S=COLOR.lG,
|
||||
S=COLOR.lH,
|
||||
A=COLOR.N,
|
||||
B=COLOR.lG,
|
||||
C=COLOR.M,
|
||||
|
||||
Reference in New Issue
Block a user