diff options
author | Joshua Langley <joshlangley[at]optusnet.com.au> | 2007-08-20 05:29:12 +0000 |
---|---|---|
committer | Joshua Langley <joshlangley[at]optusnet.com.au> | 2007-08-20 05:29:12 +0000 |
commit | c322e6eac2373358c04e7bd70c8e0fc1bcfb37db (patch) | |
tree | 3ad86b222fa2e2688807a47cf500ec36567f8b6b /src/gui/skill.cpp | |
parent | 1d9b37e81b1c91986644d6e9580422e6f8b47e25 (diff) | |
download | mana-c322e6eac2373358c04e7bd70c8e0fc1bcfb37db.tar.gz mana-c322e6eac2373358c04e7bd70c8e0fc1bcfb37db.tar.bz2 mana-c322e6eac2373358c04e7bd70c8e0fc1bcfb37db.tar.xz mana-c322e6eac2373358c04e7bd70c8e0fc1bcfb37db.zip |
Added close button functionality, resize cursor cues.
Diffstat (limited to 'src/gui/skill.cpp')
-rw-r--r-- | src/gui/skill.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gui/skill.cpp b/src/gui/skill.cpp index 1b00a732..6406dd2a 100644 --- a/src/gui/skill.cpp +++ b/src/gui/skill.cpp @@ -64,6 +64,7 @@ SkillDialog::SkillDialog(): Window("Skills") { setWindowName("Skills"); + setCloseButton(true); setDefaultSize(windowContainer->getWidth() - 255, 25, 240, 240); mSkillListBox = new ListBox(this); @@ -72,7 +73,6 @@ SkillDialog::SkillDialog(): mIncButton = new Button("Up", "inc", this); mUseButton = new Button("Use", "use", this); mUseButton->setEnabled(false); - mCloseButton = new Button("Close", "close", this); mSkillListBox->setActionEventId("skill"); @@ -82,15 +82,11 @@ SkillDialog::SkillDialog(): mIncButton->setPosition(skillScrollArea->getX(), 210); mUseButton->setPosition(mIncButton->getX() + mIncButton->getWidth() + 5, 210); - mCloseButton->setPosition( - skillScrollArea->getX() + skillScrollArea->getWidth() - mCloseButton->getWidth(), - 210); add(skillScrollArea); add(mPointsLabel); add(mIncButton); add(mUseButton); - add(mCloseButton); mSkillListBox->addActionListener(this); |