summaryrefslogtreecommitdiff
path: root/src/gui/popups
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-10 02:03:33 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-10 02:03:33 +0300
commitb97afbb756202e148b980b3311e2c4cc3dd1cbaf (patch)
tree15c45e87fe175155a219fa9e50bc6ff74b2cc1e4 /src/gui/popups
parentd94f088b0f81fb114980830d8fb53a5ee911b6e6 (diff)
downloadplus-b97afbb756202e148b980b3311e2c4cc3dd1cbaf.tar.gz
plus-b97afbb756202e148b980b3311e2c4cc3dd1cbaf.tar.bz2
plus-b97afbb756202e148b980b3311e2c4cc3dd1cbaf.tar.xz
plus-b97afbb756202e148b980b3311e2c4cc3dd1cbaf.zip
Add ability to switch emotes shortcurs bar between player, pets, homunculuses and mercenaries.
Diffstat (limited to 'src/gui/popups')
-rw-r--r--src/gui/popups/popupmenu.cpp37
-rw-r--r--src/gui/popups/popupmenu.h2
2 files changed, 39 insertions, 0 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index 18f034e67..9a3f7f753 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -1097,6 +1097,43 @@ void PopupMenu::addWindowMenu(const Window *const window)
}
}
+void PopupMenu::showEmoteType()
+{
+ setMousePos();
+
+ mBrowserBox->clearRows();
+ // TRANSLATORS: popup menu header
+ mBrowserBox->addRow(_("Show emotes for:"));
+
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: show emotes for player
+ mBrowserBox->addRow("/setemotetype player", _("Player"));
+
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: show emotes for pet
+ mBrowserBox->addRow("/setemotetype pet", _("Pet"));
+
+#ifdef EATHENA_SUPPORT
+ if (serverFeatures->haveServerPets())
+ {
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: show emotes for homuncules
+ mBrowserBox->addRow("/setemotetype homun", _("Homunculus"));
+
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: show emotes for mercenary
+ mBrowserBox->addRow("/setemotetype merc", _("Mercenary"));
+ }
+#endif
+ mBrowserBox->addRow("##3---");
+
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: close menu
+ mBrowserBox->addRow("cancel", _("Cancel"));
+
+ showPopup(mX, mY);
+}
+
void PopupMenu::handleLink(const std::string &link,
MouseEvent *event A_UNUSED)
{
diff --git a/src/gui/popups/popupmenu.h b/src/gui/popups/popupmenu.h
index b69a0f588..dc53312f4 100644
--- a/src/gui/popups/popupmenu.h
+++ b/src/gui/popups/popupmenu.h
@@ -167,6 +167,8 @@ class PopupMenu final : public Popup, public LinkHandler
void showCraftPopup();
#endif
+ void showEmoteType();
+
/**
* Handles link action.
*/