diff options
| author | David Skoland <davidskoland@gmail.com> | 2026-02-11 00:05:04 +0100 |
|---|---|---|
| committer | David Skoland <davidskoland@gmail.com> | 2026-02-11 00:05:04 +0100 |
| commit | 6314a7e61ad85aaf9313ed2947853e8e1d2aea33 (patch) | |
| tree | 858f8fe1426443939294fcf59e7a8687e57e9432 /webAO/dom/renderPlayerList.ts | |
| parent | 9993c378613b20b6f6f74b324c22c3bfda4c71fc (diff) | |
Add area column to playerlist
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'webAO/dom/renderPlayerList.ts')
| -rw-r--r-- | webAO/dom/renderPlayerList.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/webAO/dom/renderPlayerList.ts b/webAO/dom/renderPlayerList.ts index d0f08c6..a78851b 100644 --- a/webAO/dom/renderPlayerList.ts +++ b/webAO/dom/renderPlayerList.ts @@ -6,7 +6,7 @@ export function renderPlayerList() { list.innerHTML = ""; const header = list.createTHead().insertRow(); - for (const label of ["Icon", "Character", "Showname", "OOC Name"]) { + for (const label of ["Icon", "Character", "Showname", "OOC Name", "Area"]) { const th = document.createElement("th"); th.textContent = label; header.appendChild(th); @@ -38,14 +38,17 @@ export function renderPlayerList() { const oocNameCell = playerRow.insertCell(3); oocNameCell.textContent = player.name; - const kickCell = playerRow.insertCell(4); + const areaCell = playerRow.insertCell(4); + areaCell.textContent = String(player.area); + + const kickCell = playerRow.insertCell(5); kickCell.style.width = "64px"; const kick = document.createElement("button"); kick.innerText = "Kick"; kick.onclick = () => window.kickPlayer(playerID); kickCell.appendChild(kick); - const banCell = playerRow.insertCell(5); + const banCell = playerRow.insertCell(6); banCell.style.width = "64px"; const ban = document.createElement("button"); ban.innerText = "Ban"; |
