summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/menu.h
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-01 23:28:27 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-01 23:28:27 +0000
commitf4fe0980660963ebfd05d86ca9c6b7df0e03940a (patch)
treecf14e0af215c2dd9343df6ae0fc95ddce2becb21 /crawl-ref/source/menu.h
parent995e35a5faf111223e24caeecc97c47cfe050e5a (diff)
downloadcrawl-ref-f4fe0980660963ebfd05d86ca9c6b7df0e03940a.tar.gz
crawl-ref-f4fe0980660963ebfd05d86ca9c6b7df0e03940a.zip
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
Diffstat (limited to 'crawl-ref/source/menu.h')
-rw-r--r--crawl-ref/source/menu.h12
1 files changed, 11 insertions, 1 deletions
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<tile_def>& 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<MenuEntry *> show();