Draft
Update inventory system with unified tab bar and 3D block rendering#9
Conversation
Agent-Logs-Url: https://github.com/sriail/MCPE-WASM/sessions/776fbfdb-6353-4b1e-b67c-f700aa2a0403 Co-authored-by: sriail <225764385+sriail@users.noreply.github.com>
Agent-Logs-Url: https://github.com/sriail/MCPE-WASM/sessions/776fbfdb-6353-4b1e-b67c-f700aa2a0403 Co-authored-by: sriail <225764385+sriail@users.noreply.github.com>
Agent-Logs-Url: https://github.com/sriail/MCPE-WASM/sessions/776fbfdb-6353-4b1e-b67c-f700aa2a0403 Co-authored-by: sriail <225764385+sriail@users.noreply.github.com>
…constant Agent-Logs-Url: https://github.com/sriail/MCPE-WASM/sessions/776fbfdb-6353-4b1e-b67c-f700aa2a0403 Co-authored-by: sriail <225764385+sriail@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
sriail
April 6, 2026 00:19
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements a unified inventory tab bar system across all inventory screens and updates block rendering to use 3D models instead of static 2D images, as requested in the task description.
Changes Made
1. Unified Tab Bar Component
UnifiedInventoryTabBarclass to provide consistent navigation across inventory screens2. Updated Inventory Screens
3. 3D Block Rendering
ItemRenderer::renderGuiItem()to use 3D block models instead of static 2D texturesrenderGuiTile()infrastructure fromTileRenderer4. UI Improvements
Technical Details
Files Created
UnifiedInventoryTabBar.h/cpp- New unified tab bar component with tab button managementFiles Modified
ItemRenderer.cpp/h- Added 3D block rendering logic with helper functionArmorScreen.h/cpp- Integrated tab bar, removed duplicate UI elementsIngameBlockSelectionScreen.h/cpp- Added tab bar and close buttonPaneCraftingScreen.h/cpp- Integrated tab bar above category buttonsChestScreen.h- Header updated for future tab bar support (containers use different UI pattern)Key Features
Code Quality
renderGuiItem3DBlock()helper function to avoid code duplication24with named constantDEFAULT_TAB_BAR_HEIGHTTesting Notes
This project requires Emscripten SDK (WebAssembly build) which is not available in the standard CI environment.
To Test Locally:
.\install_deps.ps1to install Emscripten SDK (Windows/PowerShell required).\build.ps1to compile the WebAssembly buildproject/emscriptenoutput folder with a local web serverVerification Checklist:
Screenshots
Screenshots will be provided after local testing with the WebAssembly build. The changes implement the UI improvements shown in the reference screenshots provided in the task description.
Related Issues
Implements the requirements from the task description:
Note: Due to the WebAssembly build requirement, automated testing in CI is not possible. Manual testing on a local Emscripten build is required to verify all functionality.