diff options
| author | David Skoland <davidskoland@gmail.com> | 2026-02-11 00:10:05 +0100 |
|---|---|---|
| committer | David Skoland <davidskoland@gmail.com> | 2026-02-11 00:10:05 +0100 |
| commit | c380112d5f29b68bfa301527405fdf372835900e (patch) | |
| tree | 2adc4823adb41662db8062e6aaab4c3586e374d8 /webAO/dom/areaClick.ts | |
| parent | 6314a7e61ad85aaf9313ed2947853e8e1d2aea33 (diff) | |
Filter playerlist by area and remove Area column
Hide players not in the client's current area. Re-render playerlist
on area switch. Remove the now-redundant Area column.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'webAO/dom/areaClick.ts')
| -rw-r--r-- | webAO/dom/areaClick.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/webAO/dom/areaClick.ts b/webAO/dom/areaClick.ts index f7b177e..27682c7 100644 --- a/webAO/dom/areaClick.ts +++ b/webAO/dom/areaClick.ts @@ -1,4 +1,5 @@ import { client } from "../client"; +import { renderPlayerList } from "./renderPlayerList"; /** * Triggered when an item on the area list is clicked. * @param {HTMLElement} el @@ -12,5 +13,6 @@ export function area_click(el: HTMLElement) { areaHr.textContent = `switched to ${el.textContent}`; document.getElementById("client_log")!.appendChild(areaHr); client.area = Number(el.id.substring(4)); + renderPlayerList(); } window.area_click = area_click; |
