summaryrefslogtreecommitdiff
path: root/src/gui/status.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2005-01-29 22:14:47 +0000
committerYohann Ferreira <bertram@cegetel.net>2005-01-29 22:14:47 +0000
commitc13a79880f143ee6dca4b1a1c8c3b43a568d0ebe (patch)
tree1194217a5f069ce688b046e27c4f459765ee570e /src/gui/status.cpp
parent255adf0769586ccce52da6147a841ba945d3e9e2 (diff)
downloadmana-client-c13a79880f143ee6dca4b1a1c8c3b43a568d0ebe.tar.gz
mana-client-c13a79880f143ee6dca4b1a1c8c3b43a568d0ebe.tar.bz2
mana-client-c13a79880f143ee6dca4b1a1c8c3b43a568d0ebe.tar.xz
mana-client-c13a79880f143ee6dca4b1a1c8c3b43a568d0ebe.zip
*** empty log message ***
Diffstat (limited to 'src/gui/status.cpp')
-rw-r--r--src/gui/status.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/status.cpp b/src/gui/status.cpp
index e5482f09..ac587a01 100644
--- a/src/gui/status.cpp
+++ b/src/gui/status.cpp
@@ -51,6 +51,10 @@ StatusWindow::StatusWindow():
inventoryButton->setEventId("Inventory");
inventoryButton->addActionListener(this);
+ setupButton = new Button("Config");
+ setupButton->setEventId("Config");
+ setupButton->addActionListener(this);
+
hp->setPosition(WIN_BORDER, WIN_BORDER);
sp->setPosition(WIN_BORDER, hp->getY() + hp->getHeight() + CONTROLS_SEPARATOR);
healthBar = new ProgressBar(1.0f, WIN_BORDER + hp->getWidth() + CONTROLS_SEPARATOR, WIN_BORDER + 3, 80, 0, 255, 0);
@@ -68,6 +72,7 @@ StatusWindow::StatusWindow():
statsButton->setPosition(WIN_BORDER, xpBar->getY() + xpBar->getHeight() + 2*CONTROLS_SEPARATOR);
skillsButton->setPosition(statsButton->getX() + statsButton->getWidth() + CONTROLS_SEPARATOR, statsButton->getY());
inventoryButton->setPosition(skillsButton->getX() + skillsButton->getWidth() + CONTROLS_SEPARATOR, statsButton->getY());
+ setupButton->setPosition(inventoryButton->getX() + inventoryButton->getWidth() + CONTROLS_SEPARATOR, statsButton->getY());
setSize(250, statsButton->getY() + statsButton->getHeight() + WIN_BORDER);
@@ -85,6 +90,7 @@ StatusWindow::StatusWindow():
add(statsButton);
add(skillsButton);
add(inventoryButton);
+ add(setupButton);
}
StatusWindow::~StatusWindow()
@@ -101,6 +107,7 @@ StatusWindow::~StatusWindow()
delete statsButton;
delete skillsButton;
delete inventoryButton;
+ delete setupButton;
}
void StatusWindow::update()
@@ -173,4 +180,8 @@ void StatusWindow::action(const std::string& eventId) {
// Show / Hide the inventory dialog
inventoryWindow->setVisible(!inventoryWindow->isVisible());
}
+ if (eventId == "Config") {
+ // Show / Hide the inventory dialog
+ setupWindow->setVisible(true);
+ }
}