mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Fix character screen weapon slot positioning regression
Weapon slots were positioned too far right (at rightColX) causing overlap with right column equipment. Repositioned to center column area (contentStartX + slotSize + 8px), after left column. 3D preview renders on top, no visual conflict.
This commit is contained in:
parent
0c8fb94f0c
commit
bfeb978eff
1 changed files with 2 additions and 2 deletions
|
|
@ -1367,8 +1367,8 @@ void InventoryScreen::renderEquipmentPanel(game::Inventory& inventory) {
|
|||
game::EquipSlot::RANGED,
|
||||
};
|
||||
|
||||
// Position weapons to the right of the left column (after the 3D preview column)
|
||||
ImGui::SetCursorPosX(rightColX);
|
||||
// Position weapons in center column area (after left column, 3D preview renders on top)
|
||||
ImGui::SetCursorPosX(contentStartX + slotSize + 8.0f);
|
||||
for (int i = 0; i < 3; i++) {
|
||||
if (i > 0) ImGui::SameLine();
|
||||
const auto& slot = inventory.getEquipSlot(weaponSlots[i]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue