修复cubefield小游戏没有返回按钮
This commit is contained in:
@@ -40,6 +40,7 @@ local publicWidgetText={
|
|||||||
symbol="?????",
|
symbol="?????",
|
||||||
yygq="就这?",
|
yygq="就这?",
|
||||||
},
|
},
|
||||||
|
mg_cubefield={},
|
||||||
}
|
}
|
||||||
local function langFallback(T0,T)
|
local function langFallback(T0,T)
|
||||||
for k,v in next,T0 do
|
for k,v in next,T0 do
|
||||||
|
|||||||
@@ -251,8 +251,8 @@ function Pnt.mg_cubefield()
|
|||||||
--Draw menu
|
--Draw menu
|
||||||
if play then
|
if play then
|
||||||
setFont(60)
|
setFont(60)
|
||||||
mStr(int(score),-400,-640)
|
mStr(int(score),-300,-640)
|
||||||
mStr(int(score),400,-640)
|
mStr(int(score),300,-640)
|
||||||
if score%1000>920 then
|
if score%1000>920 then
|
||||||
gc.setColor(1,1,1,abs(score%1000-970)*8)
|
gc.setColor(1,1,1,abs(score%1000-970)*8)
|
||||||
setFont(70)
|
setFont(70)
|
||||||
@@ -290,4 +290,8 @@ function Pnt.mg_cubefield()
|
|||||||
mStr(MOBILE and"Touch to Start"or"Press space",0,-160)
|
mStr(MOBILE and"Touch to Start"or"Press space",0,-160)
|
||||||
end
|
end
|
||||||
gc.pop()
|
gc.pop()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
WIDGET.init("mg_cubefield",{
|
||||||
|
WIDGET.newKey{name="back",x=1140,y=80,w=170,h=80,font=40,code=WIDGET.lnk_BACK},
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user