Fix bugs and small changes to other thing
This commit is contained in:
@@ -998,7 +998,7 @@ do-- function resetGameData(args)
|
|||||||
coroutine.yield()
|
coroutine.yield()
|
||||||
local counter=0
|
local counter=0
|
||||||
|
|
||||||
do
|
if GAME.modUsed then
|
||||||
SFX.play('collect',.2)
|
SFX.play('collect',.2)
|
||||||
TEXT.show(GAME.modApplyAt,640,26,45,'spin')
|
TEXT.show(GAME.modApplyAt,640,26,45,'spin')
|
||||||
for _=1,90 do coroutine.yield() end
|
for _=1,90 do coroutine.yield() end
|
||||||
|
|||||||
@@ -402,7 +402,7 @@ do-- Mod data
|
|||||||
{no=5,id="HG",name="hideGhost",
|
{no=5,id="HG",name="hideGhost",
|
||||||
key="u",x=800,y=230,color='lV',
|
key="u",x=800,y=230,color='lV',
|
||||||
func =function(P) P.gameEnv.ghost=false end,
|
func =function(P) P.gameEnv.ghost=false end,
|
||||||
funcA1=_lockVfunc('ghost'),
|
funcA1=function(P) P.gameEnv.ghost=false; P.gameEnv.__lock('ghost') end,
|
||||||
},
|
},
|
||||||
{no=6,id="HD",name="hidden",
|
{no=6,id="HD",name="hidden",
|
||||||
key="i",x=920,y=230,color='lP',
|
key="i",x=920,y=230,color='lP',
|
||||||
|
|||||||
@@ -787,7 +787,7 @@ function draw.norm(P,repMode)
|
|||||||
gc_scale(P.size)
|
gc_scale(P.size)
|
||||||
|
|
||||||
-- Draw username
|
-- Draw username
|
||||||
if usingMod() and P.frameRun>480 then
|
if GAME.modUsed and P.frameRun>480 or true then
|
||||||
setFont(30)
|
setFont(30)
|
||||||
gc_setColor(GROUP_COLORS[P.group])
|
gc_setColor(GROUP_COLORS[P.group])
|
||||||
GC.mStr(P.username or USERS.getUsername(P.uid),300,-60)
|
GC.mStr(P.username or USERS.getUsername(P.uid),300,-60)
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ local function _executeMod(P)
|
|||||||
if not GAME.modCodeList then GAME.modCodeList={} end
|
if not GAME.modCodeList then GAME.modCodeList={} end
|
||||||
if not GAME.modCodeList[P.id] then GAME.modCodeList[P.id]={} end
|
if not GAME.modCodeList[P.id] then GAME.modCodeList[P.id]={} end
|
||||||
|
|
||||||
if not GAME.applyModTask then
|
if not GAME.applyModsTask then
|
||||||
function GAME.applyModsTask()
|
function GAME.applyModsTask()
|
||||||
while GAME.playing do
|
while GAME.playing do
|
||||||
for _,p in pairs(GAME.modCodeList) do
|
for _,p in pairs(GAME.modCodeList) do
|
||||||
@@ -190,8 +190,8 @@ local function _executeMod(P)
|
|||||||
coroutine.yield()
|
coroutine.yield()
|
||||||
end
|
end
|
||||||
-- Kill mod patching function when game stopped
|
-- Kill mod patching function when game stopped
|
||||||
TABLE.clear(GAME.modCodeList)
|
|
||||||
TASK.removeTask_code(GAME.applyModsTask)
|
TASK.removeTask_code(GAME.applyModsTask)
|
||||||
|
TABLE.clear(GAME.modCodeList)
|
||||||
GAME.modCodeList=nil
|
GAME.modCodeList=nil
|
||||||
GAME.applyModsTask=nil
|
GAME.applyModsTask=nil
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -210,7 +210,7 @@ function scene.keyDown(key)
|
|||||||
CHAR.controller.xboxX,CHAR.controller.xboxY,CHAR.controller.xboxA,CHAR.controller.xboxB,
|
CHAR.controller.xboxX,CHAR.controller.xboxY,CHAR.controller.xboxA,CHAR.controller.xboxB,
|
||||||
CHAR.icon.help,CHAR.icon.copy,CHAR.icon.globe,CHAR.key.winMenu)
|
CHAR.icon.help,CHAR.icon.copy,CHAR.icon.globe,CHAR.key.winMenu)
|
||||||
):split('\n'),
|
):split('\n'),
|
||||||
currentFontSize,
|
20,
|
||||||
'rainbow'
|
'rainbow'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,9 @@ function scene.enter()
|
|||||||
scene.widgetList.unranked.hide=scoreValid()
|
scene.widgetList.unranked.hide=scoreValid()
|
||||||
BG.set('tunnel')
|
BG.set('tunnel')
|
||||||
end
|
end
|
||||||
|
function scene.back()
|
||||||
|
GAME.modUsed=usingMod()
|
||||||
|
end
|
||||||
|
|
||||||
function scene.mouseMove(x,y)
|
function scene.mouseMove(x,y)
|
||||||
selected=false
|
selected=false
|
||||||
|
|||||||
Reference in New Issue
Block a user