(svn r11374) -Codechange: Give meaning to the magical number that specifies the color of the text in a DrawString call.
Patch heavily based on BiBB's work (FS#1383)
This commit is contained in:
@@ -39,13 +39,13 @@ void DrawAircraftDetails(const Vehicle *v, int x, int y)
|
||||
SetDParam(0, u->engine_type);
|
||||
SetDParam(1, u->build_year);
|
||||
SetDParam(2, u->value);
|
||||
DrawString(x, y, STR_A011_BUILT_VALUE, 0);
|
||||
DrawString(x, y, STR_A011_BUILT_VALUE, TC_FROMSTRING);
|
||||
|
||||
SetDParam(0, u->cargo_type);
|
||||
SetDParam(1, u->cargo_cap);
|
||||
SetDParam(2, u->Next()->cargo_type);
|
||||
SetDParam(3, u->Next()->cargo_cap);
|
||||
DrawString(x, y + 10, (u->Next()->cargo_cap != 0) ? STR_A019_CAPACITY : STR_A01A_CAPACITY, 0);
|
||||
DrawString(x, y + 10, (u->Next()->cargo_cap != 0) ? STR_A019_CAPACITY : STR_A01A_CAPACITY, TC_FROMSTRING);
|
||||
}
|
||||
|
||||
if (u->cargo_cap != 0) {
|
||||
@@ -57,13 +57,13 @@ void DrawAircraftDetails(const Vehicle *v, int x, int y)
|
||||
SetDParam(0, u->cargo_type);
|
||||
SetDParam(1, cargo_count);
|
||||
SetDParam(2, u->cargo.Source());
|
||||
DrawString(x, y + 21 + y_offset, STR_8813_FROM, 0);
|
||||
DrawString(x, y + 21 + y_offset, STR_8813_FROM, TC_FROMSTRING);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
SetDParam(0, v->cargo.FeederShare());
|
||||
DrawString(x, y + 33 + y_offset, STR_FEEDER_CARGO_VALUE, 0);
|
||||
DrawString(x, y + 33 + y_offset, STR_FEEDER_CARGO_VALUE, TC_FROMSTRING);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user