summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-04-23 22:15:26 -0600
committerJared Adams <jaxad0127@gmail.com>2010-04-25 15:03:55 -0600
commit88524a71b8d3727b5ad4a8a60e146fd8e786b7ad (patch)
tree1ae5d143a22d8a94490e76994e9a253648a21651 /src/gui
parent33481831b44f7e6fded6b9be29f1ea56bf74bfa2 (diff)
downloadMana-88524a71b8d3727b5ad4a8a60e146fd8e786b7ad.tar.gz
Mana-88524a71b8d3727b5ad4a8a60e146fd8e786b7ad.tar.bz2
Mana-88524a71b8d3727b5ad4a8a60e146fd8e786b7ad.tar.xz
Mana-88524a71b8d3727b5ad4a8a60e146fd8e786b7ad.zip
Make ManaServ player stats softcoded
A new stats.xml file is parsed for player stats for ManaServ. The old hardcoded stats remain as backup. Reviewed-by: Bertram
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/statuswindow.cpp3
-rw-r--r--src/gui/statuswindow.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/statuswindow.cpp b/src/gui/statuswindow.cpp
index 498a4523..2439a213 100644
--- a/src/gui/statuswindow.cpp
+++ b/src/gui/statuswindow.cpp
@@ -283,7 +283,8 @@ void StatusWindow::setPointsNeeded(int id, int needed)
}
void StatusWindow::addAttribute(int id, const std::string &name,
- bool modifiable)
+ bool modifiable,
+ const std::string &description)
{
AttrDisplay *disp;
diff --git a/src/gui/statuswindow.h b/src/gui/statuswindow.h
index 13ee9a68..a1fc4b4b 100644
--- a/src/gui/statuswindow.h
+++ b/src/gui/statuswindow.h
@@ -61,7 +61,8 @@ class StatusWindow : public Window
void setPointsNeeded(int id, int needed);
- void addAttribute(int id, const std::string &name, bool modifiable);
+ void addAttribute(int id, const std::string &name, bool modifiable,
+ const std::string &description);
static void updateHPBar(ProgressBar *bar, bool showMax = false);
static void updateMPBar(ProgressBar *bar, bool showMax = false);