diff options
| author | David Skoland <davidskoland@gmail.com> | 2026-03-28 14:09:06 +0100 |
|---|---|---|
| committer | David Skoland <davidskoland@gmail.com> | 2026-03-28 14:09:06 +0100 |
| commit | 6f407b54c3251b90463bc508852b031d72b0c673 (patch) | |
| tree | f5a86e282dd1c09b372fff842c5740b38bb1256e /webAO/dom/areaClick.ts | |
| parent | 95145c824e252b030a5e53950c9f1ed39774c79a (diff) | |
remove UI related changes
Diffstat (limited to 'webAO/dom/areaClick.ts')
| -rw-r--r-- | webAO/dom/areaClick.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/webAO/dom/areaClick.ts b/webAO/dom/areaClick.ts index 120ef39..27682c7 100644 --- a/webAO/dom/areaClick.ts +++ b/webAO/dom/areaClick.ts @@ -1,5 +1,4 @@ import { client } from "../client"; -import { appendICNotice } from "../client/appendICNotice"; import { renderPlayerList } from "./renderPlayerList"; /** * Triggered when an item on the area list is clicked. @@ -8,7 +7,11 @@ import { renderPlayerList } from "./renderPlayerList"; export function area_click(el: HTMLElement) { const area = client.areas[el.id.substring(4)].name; client.sender.sendMusicChange(area); - appendICNotice(`switched to ${el.textContent}`); + + const areaHr = document.createElement("div"); + areaHr.className = "hrtext"; + areaHr.textContent = `switched to ${el.textContent}`; + document.getElementById("client_log")!.appendChild(areaHr); client.area = Number(el.id.substring(4)); renderPlayerList(); } |
