Resolve change request part Tetra

This commit is contained in:
SweetSea-ButImNotSweet
2024-01-09 13:52:55 +07:00
parent 4928f1964c
commit 97b1abb5b5
4 changed files with 8 additions and 11 deletions

View File

@@ -994,7 +994,7 @@ do-- function dumpBasicConfig()
end end
end end
do-- function resetGameData(args) do-- function resetGameData(args)
local function task_showMods() -- TODO local function task_showMods()
coroutine.yield() coroutine.yield()
local counter=0 local counter=0

View File

@@ -515,13 +515,11 @@ do-- Mod data
{no=21,id="BN",name="boneBlock", {no=21,id="BN",name="boneBlock",
key="m",x=920,y=470,color='lB', key="m",x=920,y=470,color='lB',
list={'on','off'}, list={'on','off'},
funcInit =function(P,O) P.gameEnv.bone=O end, funcInit =function(P,O) P.gameEnv.bone=O=='on' end,
funcRepeat=function(P,O) funcOnce =function(P,O)
P.gameEnv.bone=O P.gameEnv.bone=O=='on'
if O=='on' then P.gameEnv.__lock('bone')
for _,bk in pairs(P.nextQueue) do bk.color=17 end end
end
end,
}, },
} }
for i=1,#MODOPT do for i=1,#MODOPT do

View File

@@ -488,7 +488,7 @@ local commands={} do
code=function(name) code=function(name)
if name~="" then if name~="" then
if SETTING.lockBG then if SETTING.lockBG then
log{"Background is currently ",C.R,"locked",C.Z,"! You can unlock them in Video settings."} log{"Background is currently ",C.R,"locked",C.Z,"! You can unlock it in Video settings."}
elseif name~=BG.cur then elseif name~=BG.cur then
if BG.set(name) then if BG.set(name) then
log(("Background set to '%s'"):format(name)) log(("Background set to '%s'"):format(name))
@@ -513,7 +513,7 @@ local commands={} do
code=function(name) code=function(name)
if name~="" then if name~="" then
if SETTING.noTheme then if SETTING.noTheme then
log{"Themes are currently ",C.R,"disabled",C.Z,"! You can re-enable in Video settings."} log{"Themes are currently ",C.R,"disabled",C.Z,"! You can re-enable it in Video settings."}
else else
if THEME.set(name) then if THEME.set(name) then
log("Theme set to: "..name) log("Theme set to: "..name)

View File

@@ -99,7 +99,6 @@ end
function scene.leave() function scene.leave()
TABLE.clear(textObj) TABLE.clear(textObj)
TABLE.clear(pianoVK)
collectgarbage() collectgarbage()
BGM.play(lastPlayBGM) BGM.play(lastPlayBGM)
end end