X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FMenu%2FMenu.cpp;h=776d8258b5a3d284421027121db34372c2fe7bc1;hb=217da32c9ec772214e6cdbf238224aa930f819df;hp=b181769562e05babc5327ea7298dfccb650bf4d1;hpb=b9a46d8e2b7e7e22c706e7dd3734f31015db4408;p=lugaru.git diff --git a/Source/Menu/Menu.cpp b/Source/Menu/Menu.cpp index b181769..776d825 100644 --- a/Source/Menu/Menu.cpp +++ b/Source/Menu/Menu.cpp @@ -1,6 +1,6 @@ /* Copyright (C) 2003, 2010 - Wolfire Games -Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file) +Copyright (C) 2010-2017 - Lugaru contributors (see AUTHORS file) This file is part of Lugaru. @@ -25,6 +25,7 @@ along with Lugaru. If not, see . #include "Level/Campaign.hpp" #include "User/Settings.hpp" #include "Utils/Input.hpp" +#include "Version.hpp" // Should not be needed, Menu should call methods from other classes to launch maps and challenges and so on #include "Level/Awards.hpp" @@ -381,6 +382,7 @@ void Menu::Load() addButtonImage(1, Mainmenuitems[mainmenu == 1 ? 1 : 5], 18, 480 - 152 - 32, 128, 32); addButtonImage(2, Mainmenuitems[2], 18, 480 - 228 - 32, 112, 32); addButtonImage(3, Mainmenuitems[mainmenu == 1 ? 3 : 6], 18, 480 - 306 - 32, mainmenu == 1 ? 68 : 132, 32); + addLabel(-1, VERSION_NUMBER + VERSION_SUFFIX, 640 - 100, 10); break; case 3: addButton(0, "", 10 + 20, 440); @@ -501,9 +503,9 @@ void Menu::Load() addButton(numchallengelevels, "Back", 10, 10); break; case 10: { - addLabel(0, "Congratulations!", 220, 330); - addLabel(1, "You have avenged your family and", 140, 300); - addLabel(2, "restored peace to the island of Lugaru.", 110, 270); + addLabel(0, campaignEndText[0], 80, 330); + addLabel(1, campaignEndText[1], 80, 300); + addLabel(2, campaignEndText[2], 80, 270); addButton(3, "Back", 10, 10); addLabel(4, string("Your score: ") + to_string((int)Account::active().getCampaignScore()), 190, 200); addLabel(5, string("Highest score: ") + to_string((int)Account::active().getCampaignHighScore()), 190, 180);