From 0aca242db52695fa0804ac180fc7961b281b422a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 9 Mar 2013 00:32:28 +0300 Subject: Add new notifications to gamehandler. --- src/notifications.h | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) (limited to 'src/notifications.h') diff --git a/src/notifications.h b/src/notifications.h index 9c8e1533a..b5c622c76 100644 --- a/src/notifications.h +++ b/src/notifications.h @@ -25,11 +25,6 @@ namespace NotifyManager { - struct NotificationInfo - { - const char *text; - }; - enum NotifyTypes { BUY_DONE, @@ -39,18 +34,32 @@ namespace NotifyManager SELL_FAILED, SELL_TRADE_FAILED, SELL_UNSELLABLE_FAILED, + ONLINE_USERS, TYPE_END }; + enum NotifyFlags + { + EMPTY, + INT + }; + + struct NotificationInfo + { + const char *text; + const NotifyFlags flags; + }; + static const NotificationInfo notifications[] = { - {N_("Thanks for buying.")}, - {N_("Unable to buy.")}, - {N_("Nothing to sell.")}, - {N_("Thanks for selling.")}, - {N_("Unable to sell.")}, - {N_("Unable to sell while trading.")}, - {N_("Unable to sell unsellable item.")} + {N_("Thanks for buying."), EMPTY}, + {N_("Unable to buy."), EMPTY}, + {N_("Nothing to sell."), EMPTY}, + {N_("Thanks for selling."), EMPTY}, + {N_("Unable to sell."), EMPTY}, + {N_("Unable to sell while trading."), EMPTY}, + {N_("Unable to sell unsellable item."), EMPTY}, + {N_("Online users: %d"), INT} }; } #endif -- cgit v1.2.3-70-g09d2