summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/menu.h
diff options
context:
space:
mode:
authorFlorian Diebold <flodiebold@gmail.com>2011-12-06 01:46:52 +0100
committerFlorian Diebold <flodiebold@gmail.com>2011-12-08 22:52:59 +0100
commitf11a80807d4831bdac17f0fc31424906e181a163 (patch)
treee71b057e30a6b13a3b058e95b5f0e62b3662117c /crawl-ref/source/menu.h
parent90cb4c8ac298b0c6575235df1e89dde18520bed9 (diff)
downloadcrawl-ref-f11a80807d4831bdac17f0fc31424906e181a163.tar.gz
crawl-ref-f11a80807d4831bdac17f0fc31424906e181a163.zip
Webtiles: Send the current menu scroll position to the server and to spectators.
Spectators can still scroll independently; but as long as they don't, they'll see where the player scrolls. Also, Crawl needs the current scroll position to select the correct item in long (>52) lists.
Diffstat (limited to 'crawl-ref/source/menu.h')
-rw-r--r--crawl-ref/source/menu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/menu.h b/crawl-ref/source/menu.h
index 50000593df..bfd7b0e72f 100644
--- a/crawl-ref/source/menu.h
+++ b/crawl-ref/source/menu.h
@@ -370,6 +370,7 @@ public:
#ifdef USE_TILE_WEB
void webtiles_write_menu() const;
+ void webtiles_scroll(int first);
#endif
protected:
MenuEntry *title;
@@ -413,6 +414,7 @@ protected:
#ifdef USE_TILE_WEB
void webtiles_update_item(int index) const;
void webtiles_update_title() const;
+ void webtiles_update_scroll_pos() const;
virtual void webtiles_write_title() const;
virtual void webtiles_write_item(int index, const MenuEntry *me) const;