You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AM2R-Multitroid-Fair-Team-PVP/Export_Code/gml_Object_oSubscreenMenu_S...

187 lines
5.9 KiB

if (active && oControl.kDown && oControl.kDownPushedSteps == 0)
{
global.curropt += 1
if (global.curropt == 1 && global.item[5] == 0)
global.curropt += 1
if (global.curropt == 2 && global.item[9] == 0)
global.curropt += 1
if (global.curropt == 3 && global.item[10] == 0)
global.curropt += 1
if (global.curropt == 4 && global.item[12] == 0)
global.curropt += 1
if (global.curropt == 5 && global.item[13] == 0)
global.curropt += 1
if (global.curropt == 6 && global.item[14] == 0)
global.curropt += 1
if (global.curropt == 7 && global.item[11] == 0)
global.curropt += 1
if (global.curropt == 9 && global.item[2] == 0)
global.curropt += 1
if (global.curropt == 10 && global.item[3] == 0)
global.curropt += 1
if (global.curropt == 11 && global.item[0] == 0)
global.curropt += 1
if (global.curropt == 12 && global.item[1] == 0)
global.curropt += 1
if (global.curropt == 13 && global.item[8] == 0)
global.curropt += 1
if (global.curropt == 14 && global.item[4] == 0)
global.curropt += 1
if (global.curropt == 15 && global.item[6] == 0)
global.curropt += 1
if (global.curropt == 16 && global.item[7] == 0)
global.curropt += 1
if (global.curropt > 16)
global.curropt = 0
sfx_play(sndMenuMove)
}
if (active && oControl.kUp && oControl.kUpPushedSteps == 0)
{
global.curropt -= 1
if (global.curropt < 0)
global.curropt = 16
if (global.curropt == 16 && global.item[7] == 0)
global.curropt -= 1
if (global.curropt == 15 && global.item[6] == 0)
global.curropt -= 1
if (global.curropt == 14 && global.item[4] == 0)
global.curropt -= 1
if (global.curropt == 13 && global.item[8] == 0)
global.curropt -= 1
if (global.curropt == 12 && global.item[1] == 0)
global.curropt -= 1
if (global.curropt == 11 && global.item[0] == 0)
global.curropt -= 1
if (global.curropt == 10 && global.item[3] == 0)
global.curropt -= 1
if (global.curropt == 9 && global.item[2] == 0)
global.curropt -= 1
if (global.curropt == 7 && global.item[11] == 0)
global.curropt -= 1
if (global.curropt == 6 && global.item[14] == 0)
global.curropt -= 1
if (global.curropt == 5 && global.item[13] == 0)
global.curropt -= 1
if (global.curropt == 4 && global.item[12] == 0)
global.curropt -= 1
if (global.curropt == 3 && global.item[10] == 0)
global.curropt -= 1
if (global.curropt == 2 && global.item[9] == 0)
global.curropt -= 1
if (global.curropt == 1 && global.item[5] == 0)
global.curropt -= 1
sfx_play(sndMenuMove)
}
if (active && oControl.kRight > 0 && oControl.kRightPushedSteps == 0 && global.curropt < 8)
{
if (global.curropt >= 0 && global.curropt < 3)
global.curropt = 8
else
global.curropt = 14
if (global.curropt == 14 && global.item[4] == 0)
global.curropt += 1
if (global.curropt == 15 && global.item[6] == 0)
global.curropt += 1
if (global.curropt == 16 && global.item[7] == 0)
global.curropt += 1
if (global.curropt > 16)
global.curropt = 8
sfx_play(sndMenuMove)
}
if (active && oControl.kLeft > 0 && oControl.kLeftPushedSteps == 0 && global.curropt >= 8)
{
if (global.curropt >= 8 && global.curropt < 14)
global.curropt = 0
else
global.curropt = 3
if (global.curropt == 3 && global.item[10] == 0)
global.curropt += 1
if (global.curropt == 4 && global.item[12] == 0)
global.curropt += 1
if (global.curropt == 5 && global.item[13] == 0)
global.curropt += 1
if (global.curropt == 6 && global.item[14] == 0)
global.curropt += 1
if (global.curropt == 7 && global.item[11] == 0)
global.curropt += 1
if (global.curropt > 7)
global.curropt = 0
sfx_play(sndMenuMove)
}
if (active && oControl.kMenu1 && oControl.kMenu1PushedSteps == 0)
{
editing = 1
sfx_play(sndMenuMove)
}
if editing
{
if (global.curropt == 0)
global.currentsuit = 0
if (global.curropt == 1)
global.currentsuit = 1
if (global.curropt == 2)
global.currentsuit = 2
if (global.curropt == 3)
global.cbeam = (!global.cbeam)
if (global.curropt == 4)
global.wbeam = (!global.wbeam)
if (global.curropt == 5)
global.sbeam = (!global.sbeam)
if (global.curropt == 6)
global.pbeam = (!global.pbeam)
if (global.curropt == 7)
global.ibeam = (!global.ibeam)
if (global.curropt == 8)
global.morphball = (!global.morphball)
if (global.curropt == 9)
global.spiderball = (!global.spiderball)
if (global.curropt == 10)
global.jumpball = (!global.jumpball)
if (global.curropt == 11)
global.bomb = (!global.bomb)
if (global.curropt == 12)
global.powergrip = (!global.powergrip)
if (global.curropt == 13)
global.screwattack = (!global.screwattack)
if (global.curropt == 14)
global.hijump = (!global.hijump)
if (global.curropt == 15)
global.spacejump = (!global.spacejump)
if (global.curropt == 16)
global.speedbooster = (!global.speedbooster)
editing = 0
}
dtext = tiptext[global.curropt]
if (active && oControl.kStart && oControl.kStartPushedSteps == 0)
{
fadeout = 1
active = 0
}
if fadeout
rectoffset += 2
if (ealpha < 1 && fadeout == 0)
ealpha += 0.05
if (ealpha > 0 && fadeout)
ealpha -= 0.05
if (ealpha >= 1 && fadeout == 0 && instance_exists(oSubScrChange) == 0)
active = 1
if (ealpha <= 0 && fadeout)
{
global.ingame = 1
global.transitiontype = 3
room_goto(global.currentroom)
Unmute_Loops()
}
if (global.curropt < 14)
oSubScrPlayer.targety = 52
else
oSubScrPlayer.targety = -13
if global.enemyNearby
{
if (global.sax || (!global.spectator))
{
fadeout = 1
active = 0
}
}