From 48eaf4488872436c401366965c09594c4d90c5d5 Mon Sep 17 00:00:00 2001 From: Piotr Maras Date: Mon, 2 Mar 2026 23:32:31 +0100 Subject: [PATCH] Feat: creative other tab (closes #132) --- .../Common/UI/IUIScene_CreativeMenu.cpp | 41 +++++++++++++++++++ .../Common/UI/IUIScene_CreativeMenu.h | 2 + 2 files changed, 43 insertions(+) diff --git a/Minecraft.Client/Common/UI/IUIScene_CreativeMenu.cpp b/Minecraft.Client/Common/UI/IUIScene_CreativeMenu.cpp index c3348e584..bd95f8cf9 100644 --- a/Minecraft.Client/Common/UI/IUIScene_CreativeMenu.cpp +++ b/Minecraft.Client/Common/UI/IUIScene_CreativeMenu.cpp @@ -26,6 +26,42 @@ void IUIScene_CreativeMenu::staticCtor() { vector< shared_ptr > *list; + // Other items + DEF(eCreativeInventory_Other) + ITEM(Tile::unbreakable_Id) // Bedrock + + ITEM(Tile::water_Id) + ITEM(Tile::calmWater_Id) + ITEM(Tile::lava_Id) + ITEM(Tile::calmLava_Id) + + ITEM(Tile::pistonExtensionPiece_Id) + ITEM(Tile::pistonMovingPiece_Id) + + ITEM(Tile::fire_Id) + ITEM(Tile::mobSpawner_Id) + + ITEM(Tile::furnace_lit_Id) + ITEM(Tile::wallSign_Id) + + ITEM(Tile::redStoneOre_lit_Id) + ITEM(Tile::redstoneTorch_off_Id) + + ITEM(Tile::portalTile_Id) + ITEM(Tile::endPortalTile_Id) + + ITEM(Tile::diode_on_Id) + ITEM(Tile::comparator_on_Id) + + ITEM(Tile::tripWire_Id) + + ITEM(Tile::pumpkinStem_Id) + ITEM(Tile::melonStem_Id) + ITEM(Tile::netherStalk_Id) + ITEM(Tile::cocoa_Id) + + ITEM(Tile::dragonEgg_Id) + ITEM(Tile::commandBlock_Id) // Building Blocks DEF(eCreativeInventory_BuildingBlocks) @@ -748,6 +784,11 @@ void IUIScene_CreativeMenu::staticCtor() ECreative_Inventory_Groups miscGroup[] = {eCreativeInventory_Misc}; specs[eCreativeInventoryTab_Misc] = new TabSpec(L"Misc", IDS_GROUPNAME_MISCELLANEOUS, 1, miscGroup); #endif + + ECreative_Inventory_Groups otherGroup[] = { eCreativeInventory_Other }; + + specs[eCreativeInventoryTab_Other] = + new TabSpec(L"Other", IDS_GROUPNAME_MISCELLANEOUS, 1, otherGroup); } IUIScene_CreativeMenu::IUIScene_CreativeMenu() diff --git a/Minecraft.Client/Common/UI/IUIScene_CreativeMenu.h b/Minecraft.Client/Common/UI/IUIScene_CreativeMenu.h index 64b78029b..fe4c4416a 100644 --- a/Minecraft.Client/Common/UI/IUIScene_CreativeMenu.h +++ b/Minecraft.Client/Common/UI/IUIScene_CreativeMenu.h @@ -19,6 +19,7 @@ class IUIScene_CreativeMenu : public virtual IUIScene_AbstractContainerMenu eCreativeInventoryTab_ToolsWeaponsArmor, eCreativeInventoryTab_Brewing, eCreativeInventoryTab_Misc, + eCreativeInventoryTab_Other, eCreativeInventoryTab_COUNT, }; @@ -40,6 +41,7 @@ class IUIScene_CreativeMenu : public virtual IUIScene_AbstractContainerMenu eCreativeInventory_Misc, eCreativeInventory_ArtToolsDecorations, eCreativeInventory_ArtToolsMisc, + eCreativeInventory_Other, eCreativeInventoryGroupsCount };