Skip to content

Commit

Permalink
Add credits for Xbox version
Browse files Browse the repository at this point in the history
  • Loading branch information
JayFoxRox committed Jan 12, 2020
1 parent b231178 commit 04a1210
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions desktop_version/CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ Contributors
* Emmanuel Vadot (@evadot)
* Rémi Verschelde (@akien-mga)
* viri (viri.me)
* Jannik Vogel (@JayFoxRox)
* Wouter (Xesxen)
12 changes: 12 additions & 0 deletions desktop_version/src/Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7050,6 +7050,18 @@ void Game::createmenu( std::string t )
menuxoff = 20;
menuyoff = 64;
}
#ifdef XBOX
else if (t == "credits2X")
{
menuoptions[0] = "next page";
menuoptionsactive[0] = true;
menuoptions[1] = "return";
menuoptionsactive[1] = true;
nummenuoptions = 2;
menuxoff = 20;
menuyoff = 64;
}
#endif
else if (t == "credits25")
{
menuoptions[0] = "next page";
Expand Down
23 changes: 23 additions & 0 deletions desktop_version/src/Input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,28 @@ SDL_assert(0 && "Remove open level dir");
{
//next page
music.playef(11, 10);
#ifndef XBOX
game.createmenu("credits2");
#else
game.createmenu("credits2X");
#endif
map.nexttowercolour();
}
else
{
//back
music.playef(11, 10);
game.createmenu("mainmenu");
map.nexttowercolour();
}
}
#ifdef XBOX
else if (game.currentmenuname == "credits2X")
{
if (game.currentmenuoption == 0)
{
//next page
music.playef(11, 10);
game.createmenu("credits25");
map.nexttowercolour();
}
Expand All @@ -1052,6 +1074,7 @@ SDL_assert(0 && "Remove open level dir");
map.nexttowercolour();
}
}
#endif
else if (game.currentmenuname == "credits25")
{
if (game.currentmenuoption == 0)
Expand Down
11 changes: 11 additions & 0 deletions desktop_version/src/titlerender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,17 @@ void titlerender(Graphics& dwgfx, mapclass& map, Game& game, entityclass& obj, U
dwgfx.bigprint( 40, 145, "Ethan Lee", tr, tg, tb, true);
//dwgfx.drawimagecol(11, -1, 156, tr*0.75, tg *0.75, tb *0.75, true);
}
#ifdef XBOX
else if (game.currentmenuname == "credits2X")
{
dwgfx.Print( -1, 40+10, "Original Xbox version by", tr, tg, tb, true);
dwgfx.bigprint( 40, 55+10, "Jannik Vogel", tr, tg, tb, true);
//dwgfx.Print( 40, 75+10, "http://www.jannikvogel.de", tr, tg, tb, true);
dwgfx.Print( -1, 130-10, "Original Xbox tools by", tr, tg, tb, true);
dwgfx.bigprint( 40, 145-10, "XboxDev Community", tr, tg, tb, true);
//dwgfx.Print( 40, 165-10, "http://www.xboxdev.org", tr, tg, tb, true);
}
#endif
else if (game.currentmenuname == "credits25")
{
dwgfx.Print( -1, 40, "Beta Testing by", tr, tg, tb, true);
Expand Down

0 comments on commit 04a1210

Please sign in to comment.