summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-07-26 22:46:21 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-07-26 22:46:21 +0200
commit14c7543bdfc979476c7f0664c82b790cdd12c43c (patch)
tree0240e766cc874d98fff116e54a285d4749ad46d5
parent2fc4e340c82e9e9a6a7b724e6f2411e37d7a1118 (diff)
downloadmana-client-14c7543bdfc979476c7f0664c82b790cdd12c43c.tar.gz
mana-client-14c7543bdfc979476c7f0664c82b790cdd12c43c.tar.bz2
mana-client-14c7543bdfc979476c7f0664c82b790cdd12c43c.tar.xz
mana-client-14c7543bdfc979476c7f0664c82b790cdd12c43c.zip
Removed UI to manually increase skills
-rw-r--r--src/gui/skilldialog.cpp18
-rw-r--r--src/gui/skilldialog.h2
2 files changed, 1 insertions, 19 deletions
diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp
index 8c8abd19..98db3cc1 100644
--- a/src/gui/skilldialog.cpp
+++ b/src/gui/skilldialog.cpp
@@ -225,12 +225,8 @@ SkillDialog::SkillDialog():
setupWindow->registerWindowForReset(this);
mTabs = new TabbedArea();
- mPointsLabel = new Label("0");
- mIncreaseButton = new Button(_("Up"), "inc", this);
place(0, 0, mTabs, 5, 5);
- place(0, 5, mPointsLabel, 4);
- place(4, 5, mIncreaseButton);
center();
loadWindowState();
@@ -243,16 +239,8 @@ SkillDialog::~SkillDialog()
void SkillDialog::action(const gcn::ActionEvent &event)
{
- if (event.getId() == "inc")
- {
- SkillTab *tab = static_cast<SkillTab*>(mTabs->getSelectedTab());
- if (SkillInfo *info = tab->getSelectedInfo())
- Net::getPlayerHandler()->increaseSkill(info->id);
- }
- else if (event.getId() == "close")
- {
+ if (event.getId() == "close")
setVisible(false);
- }
}
std::string SkillDialog::update(int id)
@@ -271,10 +259,6 @@ std::string SkillDialog::update(int id)
void SkillDialog::update()
{
- mPointsLabel->setCaption(strprintf(_("Skill points available: %d"),
- PlayerInfo::getAttribute(SKILL_POINTS)));
- mPointsLabel->adjustSize();
-
for (SkillMap::iterator it = mSkills.begin(); it != mSkills.end(); it++)
{
(*it).second->update();
diff --git a/src/gui/skilldialog.h b/src/gui/skilldialog.h
index 8487c1ae..3c09ec54 100644
--- a/src/gui/skilldialog.h
+++ b/src/gui/skilldialog.h
@@ -78,8 +78,6 @@ class SkillDialog : public Window, public gcn::ActionListener, public EventListe
typedef std::map<int, SkillInfo*> SkillMap;
SkillMap mSkills;
TabbedArea *mTabs;
- Label *mPointsLabel;
- Button *mIncreaseButton;
};
extern SkillDialog *skillDialog;