summaryrefslogtreecommitdiff
path: root/network_gui.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-01-14 21:47:35 +0000
committertruelight <truelight@openttd.org>2005-01-14 21:47:35 +0000
commite9a57c56b7f900685188d9132d02dff22f2c3d39 (patch)
treef260e8c54aa71ae764d546b59880d05829587afd /network_gui.c
parent3a838447a8b07f880567b452f274e732c0c712b4 (diff)
downloadopenttd-e9a57c56b7f900685188d9132d02dff22f2c3d39.tar.xz
(svn r1510) -Add: Improved Network Lobby GUI: (bociusz)
- Added green dot if company income is positive (else red dot) - Added lock icon if company is password protected
Diffstat (limited to 'network_gui.c')
-rw-r--r--network_gui.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/network_gui.c b/network_gui.c
index d59917f5c..774f15316 100644
--- a/network_gui.c
+++ b/network_gui.c
@@ -716,10 +716,18 @@ static void NetworkLobbyWindowWndProc(Window *w, WindowEvent *e)
pos = w->vscroll.pos;
while (pos < _network_lobby_company_count) {
byte index = NetworkLobbyFindCompanyIndex(pos);
+ bool income = false;
if (_selected_company_item == index)
GfxFillRect(11, y - 1, 139, y + 10, 155); // show highlighted item with a different colour
DoDrawString(_network_player_info[index].company_name, 13, y, 2);
+ if(_network_player_info[index].use_password != 0)
+ DrawSprite(SPR_LOCK, 120, y);
+
+ /* If the company's income was positive puts a green dot else a red dot */
+ if ((_network_player_info[index].income) > 0)
+ income = true;
+ DrawSprite(SPR_BLOT | (income?0x30d8000:0x30b8000), 130, y);
pos++;
y += NET_PRC__SIZE_OF_ROW_COMPANY;