summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ui.c b/src/ui.c
index a0b8913..08ab64a 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -265,12 +265,19 @@ void ui_display_wnd_current_state(const player_list_t *pl, const uint8_t num_pla
/**
* Displays the message window.
* @param[in] message The message to display
+ * @param[in] highlight If true, the message will be highlighted
*/
-void ui_display_wnd_messages(const char *message)
+void ui_display_wnd_messages(const char *message, const bool highlight)
{
wclear(w_messages);
+
+ if (highlight)
+ wattron(w_messages, COLOR_PAIR(CP_YELLOW_ON_BLACK));
mvwprintw(w_messages, 0, 0, "%s", message);
+
+ if (highlight)
+ wattroff(w_messages, COLOR_PAIR(CP_YELLOW_ON_BLACK));
wrefresh(w_messages);
}