diff --git a/Adventures in Lestoria/AdventuresInLestoria.cpp b/Adventures in Lestoria/AdventuresInLestoria.cpp index 18250e72..10b6f797 100644 --- a/Adventures in Lestoria/AdventuresInLestoria.cpp +++ b/Adventures in Lestoria/AdventuresInLestoria.cpp @@ -90,7 +90,8 @@ INCLUDE_FOREDROP_DATA INCLUDE_MONSTER_DATA INCLUDE_PACK_KEY -bool ADMIN_MODE = false; //Enables the Unlock All button and admin console. +bool DEMO_BUILD = true; +bool ADMIN_MODE = !DEMO_BUILD&&false; //Enables the Unlock All button and admin console. bool _DEBUG_MAP_LOAD_INFO = false; //360x240 vi2d WINDOW_SIZE={24*15,24*10}; diff --git a/Adventures in Lestoria/ClassSelectionWindow.cpp b/Adventures in Lestoria/ClassSelectionWindow.cpp index 5a700353..4d059cda 100644 --- a/Adventures in Lestoria/ClassSelectionWindow.cpp +++ b/Adventures in Lestoria/ClassSelectionWindow.cpp @@ -50,6 +50,7 @@ All rights reserved. #endif INCLUDE_game +INCLUDE_DEMO_BUILD using A=Attribute; void Menu::InitializeClassSelectionWindow(){ @@ -168,6 +169,12 @@ void Menu::InitializeClassSelectionWindow(){ classSprite->S(A::CLASS_SELECTION)=className; + if(DEMO_BUILD&&i>2){ //Disable the three later classes in the demo build. + classLabel->SetGrayedOut(true); + classButton->SetGrayedOut(true); + classSprite->SetGrayedOut(true); + } + toggleGroup.push_back(classSprite); } diff --git a/Adventures in Lestoria/DEFINES.h b/Adventures in Lestoria/DEFINES.h index 3cd4bb6d..70247a5b 100644 --- a/Adventures in Lestoria/DEFINES.h +++ b/Adventures in Lestoria/DEFINES.h @@ -62,6 +62,7 @@ using MonsterSpawnerID=int; #define INCLUDE_WINDOW_SIZE extern vi2d WINDOW_SIZE; #define INCLUDE_ITEM_CONVERSIONS extern safemapITEM_CONVERSIONS; #define INCLUDE_ADMIN_MODE extern bool ADMIN_MODE; +#define INCLUDE_DEMO_BUILD extern bool DEMO_BUILD; #define INCLUDE_PACK_KEY extern std::string PACK_KEY; diff --git a/Adventures in Lestoria/Version.h b/Adventures in Lestoria/Version.h index c31ffcbe..0a77fb04 100644 --- a/Adventures in Lestoria/Version.h +++ b/Adventures in Lestoria/Version.h @@ -39,7 +39,7 @@ All rights reserved. #define VERSION_MAJOR 1 #define VERSION_MINOR 2 #define VERSION_PATCH 5 -#define VERSION_BUILD 11555 +#define VERSION_BUILD 11558 #define stringify(a) stringify_(a) #define stringify_(a) #a diff --git a/x64/Release/Adventures in Lestoria.exe b/x64/Release/Adventures in Lestoria.exe index cbcb6dd3..ce5f2e48 100644 Binary files a/x64/Release/Adventures in Lestoria.exe and b/x64/Release/Adventures in Lestoria.exe differ