mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-03 08:03:50 +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,
|
game::EquipSlot::RANGED,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Position weapons to the right of the left column (after the 3D preview column)
|
// Position weapons in center column area (after left column, 3D preview renders on top)
|
||||||
ImGui::SetCursorPosX(rightColX);
|
ImGui::SetCursorPosX(contentStartX + slotSize + 8.0f);
|
||||||
for (int i = 0; i < 3; i++) {
|
for (int i = 0; i < 3; i++) {
|
||||||
if (i > 0) ImGui::SameLine();
|
if (i > 0) ImGui::SameLine();
|
||||||
const auto& slot = inventory.getEquipSlot(weaponSlots[i]);
|
const auto& slot = inventory.getEquipSlot(weaponSlots[i]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue