修复主菜单开关全屏会让快速开始按钮文本错误 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

@@ -119,6 +119,18 @@ do--function applySettings()
color={-.2,1.2},
}
function applySettings()
--Apply language
text=LANG.get(SETTING.locale)
WIDGET.setLang(text.WidgetText)
for k,v in next,TEXTOBJ do
if rawget(text,k)then
v:set(text[k])
end
end
--Apply cursor
love.mouse.setVisible(SETTING.sysCursor)
--Apply fullscreen
love.window.setFullscreen(SETTING.fullscreen)
love.resize(gc.getWidth(),gc.getHeight())
@@ -147,18 +159,6 @@ do--function applySettings()
SHADER.fieldSatur:send('b',m[1])
SHADER.fieldSatur:send('k',m[2])
--Apply language
text=LANG.get(SETTING.locale)
WIDGET.setLang(text.WidgetText)
for k,v in next,TEXTOBJ do
if rawget(text,k)then
v:set(text[k])
end
end
--Apply cursor
love.mouse.setVisible(SETTING.sysCursor)
--Apply BG
if SETTING.bg=='on'then
BG.unlock()

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()

View File

@@ -47,6 +47,7 @@ return[=[
修复:
BGM模块资源管理问题导致的一些音频bug #557
自定义场地界面按超过第三个的鼠标键会报错
主菜单开关全屏会让快速开始按钮文本错误 #566
经典模式h和u难度没有干旱计数器 #546
自定义场地16号色的方块名位置显示错误
联网对战结算的l'pm公式错写成lpm的