Merge branch 'master' into jgrpp
# Conflicts: # src/articulated_vehicles.cpp # src/articulated_vehicles.h # src/autoreplace_cmd.cpp # src/build_vehicle_gui.cpp # src/company_gui.cpp # src/core/format.hpp # src/genworld_gui.cpp # src/gfx.cpp # src/group_gui.cpp # src/linkgraph/linkgraph_gui.cpp # src/misc/endian_buffer.hpp # src/music/music_driver.hpp # src/newgrf_gui.cpp # src/rail_cmd.cpp # src/road_gui.cpp # src/settings_type.h # src/strgen/strgen.cpp # src/strings.cpp # src/timetable_cmd.cpp # src/town.h # src/vehicle.cpp # src/vehicle_gui.cpp # src/vehicle_gui_base.h # src/widget.cpp # src/widgets/dropdown.cpp # src/widgets/road_widget.h
This commit is contained in:
@@ -715,7 +715,8 @@ static const int LTMN_PERFORMANCE_LEAGUE = -7; ///< Show default league t
|
||||
static const int LTMN_PERFORMANCE_RATING = -8; ///< Show detailed performance rating
|
||||
static const int LTMN_HIGHSCORE = -9; ///< Show highscrore table
|
||||
|
||||
static void AddDropDownLeagueTableOptions(DropDownList &list) {
|
||||
static void AddDropDownLeagueTableOptions(DropDownList &list)
|
||||
{
|
||||
if (LeagueTable::GetNumItems() > 0) {
|
||||
for (LeagueTable *lt : LeagueTable::Iterate()) {
|
||||
list.push_back(std::make_unique<DropDownListStringItem>(lt->title, lt->index, false));
|
||||
@@ -1647,8 +1648,9 @@ public:
|
||||
void Draw(const Window *w) override
|
||||
{
|
||||
/* Draw brown-red toolbar bg. */
|
||||
GfxFillRect(this->pos_x, this->pos_y, this->pos_x + this->current_x - 1, this->pos_y + this->current_y - 1, PC_VERY_DARK_RED);
|
||||
GfxFillRect(this->pos_x, this->pos_y, this->pos_x + this->current_x - 1, this->pos_y + this->current_y - 1, PC_DARK_RED, FILLRECT_CHECKER);
|
||||
const Rect r = this->GetCurrentRect();
|
||||
GfxFillRect(r, PC_VERY_DARK_RED);
|
||||
GfxFillRect(r, PC_DARK_RED, FILLRECT_CHECKER);
|
||||
|
||||
this->NWidgetContainer::Draw(w);
|
||||
}
|
||||
|
Reference in New Issue
Block a user