equal
deleted
inserted
replaced
1689 default: /* Waiting is 15%, so the resting receivement of map is maximum 70% */ |
1689 default: /* Waiting is 15%, so the resting receivement of map is maximum 70% */ |
1690 progress = 15 + _network_join_kbytes * (100 - 15) / _network_join_kbytes_total; |
1690 progress = 15 + _network_join_kbytes * (100 - 15) / _network_join_kbytes_total; |
1691 } |
1691 } |
1692 |
1692 |
1693 /* Draw nice progress bar :) */ |
1693 /* Draw nice progress bar :) */ |
1694 DrawFrameRect(20, 18, (int)((this->width - 20) * progress / 100), 28, 10, FR_NONE); |
1694 DrawFrameRect(20, 18, (int)((this->width - 20) * progress / 100), 28, COLOUR_MAUVE, FR_NONE); |
1695 } |
1695 } |
1696 |
1696 |
1697 virtual void OnClick(Point pt, int widget) |
1697 virtual void OnClick(Point pt, int widget) |
1698 { |
1698 { |
1699 if (widget == 2) { //Disconnect button |
1699 if (widget == 2) { //Disconnect button |