summaryrefslogtreecommitdiff
path: root/src/gui/skill.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-03-14 13:21:35 -0600
committerIra Rice <irarice@gmail.com>2009-03-14 13:21:35 -0600
commit3575c7a606c2d24c0d444e9999892c0390fa5ae8 (patch)
tree399bd2ce51577aa721a460884b397f52d4a4590c /src/gui/skill.cpp
parentf0c6bed3d879e1c7b9a6d5b7e676a4f1c6a29a54 (diff)
downloadmana-client-3575c7a606c2d24c0d444e9999892c0390fa5ae8.tar.gz
mana-client-3575c7a606c2d24c0d444e9999892c0390fa5ae8.tar.bz2
mana-client-3575c7a606c2d24c0d444e9999892c0390fa5ae8.tar.xz
mana-client-3575c7a606c2d24c0d444e9999892c0390fa5ae8.zip
Made a label class derived from the guichan label class which utilizes
the palette colors. While technically, this can be accomplished through other means, it's rather clumsy overall, and is prone to introducing in programmer errors. This commit finally catches every case where text is used, and applies the text color from the color dialog to each of them appropriately. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/skill.cpp')
-rw-r--r--src/gui/skill.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/gui/skill.cpp b/src/gui/skill.cpp
index a8250fce..64214ff5 100644
--- a/src/gui/skill.cpp
+++ b/src/gui/skill.cpp
@@ -20,9 +20,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include <guichan/widgets/label.hpp>
-
#include "button.h"
+#include "label.h"
#include "listbox.h"
#include "scrollarea.h"
#include "skill.h"
@@ -100,13 +99,13 @@ public:
info = &fakeSkillInfo;
sprintf(tmp, "%c%s", info->modifiable? ' ' : '*', info->name.c_str());
- gcn::Label *name_label = new gcn::Label(tmp);
+ gcn::Label *name_label = new Label(tmp);
sprintf(tmp, "Lv:%i", skill->lv);
- gcn::Label *lv_label = new gcn::Label(tmp);
+ gcn::Label *lv_label = new Label(tmp);
sprintf(tmp, "Sp:%i", skill->sp);
- gcn::Label *sp_label = new gcn::Label(tmp);
+ gcn::Label *sp_label = new Label(tmp);
set(i, 0, name_label);
set(i, 1, lv_label);
@@ -141,7 +140,7 @@ SkillDialog::SkillDialog():
setMinWidth(200);
ScrollArea *skillScrollArea = new ScrollArea(mTable);
- mPointsLabel = new gcn::Label(strprintf(_("Skill points: %d"), 0));
+ mPointsLabel = new Label(strprintf(_("Skill points: %d"), 0));
mIncButton = new Button(_("Up"), _("inc"), this);
mUseButton = new Button(_("Use"), _("use"), this);
mUseButton->setEnabled(false);