summaryrefslogtreecommitdiff
path: root/src/gui/skilldialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/skilldialog.cpp')
-rw-r--r--src/gui/skilldialog.cpp19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp
index 485d5d5b..98db3cc1 100644
--- a/src/gui/skilldialog.cpp
+++ b/src/gui/skilldialog.cpp
@@ -31,7 +31,6 @@
#include "gui/widgets/button.h"
#include "gui/widgets/container.h"
#include "gui/widgets/label.h"
-#include "gui/widgets/layouthelper.h"
#include "gui/widgets/listbox.h"
#include "gui/widgets/progressbar.h"
#include "gui/widgets/scrollarea.h"
@@ -226,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();
@@ -244,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)
@@ -272,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();