[demo] Make the 3 class variations unselectable in demo build. Release Build 11558.

demo
sigonasr2 3 months ago
parent bbe5ccab10
commit 7b5809c5b6
  1. 3
      Adventures in Lestoria/AdventuresInLestoria.cpp
  2. 7
      Adventures in Lestoria/ClassSelectionWindow.cpp
  3. 1
      Adventures in Lestoria/DEFINES.h
  4. 2
      Adventures in Lestoria/Version.h
  5. BIN
      x64/Release/Adventures in Lestoria.exe

@ -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};

@ -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);
}

@ -62,6 +62,7 @@ using MonsterSpawnerID=int;
#define INCLUDE_WINDOW_SIZE extern vi2d WINDOW_SIZE;
#define INCLUDE_ITEM_CONVERSIONS extern safemap<std::string,IT>ITEM_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;

@ -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

Loading…
Cancel
Save