summaryrefslogtreecommitdiff
path: root/ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/ui.js b/ui.js
index 90c8ac0..1460612 100644
--- a/ui.js
+++ b/ui.js
@@ -375,7 +375,16 @@ function build_map() {
for (let name in TOWNS) {
let town = TOWNS[name];
- ui.towns[name] = build_town(name, town);
+ if (name == "Sea") {
+ element = document.getElementById("svgmap").getElementById("sea");
+ element.town = "Sea";
+ element.addEventListener("mouseenter", on_focus_town);
+ element.addEventListener("mouseleave", on_blur_town);
+ element.addEventListener("click", on_click_town);
+ ui.towns[name] = element;
+ } else {
+ ui.towns[name] = build_town(name, town);
+ }
}
for (let b in BLOCKS) {