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

This commit is contained in:
sigonasr2 2024-09-13 17:20:55 -05:00
parent bbe5ccab10
commit 7b5809c5b6
5 changed files with 11 additions and 2 deletions

View File

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

View File

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

View File

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

View File

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