diff options
author | Kiyoshi Kyokai <kiyoshi.kyokai@gmail.com> | 2005-02-23 07:18:50 +0000 |
---|---|---|
committer | Kiyoshi Kyokai <kiyoshi.kyokai@gmail.com> | 2005-02-23 07:18:50 +0000 |
commit | 1128bbe453e5a04ee98b12929537d9f5ca6c8be5 (patch) | |
tree | 31a8aaca4e9f62e702b85813dfa06d84a7905952 /src/gui/newskill.cpp | |
parent | a460cdcfe16e1fe4297b3689d4fd0af55f0f4fc9 (diff) | |
download | mana-1128bbe453e5a04ee98b12929537d9f5ca6c8be5.tar.gz mana-1128bbe453e5a04ee98b12929537d9f5ca6c8be5.tar.bz2 mana-1128bbe453e5a04ee98b12929537d9f5ca6c8be5.tar.xz mana-1128bbe453e5a04ee98b12929537d9f5ca6c8be5.zip |
Fixed problems arising from conflicts with the new Progress Bar changes.
Diffstat (limited to 'src/gui/newskill.cpp')
-rw-r--r-- | src/gui/newskill.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gui/newskill.cpp b/src/gui/newskill.cpp index 15eb1c07..478f9d57 100644 --- a/src/gui/newskill.cpp +++ b/src/gui/newskill.cpp @@ -72,9 +72,8 @@ NewSkillDialog::NewSkillDialog(): { skillLabel = new gcn::Label[N_SKILL_CAT_SIZE]("Empty "); skillLevel = new gcn::Label[N_SKILL_CAT_SIZE]("00000"); - skillbar = new ProgressBar[N_SKILL_CAT_SIZE](0.0f,0,0,270,0,0,255); + skillbar = new ProgressBar[N_SKILL_CAT_SIZE](0.0f,0,0,270,15,0,0,255); startPoint = 0; - resetNSD(); for(int a=0;a<N_SKILL_CAT_SIZE;a++) { skillLevel[a].setAlignment(Graphics::RIGHT); @@ -82,6 +81,13 @@ NewSkillDialog::NewSkillDialog(): add(&skillLevel[a],200,50+a*20); add(&skillbar[a],250,50+a*20); } + // initialize the skills + for(int i=0;i<N_SKILL;i++) + { + playerSkill[i].level = 0; + playerSkill[i].exp = 0; + } + resetNSD(); // create controls catButton[0] = new Button("Weapons"); |