From 73e7be1617217396c5f1eead52af87bc7fef2357 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 6 Aug 2013 14:02:19 +0300 Subject: add colors tab into chat emotes window. --- src/gui/chatwindow.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/gui/chatwindow.cpp') diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp index 2017fc4f6..ed8e6a1d3 100644 --- a/src/gui/chatwindow.cpp +++ b/src/gui/chatwindow.cpp @@ -499,6 +499,18 @@ void ChatWindow::action(const gcn::ActionEvent &event) } } } + else if (eventId == "color") + { + if (emoteWindow) + { + const std::string str = emoteWindow->getSelectedColor(); + if (!str.empty()) + { + addInputText(str, false); + emoteWindow->clearColor(); + } + } + } else if (eventId == ACTION_COLOR_PICKER) { if (mColorPicker) -- cgit v1.2.3-70-g09d2