From bd7052d90ce2c493f8f93d2be46625bb8297ad79 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 7 Aug 2013 20:25:56 +0300 Subject: Add font 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 ed8e6a1d3..b33a14a0e 100644 --- a/src/gui/chatwindow.cpp +++ b/src/gui/chatwindow.cpp @@ -511,6 +511,18 @@ void ChatWindow::action(const gcn::ActionEvent &event) } } } + else if (eventId == "font") + { + if (emoteWindow) + { + const std::string str = emoteWindow->getSelectedFont(); + if (!str.empty()) + { + addInputText(str, false); + emoteWindow->clearFont(); + } + } + } else if (eventId == ACTION_COLOR_PICKER) { if (mColorPicker) -- cgit v1.2.3-70-g09d2