summaryrefslogtreecommitdiff
path: root/src/gui/newskill.cpp
diff options
context:
space:
mode:
authorKiyoshi Kyokai <kiyoshi.kyokai@gmail.com>2005-02-23 07:18:50 +0000
committerKiyoshi Kyokai <kiyoshi.kyokai@gmail.com>2005-02-23 07:18:50 +0000
commit1128bbe453e5a04ee98b12929537d9f5ca6c8be5 (patch)
tree31a8aaca4e9f62e702b85813dfa06d84a7905952 /src/gui/newskill.cpp
parenta460cdcfe16e1fe4297b3689d4fd0af55f0f4fc9 (diff)
downloadmana-client-1128bbe453e5a04ee98b12929537d9f5ca6c8be5.tar.gz
mana-client-1128bbe453e5a04ee98b12929537d9f5ca6c8be5.tar.bz2
mana-client-1128bbe453e5a04ee98b12929537d9f5ca6c8be5.tar.xz
mana-client-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.cpp10
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");