summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/message.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2010-02-08 19:01:00 +0100
committerRobert Vollmert <rvollmert@gmx.net>2010-02-08 19:18:05 +0100
commitfb1a8b72e8d3414ac0ab451752ef5b8d0a6370c8 (patch)
tree1ab3855528bce79673f7a5d5c8fc60961230b5e4 /crawl-ref/source/message.h
parent68d1ef5ca1e90966455f33d4b8375f098ccdf8c5 (diff)
downloadcrawl-ref-fb1a8b72e8d3414ac0ab451752ef5b8d0a6370c8.tar.gz
crawl-ref-fb1a8b72e8d3414ac0ab451752ef5b8d0a6370c8.zip
Redo handling of temporary messages.
Any number of temporary messages can now be printed by first setting a flag with msgwin_set_temporary(true). These messages may then be cleared from both history and message window by calling msgwin_clear_temporary. Calling msgwin_set_temporary(false) will make previously temporary messages permannet.
Diffstat (limited to 'crawl-ref/source/message.h')
-rw-r--r--crawl-ref/source/message.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/message.h b/crawl-ref/source/message.h
index 45afe778b5..ac3249c1dc 100644
--- a/crawl-ref/source/message.h
+++ b/crawl-ref/source/message.h
@@ -45,6 +45,13 @@ void mpr_comma_separated_list(const std::string prefix,
class input_history;
+// Sets whether messages that are printed through mpr are
+// considered temporary.
+void msgwin_set_temporary(bool temp);
+// Clear the last set of temporary messages from both
+// message window and history.
+void msgwin_clear_temporary();
+
void msgwin_prompt(std::string prompt);
void msgwin_reply(std::string reply);