]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Menu/Menu.cpp
Output version info to stdout and show in menu
[lugaru.git] / Source / Menu / Menu.cpp
index 1fbecd21644384e4a019444c8bbe05fccee5c514..b8d003187450c82f0c3849dbffae36f596c25829 100644 (file)
@@ -25,6 +25,7 @@ along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 #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);