From f4fe0980660963ebfd05d86ca9c6b7df0e03940a Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Wed, 1 Jul 2009 23:28:27 +0000 Subject: Add player icons (default species/job tile) to the selection menu for saved games. Bugs/issues: * cannot handle more lines than fit the screen [*] * does not show actual equipment * probably should respect dolls.txt settings I guess the equipment problem could be solved by yet another per-character save file similar to dolls.txt, so newgame.cc could read directly from this rather than have to open the save to calculate equipment tiles or any such insanity. *) presumably because maxpagesize() assumes the entire screen is available for use by the menu git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10083 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/menu.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/menu.h') diff --git a/crawl-ref/source/menu.h b/crawl-ref/source/menu.h index 034c5df682..5ad7ed620a 100644 --- a/crawl-ref/source/menu.h +++ b/crawl-ref/source/menu.h @@ -172,6 +172,16 @@ public: #endif }; +#ifdef USE_TILE +class PlayerMenuEntry : public MenuEntry +{ +public: + PlayerMenuEntry(const std::string &str); + + virtual bool get_tiles(std::vector& tileset) const; +}; +#endif + class FeatureMenuEntry : public MenuEntry { public: @@ -413,7 +423,7 @@ class slider_menu : public Menu { public: // Multiselect would be awkward to implement. - slider_menu(int flags = MF_SINGLESELECT | MF_NOWRAP); + slider_menu(int flags = MF_SINGLESELECT | MF_NOWRAP, bool text_only = true); void display(); std::vector show(); -- cgit v1.2.3-54-g00ecf