Tab 'Other' visable only on debug builds

This commit is contained in:
Piotr Maras 2026-03-03 00:44:45 +01:00
parent 48eaf44888
commit 16f7b6b253
2 changed files with 38 additions and 25 deletions

View file

@ -27,41 +27,47 @@ void IUIScene_CreativeMenu::staticCtor()
vector< shared_ptr<ItemInstance> > *list; vector< shared_ptr<ItemInstance> > *list;
// Other items // Other items
DEF(eCreativeInventory_Other) #ifdef _DEBUG
ITEM(Tile::unbreakable_Id) // Bedrock if (app.DebugSettingsOn())
{
DEF(eCreativeInventory_Other)
ITEM(Tile::unbreakable_Id) // Bedrock
ITEM(Tile::water_Id) ITEM(Tile::water_Id)
ITEM(Tile::calmWater_Id) ITEM(Tile::calmWater_Id)
ITEM(Tile::lava_Id) ITEM(Tile::lava_Id)
ITEM(Tile::calmLava_Id) ITEM(Tile::calmLava_Id)
ITEM(Tile::pistonExtensionPiece_Id) ITEM(Tile::pistonExtensionPiece_Id)
ITEM(Tile::pistonMovingPiece_Id) ITEM(Tile::pistonMovingPiece_Id)
ITEM(Tile::fire_Id) ITEM(Tile::fire_Id)
ITEM(Tile::mobSpawner_Id) ITEM(Tile::mobSpawner_Id)
ITEM(Tile::furnace_lit_Id) ITEM(Tile::furnace_lit_Id)
ITEM(Tile::wallSign_Id) ITEM(Tile::wallSign_Id)
ITEM(Tile::redStoneOre_lit_Id) ITEM(Tile::redStoneOre_lit_Id)
ITEM(Tile::redstoneTorch_off_Id) ITEM(Tile::redstoneTorch_off_Id)
ITEM(Tile::portalTile_Id) ITEM(Tile::portalTile_Id)
ITEM(Tile::endPortalTile_Id) ITEM(Tile::endPortalTile_Id)
ITEM(Tile::diode_on_Id) ITEM(Tile::diode_on_Id)
ITEM(Tile::comparator_on_Id) ITEM(Tile::comparator_on_Id)
ITEM(Tile::tripWire_Id) ITEM(Tile::tripWire_Id)
ITEM(Tile::pumpkinStem_Id) ITEM(Tile::pumpkinStem_Id)
ITEM(Tile::melonStem_Id) ITEM(Tile::melonStem_Id)
ITEM(Tile::netherStalk_Id) ITEM(Tile::netherStalk_Id)
ITEM(Tile::cocoa_Id) ITEM(Tile::cocoa_Id)
ITEM(Tile::dragonEgg_Id) ITEM(Tile::dragonEgg_Id)
ITEM(Tile::commandBlock_Id) ITEM(Tile::commandBlock_Id)
}
#endif
// Building Blocks // Building Blocks
DEF(eCreativeInventory_BuildingBlocks) DEF(eCreativeInventory_BuildingBlocks)
@ -785,12 +791,15 @@ void IUIScene_CreativeMenu::staticCtor()
specs[eCreativeInventoryTab_Misc] = new TabSpec(L"Misc", IDS_GROUPNAME_MISCELLANEOUS, 1, miscGroup); specs[eCreativeInventoryTab_Misc] = new TabSpec(L"Misc", IDS_GROUPNAME_MISCELLANEOUS, 1, miscGroup);
#endif #endif
#ifdef _DEBUG
ECreative_Inventory_Groups otherGroup[] = { eCreativeInventory_Other }; ECreative_Inventory_Groups otherGroup[] = { eCreativeInventory_Other };
specs[eCreativeInventoryTab_Other] = specs[eCreativeInventoryTab_Other] =
new TabSpec(L"Other", IDS_GROUPNAME_MISCELLANEOUS, 1, otherGroup); new TabSpec(L"Other", IDS_GROUPNAME_MISCELLANEOUS, 1, otherGroup);
#endif
} }
IUIScene_CreativeMenu::IUIScene_CreativeMenu() IUIScene_CreativeMenu::IUIScene_CreativeMenu()
{ {
m_bCarryingCreativeItem = false; m_bCarryingCreativeItem = false;

View file

@ -19,7 +19,9 @@ public:
eCreativeInventoryTab_ToolsWeaponsArmor, eCreativeInventoryTab_ToolsWeaponsArmor,
eCreativeInventoryTab_Brewing, eCreativeInventoryTab_Brewing,
eCreativeInventoryTab_Misc, eCreativeInventoryTab_Misc,
#ifdef DEBUG
eCreativeInventoryTab_Other, eCreativeInventoryTab_Other,
#endif
eCreativeInventoryTab_COUNT, eCreativeInventoryTab_COUNT,
}; };
@ -41,7 +43,9 @@ public:
eCreativeInventory_Misc, eCreativeInventory_Misc,
eCreativeInventory_ArtToolsDecorations, eCreativeInventory_ArtToolsDecorations,
eCreativeInventory_ArtToolsMisc, eCreativeInventory_ArtToolsMisc,
#ifdef DEBUG
eCreativeInventory_Other, eCreativeInventory_Other,
#endif
eCreativeInventoryGroupsCount eCreativeInventoryGroupsCount
}; };