diff options
author | Simon Edwardsson <simon@crossnet.se> | 2004-10-03 13:47:44 +0000 |
---|---|---|
committer | Simon Edwardsson <simon@crossnet.se> | 2004-10-03 13:47:44 +0000 |
commit | 9c4d57c8a76f8494d702f733998aaa70eaab0e5e (patch) | |
tree | a66dd5ac210317766a247d80673b32b499280ef9 /src/gui/stats.cpp | |
parent | 1c44e1f097d387fcce872f4b67c9996c050e83f9 (diff) | |
download | mana-9c4d57c8a76f8494d702f733998aaa70eaab0e5e.tar.gz mana-9c4d57c8a76f8494d702f733998aaa70eaab0e5e.tar.bz2 mana-9c4d57c8a76f8494d702f733998aaa70eaab0e5e.tar.xz mana-9c4d57c8a76f8494d702f733998aaa70eaab0e5e.zip |
tmw_bar_proc is added
Diffstat (limited to 'src/gui/stats.cpp')
-rw-r--r-- | src/gui/stats.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/stats.cpp b/src/gui/stats.cpp index d036c58b..f4d8c661 100644 --- a/src/gui/stats.cpp +++ b/src/gui/stats.cpp @@ -31,9 +31,10 @@ char stats_zeny[24]; DIALOG stats_dialog[] = { /* (dialog proc) (x) (y) (w) (h) (fg) (bg) (key) (flags) (d1) (d2) (dp) (dp2) (dp3) */ { tmw_ldialog_proc, 493, 0, 300, 55, 0, 0, 0, 0, 0, 0, stats_name, NULL, NULL }, - { tmw_text_proc, 497, 22, 296, 100, 0, 0, 0, 0, 0, 0, stats_hp, NULL, NULL }, + { tmw_text_proc, 497, 34, 296, 100, 0, 0, 0, 0, 0, 0, stats_hp, NULL, NULL }, + { tmw_bar_proc, 497, 22, 60, 18, 0, 0, '1', 0, 1, 1, NULL, NULL, NULL }, { tmw_text_proc, 607, 22, 296, 100, 0, 0, 0, 0, 0, 0, stats_zeny, NULL, NULL }, - { tmw_text_proc, 497, 34, 296, 100, 0, 0, 0, 0, 0, 0, stats_sp, NULL, NULL }, + { tmw_text_proc, 607, 34, 296, 100, 0, 0, 0, 0, 0, 0, stats_sp, NULL, NULL }, { NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL } }; @@ -45,4 +46,6 @@ void update_stats_dialog() { sprintf(stats_hp, "HP % 4d / % 4d", char_info->hp, char_info->max_hp); sprintf(stats_zeny, "Zeny % 5i", char_info->zeny); sprintf(stats_sp, "SP % 4d / % 4d", char_info->sp, char_info->max_sp); + stats_dialog[2].d1 = char_info->hp; + stats_dialog[2].d2 = char_info->max_hp; } |