mirror of https://github.com/OpenTTD/OpenTTD
Compare commits
3 Commits
b9ed4099ed
...
ab092d02a9
Author | SHA1 | Date |
---|---|---|
|
ab092d02a9 | |
|
8675d7b498 | |
|
7eff1f7e59 |
|
@ -52,7 +52,12 @@ struct EndGameHighScoreBaseWindow : Window {
|
|||
/* Standard background slices are 50 pixels high, but it's designed
|
||||
* for 480 pixels total. 96% of 500 is 480. */
|
||||
Dimension dim = GetSpriteSize(this->background_img);
|
||||
Point pt = this->GetTopLeft(dim.width, dim.height * 96 / 10);
|
||||
auto total_height = dim.height * 96 / 10;
|
||||
Point pt = this->GetTopLeft(dim.width, total_height);
|
||||
|
||||
/* Original graphics contain some transparency, which assumes a black background. */
|
||||
GfxFillRect(pt.x, pt.y, pt.x + dim.width - 1, pt.y + total_height - 1, PC_BLACK);
|
||||
|
||||
/* Center Highscore/Endscreen background */
|
||||
for (uint i = 0; i < 10; i++) { // the image is split into 10 50px high parts
|
||||
DrawSprite(this->background_img + i, PAL_NONE, pt.x, pt.y + (i * dim.height));
|
||||
|
|
|
@ -634,8 +634,11 @@ STR_GRAPH_CARGO_TOOLTIP_DISABLE_ALL :{BLACK}在货
|
|||
STR_GRAPH_CARGO_PAYMENT_TOGGLE_CARGO :{BLACK}切换显示货物
|
||||
STR_GRAPH_CARGO_PAYMENT_CARGO :{TINY_FONT}{BLACK}{STRING}
|
||||
|
||||
STR_GRAPH_INDUSTRY_CAPTION :{WHITE}{INDUSTRY} - 货物历史
|
||||
STR_GRAPH_INDUSTRY_RANGE_PRODUCED :已生产
|
||||
STR_GRAPH_INDUSTRY_RANGE_TRANSPORTED :已运输
|
||||
STR_GRAPH_INDUSTRY_RANGE_DELIVERED :已送抵
|
||||
STR_GRAPH_INDUSTRY_RANGE_WAITING :库存
|
||||
|
||||
STR_GRAPH_PERFORMANCE_DETAIL_TOOLTIP :{BLACK}查看详细数据
|
||||
|
||||
|
@ -4023,6 +4026,8 @@ STR_INDUSTRY_VIEW_PRODUCTION_LAST_MONTH_TITLE :{BLACK}上月
|
|||
STR_INDUSTRY_VIEW_PRODUCTION_LAST_MINUTE_TITLE :{BLACK}上分钟产量:
|
||||
STR_INDUSTRY_VIEW_TRANSPORTED :{YELLOW}{CARGO_LONG}{STRING}{BLACK}(已运输 {COMMA}%)
|
||||
STR_INDUSTRY_VIEW_LOCATION_TOOLTIP :{BLACK}将屏幕中心移动到当前工业的位置。按住 <Ctrl> 键点选会在新视点中显示工业位置
|
||||
STR_INDUSTRY_VIEW_CARGO_GRAPH :{BLACK}货物图表
|
||||
STR_INDUSTRY_VIEW_CARGO_GRAPH_TOOLTIP :{BLACK}显示工业货物历史图表
|
||||
STR_INDUSTRY_VIEW_PRODUCTION_LEVEL :{BLACK}生产等级:{YELLOW}{COMMA}%
|
||||
STR_INDUSTRY_VIEW_INDUSTRY_ANNOUNCED_CLOSURE :{YELLOW}此工业已经宣布即刻停业倒闭!
|
||||
|
||||
|
|
Loading…
Reference in New Issue