diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2004-12-20 14:20:10 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2004-12-20 14:20:10 +0000 |
commit | fec8d201c51d82c370cb6052209397d88d004490 (patch) | |
tree | 57c12776fce97ee9824cd2df2d7ab475014418ef /src/gui/gui.cpp | |
parent | 41b0b5c0ed80d812d13c8c92d286a8663084ec58 (diff) | |
download | mana-client-fec8d201c51d82c370cb6052209397d88d004490.tar.gz mana-client-fec8d201c51d82c370cb6052209397d88d004490.tar.bz2 mana-client-fec8d201c51d82c370cb6052209397d88d004490.tar.xz mana-client-fec8d201c51d82c370cb6052209397d88d004490.zip |
Converted the progress bar and stats dialog to Guichan widgets.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r-- | src/gui/gui.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 2d26b3af..273aa885 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -1045,27 +1045,6 @@ if(mouse_b & 1) return D_O_K; } -int tmw_bar_proc(int msg, DIALOG *d, int c) -{ -float share2 = ((float)d->d1 / (float)d->d2); -if(share2!=0) - masked_blit(gui_skin.bar.bg.grid[3], gui_bitmap, 0, 0, d->x, d->y, gui_bitmap->w, gui_bitmap->h); -else - masked_blit(gui_skin.bar.bg.grid[0], gui_bitmap, 0, 0, d->x, d->y, gui_bitmap->w, gui_bitmap->h); - -for(int i = 3; i < (d->w-3); i++) - if(i<share2*d->w-3) - masked_blit(gui_skin.bar.bg.grid[4], gui_bitmap, 0, 0, d->x+1*i, d->y, gui_bitmap->w, gui_bitmap->h); - else - masked_blit(gui_skin.bar.bg.grid[1], gui_bitmap, 0, 0, d->x+1*i, d->y, gui_bitmap->w, gui_bitmap->h); - -if(share2==1) - masked_blit(gui_skin.bar.bg.grid[5], gui_bitmap, 0, 0, d->x+d->w-3, d->y, gui_bitmap->w, gui_bitmap->h); -else - masked_blit(gui_skin.bar.bg.grid[2], gui_bitmap, 0, 0, d->x+d->w-3, d->y, gui_bitmap->w, gui_bitmap->h); -return D_O_K; -} - /* Dialog box with left centered head */ int tmw_dialog_proc(int msg, DIALOG *d, int c) { int rtm; |