mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Fix character screen weapon slots layout positioning
Position weapon slots (main hand, off hand, ranged) to align with the right column instead of appearing in the left column where they crowd the main equipment slots (tabbard, bracers, etc.). Weapons now positioned consistently with the 3-column layout at rightColX instead of appearing at the default left cursor position.
This commit is contained in:
parent
047b9157ad
commit
3f0e19970e
1 changed files with 4 additions and 1 deletions
|
|
@ -1357,7 +1357,7 @@ void InventoryScreen::renderEquipmentPanel(game::Inventory& inventory) {
|
|||
}
|
||||
}
|
||||
|
||||
// Weapon row
|
||||
// Weapon row - positioned to the right of left column to avoid crowding main equipment
|
||||
ImGui::Spacing();
|
||||
ImGui::Separator();
|
||||
|
||||
|
|
@ -1366,6 +1366,9 @@ void InventoryScreen::renderEquipmentPanel(game::Inventory& inventory) {
|
|||
game::EquipSlot::OFF_HAND,
|
||||
game::EquipSlot::RANGED,
|
||||
};
|
||||
|
||||
// Position weapons to the right of the left column (after the 3D preview column)
|
||||
ImGui::SetCursorPosX(rightColX);
|
||||
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