1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-11-16 16:09:42 +01:00

Secret lab buttons, fix preloader buttons

This commit is contained in:
NyakoFox 2024-04-11 18:29:40 -03:00
parent 131f40a66c
commit 15561ab8e8
2 changed files with 40 additions and 2 deletions

View file

@ -230,6 +230,14 @@ namespace touch
game.menupage = 11;
mapmenuactionpress(version2_2);
break;
case 9:
game.menupage = 20;
mapmenuactionpress(version2_2);
break;
case 10:
game.menupage = 21;
mapmenuactionpress(version2_2);
break;
}
break;
case TOUCH_BUTTON_TYPE_NONE:
@ -320,6 +328,24 @@ namespace touch
buttons[TOUCH_BUTTON_MAP_QUIT_EXIT].type = TOUCH_BUTTON_TYPE_MAP;
buttons[TOUCH_BUTTON_MAP_QUIT_EXIT].ui = false;
buttons[TOUCH_BUTTON_SUPERGRAVITRON_NO].x = 80;
buttons[TOUCH_BUTTON_SUPERGRAVITRON_NO].y = 128 - 16;
buttons[TOUCH_BUTTON_SUPERGRAVITRON_NO].width = 160;
buttons[TOUCH_BUTTON_SUPERGRAVITRON_NO].height = 26;
buttons[TOUCH_BUTTON_SUPERGRAVITRON_NO].text = loc::gettext("no, keep playing");
buttons[TOUCH_BUTTON_SUPERGRAVITRON_NO].id = 9;
buttons[TOUCH_BUTTON_SUPERGRAVITRON_NO].type = TOUCH_BUTTON_TYPE_MAP;
buttons[TOUCH_BUTTON_SUPERGRAVITRON_NO].ui = false;
buttons[TOUCH_BUTTON_SUPERGRAVITRON_YES].x = 80;
buttons[TOUCH_BUTTON_SUPERGRAVITRON_YES].y = 128 + 16;
buttons[TOUCH_BUTTON_SUPERGRAVITRON_YES].width = 160;
buttons[TOUCH_BUTTON_SUPERGRAVITRON_YES].height = 26;
buttons[TOUCH_BUTTON_SUPERGRAVITRON_YES].text = loc::gettext("yes, return");
buttons[TOUCH_BUTTON_SUPERGRAVITRON_YES].id = 10;
buttons[TOUCH_BUTTON_SUPERGRAVITRON_YES].type = TOUCH_BUTTON_TYPE_MAP;
buttons[TOUCH_BUTTON_SUPERGRAVITRON_YES].ui = false;
buttons[TOUCH_BUTTON_QUIT_NO].x = 80;
buttons[TOUCH_BUTTON_QUIT_NO].y = 96 + 16;
buttons[TOUCH_BUTTON_QUIT_NO].width = 160;
@ -443,11 +469,17 @@ namespace touch
case 2:
break;
case 1:
if (obj.flags[67] && !map.custommode)
if (!game.insecretlab && obj.flags[67] && !map.custommode)
{
buttons[TOUCH_BUTTON_MAP_SHIP_WARP].active = true;
}
break;
case 20:
case 21:
buttons[TOUCH_BUTTON_SUPERGRAVITRON_YES].active = true;
buttons[TOUCH_BUTTON_SUPERGRAVITRON_NO].active = true;
buttons[TOUCH_BUTTON_MAP_BACK].active = false;
break;
case 3:
if (!game.gamesaved && !game.gamesavefailed && !game.inspecial())
{
@ -471,10 +503,12 @@ namespace touch
break;
}
break;
case PRELOADER:
use_buttons = false;
break;
case GAMECOMPLETE:
case GAMECOMPLETE2:
case EDITORMODE:
case PRELOADER:
default:
break;
}

View file

@ -41,6 +41,10 @@ enum TouchButtonID
TOUCH_BUTTON_MAP_QUIT_SAVE,
TOUCH_BUTTON_MAP_QUIT_EXIT,
/* Map - Return to Secret Lab from Super Gravitron */
TOUCH_BUTTON_SUPERGRAVITRON_NO,
TOUCH_BUTTON_SUPERGRAVITRON_YES,
/* Map - Back */
TOUCH_BUTTON_MAP_BACK,