From 16aca4c093756a5e5df3822eaeff2664c7e3d482 Mon Sep 17 00:00:00 2001 From: Andrew Chin Date: Sat, 6 Nov 2010 22:04:38 -0400 Subject: [PATCH] Fancy icons for signposts and spawn, plus info windows for signposts Thanks to gabrielcrowe for the signpost icon. --- quadtree.py | 4 ++++ template.html | 37 ++++++++++++++++++++++++++------- web_assets/signpost-shadow.png | Bin 0 -> 368 bytes web_assets/signpost.png | Bin 0 -> 708 bytes web_assets/signpost_icon.png | Bin 0 -> 253 bytes web_assets/style.css | 18 ++++++++++++++++ 6 files changed, 51 insertions(+), 8 deletions(-) create mode 100644 web_assets/signpost-shadow.png create mode 100644 web_assets/signpost.png create mode 100644 web_assets/signpost_icon.png create mode 100644 web_assets/style.css diff --git a/quadtree.py b/quadtree.py index c013c62..39176bb 100644 --- a/quadtree.py +++ b/quadtree.py @@ -144,6 +144,10 @@ class QuadtreeGen(object): if not os.path.exists(tileDir): os.mkdir(tileDir) blank.save(os.path.join(tileDir, "blank."+self.imgformat)) + # copy web assets into destdir: + for root, dirs, files in os.walk(os.path.join(util.get_program_path(), "web_assets")): + for f in files: + shutil.copy(os.path.join(root, f), self.destdir) if skipjs: return diff --git a/template.html b/template.html index 96ccae2..42d925a 100644 --- a/template.html +++ b/template.html @@ -2,11 +2,7 @@ - +