From f6e795cc95dce10e1df44a89bd03539e72888a32 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 21 Apr 2011 17:49:09 +0300 Subject: Add attack filter char commands. And place avatar list box separator without left padding. --- src/gui/chatwindow.cpp | 3 +++ src/gui/widgets/avatarlistbox.cpp | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp index 472c2b531..506257047 100644 --- a/src/gui/chatwindow.cpp +++ b/src/gui/chatwindow.cpp @@ -285,6 +285,9 @@ void ChatWindow::fillCommands() mCommands.push_back("/info"); mCommands.push_back("/wait"); mCommands.push_back("/uptime"); + mCommands.push_back("/addattack "); + mCommands.push_back("/removeattack "); + mCommands.push_back("/addignoreattack "); } void ChatWindow::resetToDefaultSize() diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp index 8309ad156..f3bdb6a45 100644 --- a/src/gui/widgets/avatarlistbox.cpp +++ b/src/gui/widgets/avatarlistbox.cpp @@ -258,7 +258,10 @@ void AvatarListBox::draw(gcn::Graphics *gcnGraphics) graphics->setColor(Theme::getThemeColor(Theme::TEXT)); // Draw Name - graphics->drawText(text, 15, y); + if (a->getType() == MapItem::SEPARATOR) + graphics->drawText(text, 2, y); + else + graphics->drawText(text, 15, y); if (a->getDisplayBold()) graphics->setFont(getFont()); -- cgit v1.2.3-70-g09d2