summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.h
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-17 13:43:42 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-17 13:43:42 +0000
commitf672c6472dfa1ac6fa64f1d77e5701589576ca6c (patch)
tree96309e9add139ef71e0ba3f529f7502ebb2e1530 /crawl-ref/source/invent.h
parent7a0cf4fa055dbebc676db78dde82881be8a6e6af (diff)
downloadcrawl-ref-f672c6472dfa1ac6fa64f1d77e5701589576ca6c.tar.gz
crawl-ref-f672c6472dfa1ac6fa64f1d77e5701589576ca6c.zip
Allow specific colouring of pickup menu (as opposed to general
inventory). To do so, use "pickup:colour:pattern". git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4287 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/invent.h')
-rw-r--r--crawl-ref/source/invent.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/crawl-ref/source/invent.h b/crawl-ref/source/invent.h
index 804a034a64..74ac810a85 100644
--- a/crawl-ref/source/invent.h
+++ b/crawl-ref/source/invent.h
@@ -43,7 +43,7 @@ struct SelItem
SelItem() : slot(0), quantity(0), item(NULL) { }
SelItem( int s, int q, const item_def *it = NULL )
- : slot(s), quantity(q), item(it)
+ : slot(s), quantity(q), item(it)
{
}
};
@@ -55,7 +55,7 @@ struct InvTitle : public MenuEntry
{
Menu *m;
invtitle_annotator titlefn;
-
+
InvTitle( Menu *mn, const std::string &title,
invtitle_annotator tfn );
@@ -71,7 +71,7 @@ private:
mutable std::string basename;
mutable std::string qualname;
-
+
friend class InvShowPrices;
public:
@@ -112,7 +112,7 @@ public:
class InvMenu : public Menu
{
public:
- InvMenu(int mflags = MF_MULTISELECT)
+ InvMenu(int mflags = MF_MULTISELECT)
: Menu(mflags, "inventory"), type(MT_INVLIST), pre_select(NULL),
title_annotate(NULL)
{
@@ -169,15 +169,15 @@ protected:
int prompt_invent_item( const char *prompt,
menu_type type,
int type_expect,
- bool must_exist = true,
- bool allow_auto_list = true,
+ bool must_exist = true,
+ bool allow_auto_list = true,
bool allow_easy_quit = true,
const char other_valid_char = '\0',
int *const count = NULL,
operation_types oper = OPER_ANY );
std::vector<SelItem> select_items(
- const std::vector<const item_def*> &items,
+ const std::vector<const item_def*> &items,
const char *title, bool noselect = false,
menu_type mtype = MT_PICKUP );