Skip to content

rework the inventory menu to be more flexible, and add rando features#13

Open
duncathan wants to merge 1 commit into
MetroidPrimeModding:mainfrom
duncathan:feature/inventory-menu
Open

rework the inventory menu to be more flexible, and add rando features#13
duncathan wants to merge 1 commit into
MetroidPrimeModding:mainfrom
duncathan:feature/inventory-menu

Conversation

@duncathan

@duncathan duncathan commented Jun 24, 2026

Copy link
Copy Markdown
Contributor
  • changed the arrays of items defining the tabs to be arrays of structs, with an optional bool argument for whether to render as full-width
  • generalized the item columns rendering to handle the new full-width feature, so each tab now just makes a single function call to render
  • use an ImGui table to render in columns, rather than groups and SameLine
  • slightly reorganizes the General and Weapons tabs
  • adds handling for rando's various custom items, behind the RANDOMIZER define
  • adjust the All items button to get max capacity dynamically, rather than defining the capacities statically

@duncathan

Copy link
Copy Markdown
Contributor Author

here are some screenshots of the new layout, first in no-rando mode:
image
(ignore varia being a slider, that's a quirk of my testing setup)
image

and in rando mode:
image
image
image
image

Comment thread src/UI/InventoryMenu.cpp
}
}
#endif
// if (itemType == CPlayerState::EItemType::VariaSuit || itemType == CPlayerState::EItemType::PowerSuit ||

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this comment already existed, but there's no need for this in Echoes I believe

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I just left it in as I restructured, but could easily remove

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants