src/graph_gui.cpp
changeset 7058 8105bb13ce3d
parent 7002 1bf6a62b0fcb
child 7266 b16e67e992b4
equal deleted inserted replaced
7057:01a2a637716d 7058:8105bb13ce3d
   268 			FOR_ALL_PLAYERS(p) {
   268 			FOR_ALL_PLAYERS(p) {
   269 				if (!p->is_active) continue;
   269 				if (!p->is_active) continue;
   270 
   270 
   271 				DrawPlayerIcon(p->index, 4, 18 + p->index * 12);
   271 				DrawPlayerIcon(p->index, 4, 18 + p->index * 12);
   272 
   272 
   273 				SetDParam(0, p->name_1);
   273 				SetDParam(0, p->index);
   274 				SetDParam(1, p->name_2);
   274 				SetDParam(1, p->index);
   275 				SetDParam(2, GetPlayerNameString(p->index, 3));
       
   276 				DrawString(21, 17 + p->index * 12, STR_7021, HASBIT(_legend_excluded_players, p->index) ? 0x10 : 0xC);
   275 				DrawString(21, 17 + p->index * 12, STR_7021, HASBIT(_legend_excluded_players, p->index) ? 0x10 : 0xC);
   277 			}
   276 			}
   278 			break;
   277 			break;
   279 		}
   278 		}
   280 
   279 
   873 			qsort((void*)plist, pl_num, sizeof(*plist), PerfHistComp);
   872 			qsort((void*)plist, pl_num, sizeof(*plist), PerfHistComp);
   874 
   873 
   875 			for (uint i = 0; i != pl_num; i++) {
   874 			for (uint i = 0; i != pl_num; i++) {
   876 				p = plist[i];
   875 				p = plist[i];
   877 				SetDParam(0, i + STR_01AC_1ST);
   876 				SetDParam(0, i + STR_01AC_1ST);
   878 				SetDParam(1, p->name_1);
   877 				SetDParam(1, p->index);
   879 				SetDParam(2, p->name_2);
   878 				SetDParam(2, p->index);
   880 				SetDParam(3, GetPlayerNameString(p->index, 4));
   879 				SetDParam(3, GetPerformanceTitleFromValue(p->old_economy[1].performance_history));
   881 				SetDParam(5, GetPerformanceTitleFromValue(p->old_economy[1].performance_history));
       
   882 
   880 
   883 				DrawString(2, 15 + i * 10, i == 0 ? STR_7054 : STR_7055, 0);
   881 				DrawString(2, 15 + i * 10, i == 0 ? STR_7054 : STR_7055, 0);
   884 				DrawPlayerIcon(p->index, 27, 16 + i * 10);
   882 				DrawPlayerIcon(p->index, 27, 16 + i * 10);
   885 			}
   883 			}
   886 
   884