From 6314a7e61ad85aaf9313ed2947853e8e1d2aea33 Mon Sep 17 00:00:00 2001 From: David Skoland Date: Wed, 11 Feb 2026 00:05:04 +0100 Subject: Add area column to playerlist Co-Authored-By: Claude Opus 4.6 --- webAO/dom/renderPlayerList.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'webAO/dom') 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"; -- cgit