@@ -254,7 +254,7 @@ function scoreValid()--Check if any unranked mods are activated
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if GAME.tasUsed then
|
if GAME.playing and GAME.tasUsed then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
|
|||||||
@@ -2,6 +2,10 @@ local gc=love.graphics
|
|||||||
local kb=love.keyboard
|
local kb=love.keyboard
|
||||||
local ins,rem=table.insert,table.remove
|
local ins,rem=table.insert,table.remove
|
||||||
|
|
||||||
|
local scene={}
|
||||||
|
|
||||||
|
local selected--Mod selected
|
||||||
|
|
||||||
local function _modComp(a,b)
|
local function _modComp(a,b)
|
||||||
return a.no<b.no
|
return a.no<b.no
|
||||||
end
|
end
|
||||||
@@ -35,14 +39,12 @@ local function _toggleMod(M,back)
|
|||||||
SFX.play('move')
|
SFX.play('move')
|
||||||
SFX.play('lock',.6)
|
SFX.play('lock',.6)
|
||||||
end
|
end
|
||||||
|
scene.widgetList.unranked.hide=scoreValid()
|
||||||
end
|
end
|
||||||
|
|
||||||
local scene={}
|
|
||||||
|
|
||||||
local selected--Mod selected
|
|
||||||
|
|
||||||
function scene.sceneInit()
|
function scene.sceneInit()
|
||||||
selected=false
|
selected=false
|
||||||
|
scene.widgetList.unranked.hide=scoreValid()
|
||||||
BG.set('tunnel')
|
BG.set('tunnel')
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -76,6 +78,7 @@ function scene.keyDown(key)
|
|||||||
while GAME.mod[1]do
|
while GAME.mod[1]do
|
||||||
rem(GAME.mod).sel=0
|
rem(GAME.mod).sel=0
|
||||||
end
|
end
|
||||||
|
scene.widgetList.unranked.hide=scoreValid()
|
||||||
SFX.play('hold')
|
SFX.play('hold')
|
||||||
end
|
end
|
||||||
elseif #key==1 then
|
elseif #key==1 then
|
||||||
@@ -153,7 +156,7 @@ end
|
|||||||
|
|
||||||
scene.widgetList={
|
scene.widgetList={
|
||||||
WIDGET.newText{name="title", x=80,y=50,font=70,align='L'},
|
WIDGET.newText{name="title", x=80,y=50,font=70,align='L'},
|
||||||
WIDGET.newText{name="unranked",x=1200,y=60,color='Y',font=50,align='R',hideF=function()return scoreValid()end},
|
WIDGET.newText{name="unranked",x=1200,y=60,color='Y',font=50,align='R'},
|
||||||
WIDGET.newButton{name="reset", x=1140,y=540,w=170,h=80,font=25,code=pressKey"tab"},
|
WIDGET.newButton{name="reset", x=1140,y=540,w=170,h=80,font=25,code=pressKey"tab"},
|
||||||
WIDGET.newButton{name="back", x=1140,y=640,w=170,h=80,fText=TEXTURE.back,code=backScene},
|
WIDGET.newButton{name="back", x=1140,y=640,w=170,h=80,fText=TEXTURE.back,code=backScene},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user