summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-07-03 12:19:42 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-07-03 12:19:42 +0000
commitdf3e336df85ddf3142800f1ca64594a720cd4d78 (patch)
tree5ec9ad9bec49728368a541d2fc4b34138c757222 /src/gui
parentfd61bd7f0134dc457a52a7106128607050e3a29e (diff)
downloadmana-df3e336df85ddf3142800f1ca64594a720cd4d78.tar.gz
mana-df3e336df85ddf3142800f1ca64594a720cd4d78.tar.bz2
mana-df3e336df85ddf3142800f1ca64594a720cd4d78.tar.xz
mana-df3e336df85ddf3142800f1ca64594a720cd4d78.zip
- Removing "walk to", "attack" from context menu
- Attack is now default for left click (auto attack is not working yet with mouse) - Commented out "follow" from context menu
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/popupmenu.cpp36
1 files changed, 6 insertions, 30 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp
index f58312db..c9b53324 100644
--- a/src/gui/popupmenu.cpp
+++ b/src/gui/popupmenu.cpp
@@ -77,11 +77,7 @@ void PopupMenu::showPopup(int mx, int my)
if (being)
{
- if (being->isMonster())
- {
- browserBox->addRow("@@attack|Attack Monster@@");
- }
- else if (being->isNpc())
+ if (being->isNpc())
{
browserBox->addRow("@@talk|Talk To NPC@@");
}
@@ -90,7 +86,7 @@ void PopupMenu::showPopup(int mx, int my)
std::string name = being->name;
//browserBox->addRow("@@attack|Attack " + name + "@@");
browserBox->addRow("@@trade|Trade With " + name + "@@");
- browserBox->addRow("@@follow|Follow " + name + "@@");
+ //browserBox->addRow("@@follow|Follow " + name + "@@");
//browserBox->addRow("@@buddy|Add " + name + " to Buddy List@@");
}
}
@@ -99,10 +95,7 @@ void PopupMenu::showPopup(int mx, int my)
std::string name = itemDb->getItemInfo(floorItem->id)->getName();
browserBox->addRow("@@pickup|Pick Up " + name + "@@");
}
- else
- {
- browserBox->addRow("@@walk|Walk To@@");
- }
+
//browserBox->addRow("@@look|Look To@@");
browserBox->addRow("##3---");
browserBox->addRow("@@cancel|Cancel@@");
@@ -139,18 +132,8 @@ void PopupMenu::draw(gcn::Graphics* graphics)
void PopupMenu::handleLink(const std::string& link)
{
- // Attack action
- if ((link == "attack") && being)
- {
- if (being->isMonster() && (being->action != MONSTER_DEAD))
- {
- autoTarget = being;
- attack(being);
- }
- }
-
// Talk To action
- else if ((link == "talk") && being && being->isNpc() &&
+ if ((link == "talk") && being && being->isNpc() &&
(current_npc == 0))
{
WFIFOW(0) = net_w_value(0x0090);
@@ -167,11 +150,11 @@ void PopupMenu::handleLink(const std::string& link)
WFIFOL(2) = net_l_value(being->id);
WFIFOSET(6);
}
-
+ /*
// Follow Player action
else if (link == "follow")
{
- }
+ }*/
/*
// Add Buddy action
@@ -191,13 +174,6 @@ void PopupMenu::handleLink(const std::string& link)
WFIFOSET(6);
}
- // Walk To action
- else if ((link == "walk") && (mX != -1) && (mY != -1))
- {
- walk(mX, mY, 0);
- player_node->setDestination(mX, mY);
- }
-
// Look To action
else if (link == "look")
{