diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-04 15:09:14 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-04 15:09:14 +0000 |
commit | ae4e9076051a736e2bbbce91e7fd58cb27448f24 (patch) | |
tree | 13dc16f764fff92b5f47fd75ce135493fa6374dd /src/gui/skill.cpp | |
parent | dd2d81690185e789d435d5b1839c04bd8e77dea4 (diff) | |
download | mana-ae4e9076051a736e2bbbce91e7fd58cb27448f24.tar.gz mana-ae4e9076051a736e2bbbce91e7fd58cb27448f24.tar.bz2 mana-ae4e9076051a736e2bbbce91e7fd58cb27448f24.tar.xz mana-ae4e9076051a736e2bbbce91e7fd58cb27448f24.zip |
Removed large parts of old GUI code and improved layout of a few dialogs.
Diffstat (limited to 'src/gui/skill.cpp')
-rw-r--r-- | src/gui/skill.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/skill.cpp b/src/gui/skill.cpp index 3abc6eb1..2139c4ff 100644 --- a/src/gui/skill.cpp +++ b/src/gui/skill.cpp @@ -73,7 +73,7 @@ int SkillListModel::getNumberOfElements() std::string SkillListModel::getElementAt(int i) { - if (i >= 0 && i < skillList.size()) + if (i >= 0 && i < (int)skillList.size()) { //return skill_db[skillList[i]->id]; char tmp[128]; @@ -125,7 +125,8 @@ SkillDialog::SkillDialog(gcn::Container *parent) incButton->setEventId("inc"); closeButton->setEventId("close"); - skillScrollArea->setDimension(gcn::Rectangle(8, 4, 200, 180)); + setSize(240, 240); + skillScrollArea->setDimension(gcn::Rectangle(5, 5, 229, 180)); pointsLabel->setDimension(gcn::Rectangle(8, 190, 200, 16)); incButton->setPosition(64, 210); closeButton->setPosition(160, 210); @@ -138,7 +139,6 @@ SkillDialog::SkillDialog(gcn::Container *parent) incButton->addActionListener(this); closeButton->addActionListener(this); - setSize(240, 240); setLocationRelativeTo(getParent()); } |