branchrust_reboot/main/editor_hotbar_swapcancel
7 Commits over 0 Days - Infinitycph!
Add the second hotbar to GameUI.Hud.prefab (so much for the dream of not reserializing the large UI prefabs)
Make the second hotbar a prefab instead of cloning the normal hotbar
Update the GameUI.Inventory.prefab prefab manually with only the fields we want to change (instead of the whole prefab reserializing)
Modify ContainerSourceLocalPlayer so it can override the transform it uses for `ItemIcon[] allIcons`
- the main inventory panel was parented too high and grabbing icons from different panels
- keep the parenting the same, only changing where it's fetching the icons from
merge from main -> editor_hotbar_swap
Don't render the last row of the last row of the main inventory when the 2nd hotbar is shown so it looks better when openinga and closing main inventory
Make the editor-only feature available for admins too
- NOT FOR NORMAL PLAYERS
- press Z (can rebind) to swap to a second hotbar
- enable "drawsecondhotbar" to render the second hotbar above the first