[demo] Make the 3 class variations unselectable in demo build. Release Build 11558.
This commit is contained in:
parent
e89dfd168e
commit
fb66fcb04d
@ -90,7 +90,8 @@ INCLUDE_FOREDROP_DATA
|
|||||||
INCLUDE_MONSTER_DATA
|
INCLUDE_MONSTER_DATA
|
||||||
INCLUDE_PACK_KEY
|
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;
|
bool _DEBUG_MAP_LOAD_INFO = false;
|
||||||
//360x240
|
//360x240
|
||||||
vi2d WINDOW_SIZE={24*15,24*10};
|
vi2d WINDOW_SIZE={24*15,24*10};
|
||||||
|
@ -50,6 +50,7 @@ All rights reserved.
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
INCLUDE_game
|
INCLUDE_game
|
||||||
|
INCLUDE_DEMO_BUILD
|
||||||
using A=Attribute;
|
using A=Attribute;
|
||||||
|
|
||||||
void Menu::InitializeClassSelectionWindow(){
|
void Menu::InitializeClassSelectionWindow(){
|
||||||
@ -168,6 +169,12 @@ void Menu::InitializeClassSelectionWindow(){
|
|||||||
|
|
||||||
classSprite->S(A::CLASS_SELECTION)=className;
|
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);
|
toggleGroup.push_back(classSprite);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,6 +62,7 @@ using MonsterSpawnerID=int;
|
|||||||
#define INCLUDE_WINDOW_SIZE extern vi2d WINDOW_SIZE;
|
#define INCLUDE_WINDOW_SIZE extern vi2d WINDOW_SIZE;
|
||||||
#define INCLUDE_ITEM_CONVERSIONS extern safemap<std::string,IT>ITEM_CONVERSIONS;
|
#define INCLUDE_ITEM_CONVERSIONS extern safemap<std::string,IT>ITEM_CONVERSIONS;
|
||||||
#define INCLUDE_ADMIN_MODE extern bool ADMIN_MODE;
|
#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;
|
#define INCLUDE_PACK_KEY extern std::string PACK_KEY;
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ All rights reserved.
|
|||||||
#define VERSION_MAJOR 1
|
#define VERSION_MAJOR 1
|
||||||
#define VERSION_MINOR 2
|
#define VERSION_MINOR 2
|
||||||
#define VERSION_PATCH 5
|
#define VERSION_PATCH 5
|
||||||
#define VERSION_BUILD 11555
|
#define VERSION_BUILD 11558
|
||||||
|
|
||||||
#define stringify(a) stringify_(a)
|
#define stringify(a) stringify_(a)
|
||||||
#define stringify_(a) #a
|
#define stringify_(a) #a
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user