|
|
/* $Id$ */
|
|
|
|
|
|
/** @file station_gui.cpp The GUI for stations. */
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
#include "openttd.h"
|
|
|
#include "debug.h"
|
|
|
#include "gui.h"
|
|
|
#include "window_gui.h"
|
|
|
#include "textbuf_gui.h"
|
|
|
#include "station_base.h"
|
|
|
#include "player_func.h"
|
|
|
#include "company_func.h"
|
|
|
#include "economy_func.h"
|
|
|
#include "town.h"
|
|
|
#include "command_func.h"
|
|
|
#include "variables.h"
|
|
|
#include "vehicle_gui.h"
|
|
|
#include "cargotype.h"
|
|
|
#include "station_gui.h"
|
|
|
#include "station_func.h"
|
|
|
#include "strings_func.h"
|
|
|
#include "core/alloc_func.hpp"
|
|
|
#include "window_func.h"
|
|
|
#include "viewport_func.h"
|
|
|
#include "gfx_func.h"
|
|
|
#include "widgets/dropdown_func.h"
|
|
|
#include "newgrf_cargo.h"
|
|
|
#include "string_func.h"
|
|
|
#include "player_base.h"
|
|
|
#include "company_base.h"
|
|
|
#include "sortlist_type.h"
|
|
|
|
|
|
#include "table/strings.h"
|
|
|
#include "table/sprites.h"
|
|
|
|
|
|
bool _station_show_coverage;
|
|
|
|
|
|
/**
|
|
|
* Draw small boxes of cargo amount and ratings data at the given
|
|
|
* coordinates. If amount exceeds 576 units, it is shown 'full', same
|
|
|
* goes for the rating: at above 90% orso (224) it is also 'full'
|
|
|
*
|