修复cubefield小游戏没有返回按钮

This commit is contained in:
MrZ626
2020-12-04 16:04:16 +08:00
parent 7bdc20f15c
commit 6f49341ba5
2 changed files with 8 additions and 3 deletions

View File

@@ -40,6 +40,7 @@ local publicWidgetText={
symbol="?????",
yygq="就这?",
},
mg_cubefield={},
}
local function langFallback(T0,T)
for k,v in next,T0 do

View File

@@ -251,8 +251,8 @@ function Pnt.mg_cubefield()
--Draw menu
if play then
setFont(60)
mStr(int(score),-400,-640)
mStr(int(score),400,-640)
mStr(int(score),-300,-640)
mStr(int(score),300,-640)
if score%1000>920 then
gc.setColor(1,1,1,abs(score%1000-970)*8)
setFont(70)
@@ -290,4 +290,8 @@ function Pnt.mg_cubefield()
mStr(MOBILE and"Touch to Start"or"Press space",0,-160)
end
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},
})