src/network/network_gui.cpp
changeset 9770 8c260fb382f8
parent 9690 6ce3777235e2
child 9827 338aac16d11b
equal deleted inserted replaced
9769:4735b0ade87d 9770:8c260fb382f8
  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