equal
deleted
inserted
replaced
702 DrawWindowWidgets(w); |
702 DrawWindowWidgets(w); |
703 |
703 |
704 x = 495; |
704 x = 495; |
705 y = 25; |
705 y = 25; |
706 |
706 |
707 for (i = 0; i != NUM_CARGO; i++) { |
|
708 GfxFillRect(x, y, x+8, y+5, 0); |
|
709 GfxFillRect(x+1, y+1, x+7, y+4, _cargo_legend_colors[i]); |
|
710 SetDParam(0, _cargoc.names_s[i]); |
|
711 DrawString(x+14, y, STR_7065, 0); |
|
712 y += 8; |
|
713 } |
|
714 |
|
715 gd.left = 2; |
707 gd.left = 2; |
716 gd.top = 24; |
708 gd.top = 24; |
717 gd.height = 104; |
709 gd.height = 104; |
718 gd.include_neg = false; |
710 gd.include_neg = false; |
719 gd.format_str_y_axis = STR_CURRCOMPACT; |
711 gd.format_str_y_axis = STR_CURRCOMPACT; |
726 gd.month = 0xFF; |
718 gd.month = 0xFF; |
727 gd.unk61A = 10; |
719 gd.unk61A = 10; |
728 gd.unk61C = 10; |
720 gd.unk61C = 10; |
729 |
721 |
730 for (i = 0; i != NUM_CARGO; i++) { |
722 for (i = 0; i != NUM_CARGO; i++) { |
|
723 GfxFillRect(x, y, x+8, y+5, 0); |
|
724 GfxFillRect(x+1, y+1, x+7, y+4, _cargo_legend_colors[i]); |
|
725 SetDParam(0, _cargoc.names_s[i]); |
|
726 DrawString(x+14, y, STR_7065, 0); |
|
727 y += 8; |
731 gd.colors[i] = _cargo_legend_colors[i]; |
728 gd.colors[i] = _cargo_legend_colors[i]; |
732 for (j = 0; j != 20; j++) { |
729 for (j = 0; j != 20; j++) { |
733 gd.cost[i][j] = (uint64)GetTransportedGoodsIncome(10, 20, j * 6 + 6, i); |
730 gd.cost[i][j] = (uint64)GetTransportedGoodsIncome(10, 20, j * 6 + 6, i); |
734 } |
731 } |
735 } |
732 } |
1116 _last_sign_idx = cmp2; |
1113 _last_sign_idx = cmp2; |
1117 ss = GetSign(cmp2); |
1114 ss = GetSign(cmp2); |
1118 GetString(_bufcache, ss->str); |
1115 GetString(_bufcache, ss->str); |
1119 } |
1116 } |
1120 |
1117 |
1121 return strcmp(buf1, _bufcache); // sort by name |
1118 return strcmp(buf1, _bufcache); // sort by name |
1122 } |
1119 } |
1123 |
1120 |
1124 static void GlobalSortSignList(void) |
1121 static void GlobalSortSignList(void) |
1125 { |
1122 { |
1126 const SignStruct *ss; |
1123 const SignStruct *ss; |