refactor: 3-column inventory layout (paperdoll+items | packs | mana)

This commit is contained in:
Erik 2026-03-13 20:34:36 +01:00
parent 66ff5f01fc
commit cff99f9b87
2 changed files with 4 additions and 59 deletions

View file

@ -1658,9 +1658,6 @@ function showInventoryWindow(name) {
invContent.style.display = 'none';
content.appendChild(invContent);
const topSection = document.createElement('div');
topSection.className = 'inv-top-section';
const equipGrid = document.createElement('div');
equipGrid.className = 'inv-equipment-grid';
@ -1717,30 +1714,19 @@ function showInventoryWindow(name) {
const leftColumn = document.createElement('div');
leftColumn.className = 'inv-left-column';
topSection.appendChild(equipGrid);
topSection.appendChild(sidebar);
const bottomSection = document.createElement('div');
bottomSection.className = 'inv-bottom-section';
const itemSection = document.createElement('div');
itemSection.className = 'inv-item-section';
const contentsHeader = document.createElement('div');
contentsHeader.className = 'inv-contents-header';
contentsHeader.textContent = 'Contents of Backpack';
const itemGrid = document.createElement('div');
itemGrid.className = 'inv-item-grid';
itemSection.appendChild(contentsHeader);
itemSection.appendChild(itemGrid);
bottomSection.appendChild(itemSection);
leftColumn.appendChild(topSection);
leftColumn.appendChild(bottomSection);
leftColumn.appendChild(equipGrid);
leftColumn.appendChild(contentsHeader);
leftColumn.appendChild(itemGrid);
invContent.appendChild(leftColumn);
invContent.appendChild(sidebar);
invContent.appendChild(manaPanel);
const resizeGrip = document.createElement('div');
@ -1777,7 +1763,6 @@ function showInventoryWindow(name) {
windowEl: win,
items: [],
activePack: null,
topSection: topSection,
slotMap: slotMap,
equipGrid: equipGrid,
itemGrid: itemGrid,