mail[Wesnoth-commits] r34230 - /trunk/src/multiplayer_ui.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by thomas . baumhauer on March 29, 2009 - 11:11:
Author: baufo
Date: Sun Mar 29 11:11:43 2009
New Revision: 34230

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34230&view=rev
Log:
highlight private messages in the lobby in a different color

Modified:
    trunk/src/multiplayer_ui.cpp

Modified: trunk/src/multiplayer_ui.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/multiplayer_ui.cpp?rev=34230&r1=34229&r2=34230&view=diff
==============================================================================
--- trunk/src/multiplayer_ui.cpp (original)
+++ trunk/src/multiplayer_ui.cpp Sun Mar 29 11:11:43 2009
@@ -257,6 +257,9 @@
        if(message.user == "server") {
                int unused;
                font::parse_markup(message.message.begin(), 
message.message.end(), &unused, &c, &unused);
+       // Highlight private messages too
+       } else if(message.user.substr(0,8) == "whisper:") {
+           c = font::LABEL_COLOUR;
        }
        return c;
 };




Related Messages


Powered by MHonArc, Updated Sun Mar 29 11:20:25 2009