mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Add localisation credits to main menu credits
In addition, this adds Ally and mothbeanie to the Localisation Implementation page credits. Also updated the game complete credits!
This commit is contained in:
@@ -1567,7 +1567,7 @@ static void menuactionpress(void)
|
||||
case 0:
|
||||
//next page
|
||||
music.playef(Sound_VIRIDIAN);
|
||||
game.createmenu(Menu::credits3, true);
|
||||
game.createmenu(Menu::credits_localisations_implementation, true);
|
||||
map.nexttowercolour();
|
||||
break;
|
||||
case 1:
|
||||
@@ -1584,6 +1584,87 @@ static void menuactionpress(void)
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case Menu::credits_localisations_implementation:
|
||||
switch (game.currentmenuoption)
|
||||
{
|
||||
case 0:
|
||||
//next page
|
||||
music.playef(Sound_VIRIDIAN);
|
||||
game.translator_credits_pagenum = 0;
|
||||
game.createmenu(Menu::credits_localisations_translations, true);
|
||||
map.nexttowercolour();
|
||||
break;
|
||||
case 1:
|
||||
//previous page
|
||||
music.playef(Sound_VIRIDIAN);
|
||||
game.createmenu(Menu::credits25, true);
|
||||
map.nexttowercolour();
|
||||
break;
|
||||
default:
|
||||
//back
|
||||
music.playef(Sound_VIRIDIAN);
|
||||
game.returnmenu();
|
||||
map.nexttowercolour();
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case Menu::credits_localisations_translations:
|
||||
switch (game.currentmenuoption)
|
||||
{
|
||||
case 0:
|
||||
//next page
|
||||
music.playef(Sound_VIRIDIAN);
|
||||
game.translator_credits_pagenum++;
|
||||
|
||||
if (game.translator_credits_pagenum >= (int)SDL_arraysize(Credits::translator_pagesize))
|
||||
{
|
||||
// No more translators. Move to the next credits section
|
||||
game.current_credits_list_index = 0;
|
||||
game.createmenu(Menu::credits3, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
// There are more translators. Refresh the menu with the next ones
|
||||
game.current_credits_list_index = 0;
|
||||
for (int i = 0; i < game.translator_credits_pagenum; i += 1)
|
||||
{
|
||||
game.current_credits_list_index += Credits::translator_pagesize[i];
|
||||
}
|
||||
|
||||
game.createmenu(Menu::credits_localisations_translations, true);
|
||||
}
|
||||
|
||||
map.nexttowercolour();
|
||||
break;
|
||||
case 1:
|
||||
//previous page
|
||||
music.playef(Sound_VIRIDIAN);
|
||||
game.translator_credits_pagenum--;
|
||||
if (game.translator_credits_pagenum >= 0)
|
||||
{
|
||||
game.current_credits_list_index = 0;
|
||||
for (int i = 0; i < game.translator_credits_pagenum; i += 1)
|
||||
{
|
||||
game.current_credits_list_index += Credits::translator_pagesize[i];
|
||||
}
|
||||
game.createmenu(Menu::credits_localisations_translations, true);
|
||||
}else {
|
||||
//No more translators. Move to the previous credits section
|
||||
game.current_credits_list_index = 0;
|
||||
game.createmenu(Menu::credits_localisations_implementation, true);
|
||||
}
|
||||
|
||||
map.nexttowercolour();
|
||||
break;
|
||||
default:
|
||||
//back
|
||||
music.playef(Sound_VIRIDIAN);
|
||||
game.current_credits_list_index = 0;
|
||||
game.returnmenu();
|
||||
map.nexttowercolour();
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case Menu::credits3:
|
||||
switch (game.currentmenuoption)
|
||||
{
|
||||
@@ -1614,8 +1695,13 @@ static void menuactionpress(void)
|
||||
if (game.current_credits_list_index < 0)
|
||||
{
|
||||
//No more super patrons. Move to the previous credits section
|
||||
game.translator_credits_pagenum = (int)SDL_arraysize(Credits::translator_pagesize) - 1;
|
||||
game.current_credits_list_index = 0;
|
||||
game.createmenu(Menu::credits25, true);
|
||||
for (int i = 0; i < game.translator_credits_pagenum; i += 1)
|
||||
{
|
||||
game.current_credits_list_index += Credits::translator_pagesize[i];
|
||||
}
|
||||
game.createmenu(Menu::credits_localisations_translations, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user