修复主菜单开关全屏会让快速开始按钮文本错误 close #566

This commit is contained in:
MrZ626
2022-01-05 14:31:36 +08:00
parent 00919c1067
commit 6954ed06a6
3 changed files with 19 additions and 14 deletions

View File

@@ -27,8 +27,7 @@ function scene.sceneInit()
scrollX=tipLength
--Set quick-play-button text
local qpModeName=text.modes[STAT.lastPlay]and text.modes[STAT.lastPlay][1]or"["..STAT.lastPlay.."]"
scene.widgetList[2]:setObject(text.WidgetText.main.qplay..": "..qpModeName)
scene.resize()
--Create demo player
destroyPlayers()
@@ -38,6 +37,11 @@ function scene.sceneInit()
PLAYERS[1]:setPosition(520,140,.8)
end
function scene.resize()
local qpModeName=text.modes[STAT.lastPlay]and text.modes[STAT.lastPlay][1]or"["..STAT.lastPlay.."]"
scene.widgetList[2]:setObject(text.WidgetText.main.qplay..": "..qpModeName)
end
function scene.mouseDown(x,y)
if x>=400 and x<=880 and y>=10 and y<=110 then
enterConsole()