重构next和hold系统,支持多next
This commit is contained in:
@@ -13,7 +13,7 @@ WIDGET.init("custom_advance",{
|
||||
WIDGET.newSwitch({name="bone", x=1190, y=550, disp=WIDGET.lnk_CUSval("bone"), code=WIDGET.lnk_CUSrev("bone")}),
|
||||
|
||||
--Control
|
||||
WIDGET.newSlider({name="next", x=130, y=410,w=200,unit=6, disp=WIDGET.lnk_CUSval("next"), code=WIDGET.lnk_CUSsto("next")}),
|
||||
WIDGET.newSlider({name="next", x=130, y=410,w=200,unit=6, disp=WIDGET.lnk_CUSval("nextCount"),code=WIDGET.lnk_CUSsto("nextCount")}),
|
||||
WIDGET.newSwitch({name="hold", x=260, y=480, disp=WIDGET.lnk_CUSval("hold"), code=WIDGET.lnk_CUSrev("hold")}),
|
||||
WIDGET.newSwitch({name="oncehold", x=260, y=560, disp=WIDGET.lnk_CUSval("oncehold"), code=WIDGET.lnk_CUSrev("oncehold"),hide=function()return not CUSTOMENV.hold end}),
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ function sceneInit.main()
|
||||
}
|
||||
BG.set("space")
|
||||
|
||||
modeEnv=NONE
|
||||
MODEENV=NONE
|
||||
--Create demo player
|
||||
destroyPlayers()
|
||||
GAME.frame=0
|
||||
|
||||
@@ -216,7 +216,7 @@ function Tmr.play(dt)
|
||||
end
|
||||
|
||||
--Fresh royale target
|
||||
if modeEnv.royaleMode and GAME.frame%120==0 then
|
||||
if MODEENV.royaleMode and GAME.frame%120==0 then
|
||||
freshMostDangerous()
|
||||
end
|
||||
|
||||
@@ -308,7 +308,7 @@ function Pnt.play()
|
||||
gc.setColor(1,1,1)
|
||||
if SETTING.VKSwitch then drawVirtualkey()end
|
||||
|
||||
if modeEnv.royaleMode then
|
||||
if MODEENV.royaleMode then
|
||||
local P=PLAYERS[1]
|
||||
gc.setLineWidth(5)
|
||||
gc.setColor(.8,1,0,.2)
|
||||
|
||||
Reference in New Issue
Block a user