From 105438d77ce83972d70a1ce67728aaf72c9ec2b6 Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Sat, 10 Jul 2010 19:00:50 +0200 Subject: Moved parsing of specials.xml from gui/specialswindow.cpp to separate source files. Restored functional recharge bars in specials window. Individual specials are only shown after the server informed the client about their status. Made level label, use button and progress bars optional. Their use is controlled through specials.xml. The special window button is again shown even when the player has no specials. This problem needs to be solved differently now for architecture reasons. Reviewed-by: Jaxad0127 --- mana.cbp | 99 ++++++++++---------- src/client.cpp | 2 + src/gui/specialswindow.cpp | 177 +++++++++++++++++------------------- src/gui/specialswindow.h | 20 ++-- src/gui/windowmenu.cpp | 2 +- src/net/manaserv/generalhandler.cpp | 1 - src/resources/specialdb.cpp | 132 +++++++++++++++++++++++++++ src/resources/specialdb.h | 72 +++++++++++++++ src/utils/xml.cpp | 10 ++ src/utils/xml.h | 13 ++- 10 files changed, 369 insertions(+), 159 deletions(-) create mode 100644 src/resources/specialdb.cpp create mode 100644 src/resources/specialdb.h diff --git a/mana.cbp b/mana.cbp index 692e3a76..15ef4cde 100644 --- a/mana.cbp +++ b/mana.cbp @@ -11,6 +11,7 @@