GUI for settings. More...
#include "stdafx.h"#include "currency.h"#include "error.h"#include "settings_gui.h"#include "textbuf_gui.h"#include "command_func.h"#include "screenshot.h"#include "network/network.h"#include "town.h"#include "settings_internal.h"#include "newgrf_townname.h"#include "strings_func.h"#include "window_func.h"#include "string_func.h"#include "widgets/dropdown_type.h"#include "widgets/dropdown_func.h"#include "highscore.h"#include "base_media_base.h"#include "company_base.h"#include "company_func.h"#include "viewport_func.h"#include "core/geometry_func.hpp"#include "ai/ai.hpp"#include "blitter/factory.hpp"#include "language.h"#include "textfile_gui.h"#include "stringfilter_type.h"#include "querystring_gui.h"Go to the source code of this file.
Data Structures | |
| struct | BaseSetTextfileWindow< TBaseSet > |
| Window for displaying the textfile of a BaseSet. More... | |
| struct | GameOptionsWindow |
| struct | SettingEntrySubtree |
| Data fields for a sub-page (SEF_SUBTREE_KIND kind). More... | |
| struct | SettingEntrySetting |
| Data fields for a single setting (SEF_SETTING_KIND kind). More... | |
| struct | SettingFilter |
| Filter for settings list. More... | |
| struct | SettingEntry |
| Data structure describing a single setting in a tab. More... | |
| struct | SettingsPage |
| Data structure describing one page of settings in the settings window. More... | |
| struct | GameSettingsWindow |
| struct | CustomCurrencyWindow |
Enumerations | |
| enum | SettingEntryFlags { SEF_LEFT_DEPRESSED = 0x01, SEF_RIGHT_DEPRESSED = 0x02, SEF_BUTTONS_MASK = (SEF_LEFT_DEPRESSED | SEF_RIGHT_DEPRESSED), SEF_LAST_FIELD = 0x04, SEF_FILTERED = 0x08, SEF_SETTING_KIND = 0x10, SEF_SUBTREE_KIND = 0x20, SEF_KIND_MASK = (SEF_SETTING_KIND | SEF_SUBTREE_KIND) } |
Flags for SettingEntry. More... | |
| enum | RestrictionMode { RM_BASIC, RM_ADVANCED, RM_ALL, RM_CHANGED_AGAINST_DEFAULT, RM_CHANGED_AGAINST_NEW, RM_END } |
How the list of advanced settings is filtered. More... | |
Functions | |
| static const void * | ResolveVariableAddress (const GameSettings *settings_ptr, const SettingDesc *sd) |
| void | InitGRFTownGeneratorNames () |
| Allocate memory for the NewGRF town names. | |
| static StringID | TownName (int town_name) |
| Get a town name. | |
| static int | GetCurRes () |
| Get index of the current screen resolution. | |
| static void | ShowCustCurrency () |
| Open custom currency window. | |
| template<class T > | |
| static DropDownList * | BuiltSetDropDownList (int *selected_index) |
| template<class TBaseSet > | |
| void | ShowBaseSetTextfileWindow (TextfileType file_type, const TBaseSet *baseset, StringID content_type) |
| Open the BaseSet version of the textfile window. | |
| void | ShowGameOptions () |
| Open the game options window. | |
| assert_compile (lengthof(_game_settings_restrict_dropdown)==RM_END) | |
| void | ShowGameSettings () |
| Open advanced settings window. | |
| void | DrawArrowButtons (int x, int y, Colours button_colour, byte state, bool clickable_left, bool clickable_right) |
| Draw [<][>] boxes. | |
| void | DrawDropDownButton (int x, int y, Colours button_colour, bool state, bool clickable) |
| Draw a dropdown button. | |
| void | DrawBoolButton (int x, int y, bool state, bool clickable) |
| Draw a toggle button. | |
Variables | |
| static const StringID | _units_dropdown [] |
| static const StringID | _driveside_dropdown [] |
| static const StringID | _autosave_dropdown [] |
| int | _nb_orig_names = SPECSTR_TOWNNAME_LAST - SPECSTR_TOWNNAME_START + 1 |
| Number of original town names. | |
| static StringID * | _grf_names = NULL |
| Pointer to town names defined by NewGRFs. | |
| static int | _nb_grf_names = 0 |
| Number of town names defined by NewGRFs. | |
| static const NWidgetPart | _nested_game_options_widgets [] |
| static const WindowDesc | _game_options_desc (WDP_CENTER, 0, 0, WC_GAME_OPTIONS, WC_NONE, 0, _nested_game_options_widgets, lengthof(_nested_game_options_widgets)) |
| static int | SETTING_HEIGHT = 11 |
| Height of a single setting in the tree view in pixels. | |
| static const int | LEVEL_WIDTH = 15 |
| Indenting width of a sub-page in pixels. | |
| static SettingEntry | _settings_ui_display [] |
| static SettingsPage | _settings_ui_display_page = {_settings_ui_display, lengthof(_settings_ui_display)} |
| Display options sub-page. | |
| static SettingEntry | _settings_ui_interaction [] |
| static SettingsPage | _settings_ui_interaction_page = {_settings_ui_interaction, lengthof(_settings_ui_interaction)} |
| Interaction sub-page. | |
| static SettingEntry | _settings_ui_sound [] |
| static SettingsPage | _settings_ui_sound_page = {_settings_ui_sound, lengthof(_settings_ui_sound)} |
| Sound effects sub-page. | |
| static SettingEntry | _settings_ui_news [] |
| static SettingsPage | _settings_ui_news_page = {_settings_ui_news, lengthof(_settings_ui_news)} |
| News sub-page. | |
| static SettingEntry | _settings_ui [] |
| static SettingsPage | _settings_ui_page = {_settings_ui, lengthof(_settings_ui)} |
| Interface subpage. | |
| static SettingEntry | _settings_construction_signals [] |
| static SettingsPage | _settings_construction_signals_page = {_settings_construction_signals, lengthof(_settings_construction_signals)} |
| Signals subpage. | |
| static SettingEntry | _settings_construction [] |
| static SettingsPage | _settings_construction_page = {_settings_construction, lengthof(_settings_construction)} |
| Construction sub-page. | |
| static SettingEntry | _settings_stations_cargo [] |
| static SettingsPage | _settings_stations_cargo_page = {_settings_stations_cargo, lengthof(_settings_stations_cargo)} |
| Cargo handling sub-page. | |
| static SettingEntry | _settings_stations [] |
| static SettingsPage | _settings_stations_page = {_settings_stations, lengthof(_settings_stations)} |
| Stations sub-page. | |
| static SettingEntry | _settings_economy_towns [] |
| static SettingsPage | _settings_economy_towns_page = {_settings_economy_towns, lengthof(_settings_economy_towns)} |
| Towns sub-page. | |
| static SettingEntry | _settings_economy_industries [] |
| static SettingsPage | _settings_economy_industries_page = {_settings_economy_industries, lengthof(_settings_economy_industries)} |
| Industries sub-page. | |
| static SettingEntry | _settings_economy [] |
| static SettingsPage | _settings_economy_page = {_settings_economy, lengthof(_settings_economy)} |
| Economy sub-page. | |
| static SettingEntry | _settings_ai_npc [] |
| static SettingsPage | _settings_ai_npc_page = {_settings_ai_npc, lengthof(_settings_ai_npc)} |
| Computer players sub-page. | |
| static SettingEntry | _settings_ai [] |
| static SettingsPage | _settings_ai_page = {_settings_ai, lengthof(_settings_ai)} |
| AI sub-page. | |
| static SettingEntry | _settings_vehicles_routing [] |
| static SettingsPage | _settings_vehicles_routing_page = {_settings_vehicles_routing, lengthof(_settings_vehicles_routing)} |
| Autorenew sub-page. | |
| static SettingEntry | _settings_vehicles_autorenew [] |
| static SettingsPage | _settings_vehicles_autorenew_page = {_settings_vehicles_autorenew, lengthof(_settings_vehicles_autorenew)} |
| Autorenew sub-page. | |
| static SettingEntry | _settings_vehicles_servicing [] |
| static SettingsPage | _settings_vehicles_servicing_page = {_settings_vehicles_servicing, lengthof(_settings_vehicles_servicing)} |
| Servicing sub-page. | |
| static SettingEntry | _settings_vehicles_trains [] |
| static SettingsPage | _settings_vehicles_trains_page = {_settings_vehicles_trains, lengthof(_settings_vehicles_trains)} |
| Trains sub-page. | |
| static SettingEntry | _settings_vehicles [] |
| static SettingsPage | _settings_vehicles_page = {_settings_vehicles, lengthof(_settings_vehicles)} |
| Vehicles sub-page. | |
| static SettingEntry | _settings_main [] |
| static SettingsPage | _settings_main_page = {_settings_main, lengthof(_settings_main)} |
| Main page, holding all advanced settings. | |
| static const StringID | _game_settings_restrict_dropdown [] |
| static const NWidgetPart | _nested_settings_selection_widgets [] |
| static const WindowDesc | _settings_selection_desc (WDP_CENTER, 510, 450, WC_GAME_OPTIONS, WC_NONE, 0, _nested_settings_selection_widgets, lengthof(_nested_settings_selection_widgets)) |
| static const NWidgetPart | _nested_cust_currency_widgets [] |
| static const WindowDesc | _cust_currency_desc (WDP_CENTER, 0, 0, WC_CUSTOM_CURRENCY, WC_NONE, 0, _nested_cust_currency_widgets, lengthof(_nested_cust_currency_widgets)) |
GUI for settings.
Definition in file settings_gui.cpp.
| enum RestrictionMode |
How the list of advanced settings is filtered.
Definition at line 722 of file settings_gui.cpp.
| enum SettingEntryFlags |
Flags for SettingEntry.
Definition at line 691 of file settings_gui.cpp.
| void DrawArrowButtons | ( | int | x, | |
| int | y, | |||
| Colours | button_colour, | |||
| byte | state, | |||
| bool | clickable_left, | |||
| bool | clickable_right | |||
| ) |
Draw [<][>] boxes.
| x | the x position to draw | |
| y | the y position to draw | |
| button_colour | the colour of the button | |
| state | 0 = none clicked, 1 = first clicked, 2 = second clicked | |
| clickable_left | is the left button clickable? | |
| clickable_right | is the right button clickable? |
Definition at line 2293 of file settings_gui.cpp.
References _colour_gradient, _current_text_dir, DrawFrameRect(), DrawSprite(), FILLRECT_CHECKER, FR_LOWERED, GfxFillRect(), SETTING_BUTTON_HEIGHT, SETTING_BUTTON_WIDTH, WD_IMGBTN_LEFT, and WD_IMGBTN_TOP.
Referenced by IndustryViewWindow::DrawInfo(), SettingEntry::DrawSetting(), NewGRFParametersWindow::DrawWidget(), CheatWindow::DrawWidget(), and AISettingsWindow::DrawWidget().
| void DrawBoolButton | ( | int | x, | |
| int | y, | |||
| bool | state, | |||
| bool | clickable | |||
| ) |
Draw a toggle button.
| x | the x position to draw | |
| y | the y position to draw | |
| state | true = lowered | |
| clickable | is the button clickable? |
Definition at line 2341 of file settings_gui.cpp.
References DrawFrameRect(), FR_LOWERED, SETTING_BUTTON_HEIGHT, and SETTING_BUTTON_WIDTH.
Referenced by SettingEntry::DrawSetting(), NewGRFParametersWindow::DrawWidget(), CheatWindow::DrawWidget(), and AISettingsWindow::DrawWidget().
| void DrawDropDownButton | ( | int | x, | |
| int | y, | |||
| Colours | button_colour, | |||
| bool | state, | |||
| bool | clickable | |||
| ) |
Draw a dropdown button.
| x | the x position to draw | |
| y | the y position to draw | |
| button_colour | the colour of the button | |
| state | true = lowered | |
| clickable | is the button clickable? |
Definition at line 2320 of file settings_gui.cpp.
References _colour_gradient, DOWNARROW, DrawFrameRect(), DrawString(), FILLRECT_CHECKER, FR_LOWERED, GfxFillRect(), SA_HOR_CENTER, SETTING_BUTTON_HEIGHT, and SETTING_BUTTON_WIDTH.
Referenced by SettingEntry::DrawSetting(), NewGRFParametersWindow::DrawWidget(), and AISettingsWindow::DrawWidget().
| static int GetCurRes | ( | ) | [static] |
Get index of the current screen resolution.
Definition at line 96 of file settings_gui.cpp.
References _num_resolutions, and _resolutions.
Referenced by GameOptionsWindow::BuildDropDownList(), and GameOptionsWindow::SetStringParameters().
| void InitGRFTownGeneratorNames | ( | ) |
Allocate memory for the NewGRF town names.
Definition at line 71 of file settings_gui.cpp.
References _grf_names, _nb_grf_names, free(), and INVALID_STRING_ID.
Referenced by AfterLoadGRFs().
| void ShowBaseSetTextfileWindow | ( | TextfileType | file_type, | |
| const TBaseSet * | baseset, | |||
| StringID | content_type | |||
| ) |
Open the BaseSet version of the textfile window.
| file_type | The type of textfile to display. | |
| baseset | The BaseSet to use. | |
| content_type | STR_CONTENT_TYPE_xxx for title. |
Definition at line 153 of file settings_gui.cpp.
References DeleteWindowByClass(), and WC_TEXTFILE.
Referenced by GameOptionsWindow::OnClick().
| static void ShowCustCurrency | ( | ) | [static] |
Open custom currency window.
Definition at line 2570 of file settings_gui.cpp.
References DeleteWindowById(), and WC_CUSTOM_CURRENCY.
Referenced by GameOptionsWindow::OnDropdownSelect().
| void ShowGameOptions | ( | ) |
Open the game options window.
Definition at line 678 of file settings_gui.cpp.
References DeleteWindowByClass(), and WC_GAME_OPTIONS.
Referenced by MenuClickSettings(), SelectGameWindow::OnClick(), ScenarioEditorToolbarWindow::OnKeyPress(), and MainToolbarWindow::OnKeyPress().
| void ShowGameSettings | ( | ) |
Open advanced settings window.
Definition at line 2277 of file settings_gui.cpp.
References DeleteWindowByClass(), and WC_GAME_OPTIONS.
Referenced by MenuClickSettings(), and SelectGameWindow::OnClick().
| static StringID TownName | ( | int | town_name | ) | [inline, static] |
Get a town name.
| town_name | Number of the wanted town name. |
Definition at line 84 of file settings_gui.cpp.
References _grf_names, _nb_grf_names, and _nb_orig_names.
Referenced by GameOptionsWindow::SetStringParameters().
const StringID _autosave_dropdown[] [static] |
{
STR_GAME_OPTIONS_AUTOSAVE_DROPDOWN_OFF,
STR_GAME_OPTIONS_AUTOSAVE_DROPDOWN_EVERY_1_MONTH,
STR_GAME_OPTIONS_AUTOSAVE_DROPDOWN_EVERY_3_MONTHS,
STR_GAME_OPTIONS_AUTOSAVE_DROPDOWN_EVERY_6_MONTHS,
STR_GAME_OPTIONS_AUTOSAVE_DROPDOWN_EVERY_12_MONTHS,
INVALID_STRING_ID,
}
Definition at line 55 of file settings_gui.cpp.
const StringID _driveside_dropdown[] [static] |
{
STR_GAME_OPTIONS_ROAD_VEHICLES_DROPDOWN_LEFT,
STR_GAME_OPTIONS_ROAD_VEHICLES_DROPDOWN_RIGHT,
INVALID_STRING_ID
}
Definition at line 49 of file settings_gui.cpp.
const StringID _game_settings_restrict_dropdown[] [static] |
{
STR_CONFIG_SETTING_RESTRICT_BASIC,
STR_CONFIG_SETTING_RESTRICT_ADVANCED,
STR_CONFIG_SETTING_RESTRICT_ALL,
STR_CONFIG_SETTING_RESTRICT_CHANGED_AGAINST_DEFAULT,
STR_CONFIG_SETTING_RESTRICT_CHANGED_AGAINST_NEW,
}
Definition at line 1712 of file settings_gui.cpp.
SettingEntry _settings_ai[] [static] |
{
SettingEntry(&_settings_ai_npc_page, STR_CONFIG_SETTING_AI_NPC),
SettingEntry("economy.give_money"),
SettingEntry("economy.allow_shares"),
}
Definition at line 1623 of file settings_gui.cpp.
SettingEntry _settings_ai_npc[] [static] |
{
SettingEntry("script.settings_profile"),
SettingEntry("script.script_max_opcode_till_suspend"),
SettingEntry("difficulty.competitor_speed"),
SettingEntry("ai.ai_in_multiplayer"),
SettingEntry("ai.ai_disable_veh_train"),
SettingEntry("ai.ai_disable_veh_roadveh"),
SettingEntry("ai.ai_disable_veh_aircraft"),
SettingEntry("ai.ai_disable_veh_ship"),
}
Definition at line 1610 of file settings_gui.cpp.
SettingEntry _settings_construction[] [static] |
{
SettingEntry(&_settings_construction_signals_page, STR_CONFIG_SETTING_CONSTRUCTION_SIGNALS),
SettingEntry("construction.build_on_slopes"),
SettingEntry("construction.autoslope"),
SettingEntry("construction.extra_dynamite"),
SettingEntry("construction.max_bridge_length"),
SettingEntry("construction.max_tunnel_length"),
SettingEntry("station.never_expire_airports"),
SettingEntry("construction.freeform_edges"),
SettingEntry("construction.extra_tree_placement"),
SettingEntry("construction.command_pause_level"),
}
Definition at line 1528 of file settings_gui.cpp.
SettingEntry _settings_construction_signals[] [static] |
{
SettingEntry("construction.train_signal_side"),
SettingEntry("gui.enable_signal_gui"),
SettingEntry("gui.drag_signals_fixed_distance"),
SettingEntry("gui.semaphore_build_before"),
SettingEntry("gui.default_signal_type"),
SettingEntry("gui.cycle_signal_types"),
}
Definition at line 1517 of file settings_gui.cpp.
SettingEntry _settings_economy[] [static] |
{
SettingEntry(&_settings_economy_towns_page, STR_CONFIG_SETTING_ECONOMY_TOWNS),
SettingEntry(&_settings_economy_industries_page, STR_CONFIG_SETTING_ECONOMY_INDUSTRIES),
SettingEntry("economy.inflation"),
SettingEntry("difficulty.initial_interest"),
SettingEntry("difficulty.max_loan"),
SettingEntry("difficulty.subsidy_multiplier"),
SettingEntry("difficulty.economy"),
SettingEntry("economy.smooth_economy"),
SettingEntry("economy.feeder_payment_share"),
SettingEntry("economy.infrastructure_maintenance"),
SettingEntry("difficulty.vehicle_costs"),
SettingEntry("difficulty.construction_cost"),
SettingEntry("difficulty.disasters"),
}
Definition at line 1592 of file settings_gui.cpp.
SettingEntry _settings_economy_industries[] [static] |
{
SettingEntry("construction.raw_industry_construction"),
SettingEntry("construction.industry_platform"),
SettingEntry("economy.multiple_industry_per_town"),
SettingEntry("game_creation.oil_refinery_limit"),
}
Definition at line 1582 of file settings_gui.cpp.
SettingEntry _settings_economy_towns[] [static] |
{
SettingEntry("difficulty.town_council_tolerance"),
SettingEntry("economy.bribe"),
SettingEntry("economy.exclusive_rights"),
SettingEntry("economy.fund_roads"),
SettingEntry("economy.fund_buildings"),
SettingEntry("economy.town_layout"),
SettingEntry("economy.allow_town_roads"),
SettingEntry("economy.allow_town_level_crossings"),
SettingEntry("economy.found_town"),
SettingEntry("economy.mod_road_rebuild"),
SettingEntry("economy.town_growth_rate"),
SettingEntry("economy.larger_towns"),
SettingEntry("economy.initial_city_size"),
}
Definition at line 1564 of file settings_gui.cpp.
SettingEntry _settings_main[] [static] |
{
SettingEntry(&_settings_ui_page, STR_CONFIG_SETTING_GUI),
SettingEntry(&_settings_construction_page, STR_CONFIG_SETTING_CONSTRUCTION),
SettingEntry(&_settings_vehicles_page, STR_CONFIG_SETTING_VEHICLES),
SettingEntry(&_settings_stations_page, STR_CONFIG_SETTING_STATIONS),
SettingEntry(&_settings_economy_page, STR_CONFIG_SETTING_ECONOMY),
SettingEntry(&_settings_ai_page, STR_CONFIG_SETTING_AI),
}
Definition at line 1700 of file settings_gui.cpp.
SettingEntry _settings_stations[] [static] |
{
SettingEntry(&_settings_stations_cargo_page, STR_CONFIG_SETTING_STATIONS_CARGOHANDLING),
SettingEntry("station.adjacent_stations"),
SettingEntry("station.distant_join_stations"),
SettingEntry("station.station_spread"),
SettingEntry("economy.station_noise_level"),
SettingEntry("station.modified_catchment"),
SettingEntry("construction.road_stop_on_town_road"),
SettingEntry("construction.road_stop_on_competitor_road"),
}
Definition at line 1551 of file settings_gui.cpp.
SettingEntry _settings_stations_cargo[] [static] |
{
SettingEntry("order.improved_load"),
SettingEntry("order.gradual_loading"),
SettingEntry("order.selectgoods"),
}
Definition at line 1543 of file settings_gui.cpp.
SettingEntry _settings_ui[] [static] |
{
SettingEntry(&_settings_ui_display_page, STR_CONFIG_SETTING_DISPLAY_OPTIONS),
SettingEntry(&_settings_ui_interaction_page, STR_CONFIG_SETTING_INTERACTION),
SettingEntry(&_settings_ui_sound_page, STR_CONFIG_SETTING_SOUND),
SettingEntry(&_settings_ui_news_page, STR_CONFIG_SETTING_NEWS),
SettingEntry("gui.show_finances"),
SettingEntry("gui.errmsg_duration"),
SettingEntry("gui.hover_delay"),
SettingEntry("gui.toolbar_pos"),
SettingEntry("gui.statusbar_pos"),
SettingEntry("gui.newgrf_default_palette"),
SettingEntry("gui.pause_on_newgame"),
SettingEntry("gui.advanced_vehicle_list"),
SettingEntry("gui.timetable_in_ticks"),
SettingEntry("gui.timetable_arrival_departure"),
SettingEntry("gui.quick_goto"),
SettingEntry("gui.default_rail_type"),
SettingEntry("gui.disable_unsuitable_building"),
SettingEntry("gui.persistent_buildingtools"),
}
Definition at line 1494 of file settings_gui.cpp.
SettingEntry _settings_ui_display[] [static] |
{
SettingEntry("gui.date_format_in_default_names"),
SettingEntry("gui.population_in_label"),
SettingEntry("gui.measure_tooltip"),
SettingEntry("gui.loading_indicators"),
SettingEntry("gui.liveries"),
SettingEntry("gui.show_track_reservation"),
SettingEntry("gui.expenses_layout"),
SettingEntry("gui.smallmap_land_colour"),
SettingEntry("gui.zoom_min"),
SettingEntry("gui.zoom_max"),
SettingEntry("gui.graph_line_thickness"),
}
Definition at line 1421 of file settings_gui.cpp.
SettingEntry _settings_ui_interaction[] [static] |
{
SettingEntry("gui.window_snap_radius"),
SettingEntry("gui.window_soft_limit"),
SettingEntry("gui.link_terraform_toolbar"),
SettingEntry("gui.prefer_teamchat"),
SettingEntry("gui.auto_scrolling"),
SettingEntry("gui.reverse_scroll"),
SettingEntry("gui.smooth_scroll"),
SettingEntry("gui.left_mouse_btn_scrolling"),
SettingEntry("gui.scrollwheel_scrolling"),
SettingEntry("gui.scrollwheel_multiplier"),
SettingEntry("gui.osk_activation"),
}
Definition at line 1437 of file settings_gui.cpp.
SettingEntry _settings_ui_news[] [static] |
{
SettingEntry("news_display.arrival_player"),
SettingEntry("news_display.arrival_other"),
SettingEntry("news_display.accident"),
SettingEntry("news_display.company_info"),
SettingEntry("news_display.open"),
SettingEntry("news_display.close"),
SettingEntry("news_display.economy"),
SettingEntry("news_display.production_player"),
SettingEntry("news_display.production_other"),
SettingEntry("news_display.production_nobody"),
SettingEntry("news_display.advice"),
SettingEntry("news_display.new_vehicles"),
SettingEntry("news_display.acceptance"),
SettingEntry("news_display.subsidies"),
SettingEntry("news_display.general"),
SettingEntry("gui.coloured_news_year"),
}
Definition at line 1473 of file settings_gui.cpp.
SettingEntry _settings_ui_sound[] [static] |
{
SettingEntry("sound.click_beep"),
SettingEntry("sound.confirm"),
SettingEntry("sound.news_ticker"),
SettingEntry("sound.news_full"),
SettingEntry("sound.new_year"),
SettingEntry("sound.disaster"),
SettingEntry("sound.vehicle"),
SettingEntry("sound.ambient"),
}
Definition at line 1460 of file settings_gui.cpp.
SettingEntry _settings_vehicles[] [static] |
{
SettingEntry(&_settings_vehicles_routing_page, STR_CONFIG_SETTING_VEHICLES_ROUTING),
SettingEntry(&_settings_vehicles_autorenew_page, STR_CONFIG_SETTING_VEHICLES_AUTORENEW),
SettingEntry(&_settings_vehicles_servicing_page, STR_CONFIG_SETTING_VEHICLES_SERVICING),
SettingEntry(&_settings_vehicles_trains_page, STR_CONFIG_SETTING_VEHICLES_TRAINS),
SettingEntry("gui.new_nonstop"),
SettingEntry("gui.order_review_system"),
SettingEntry("gui.vehicle_income_warn"),
SettingEntry("gui.lost_vehicle_warn"),
SettingEntry("vehicle.never_expire_vehicles"),
SettingEntry("vehicle.max_trains"),
SettingEntry("vehicle.max_roadveh"),
SettingEntry("vehicle.max_aircraft"),
SettingEntry("vehicle.max_ships"),
SettingEntry("vehicle.plane_speed"),
SettingEntry("vehicle.plane_crashes"),
SettingEntry("vehicle.dynamic_engines"),
SettingEntry("vehicle.roadveh_acceleration_model"),
SettingEntry("vehicle.roadveh_slope_steepness"),
SettingEntry("vehicle.smoke_amount"),
}
Definition at line 1676 of file settings_gui.cpp.
SettingEntry _settings_vehicles_autorenew[] [static] |
{
SettingEntry("company.engine_renew"),
SettingEntry("company.engine_renew_months"),
SettingEntry("company.engine_renew_money"),
}
Definition at line 1641 of file settings_gui.cpp.
SettingEntry _settings_vehicles_routing[] [static] |
{
SettingEntry("pf.pathfinder_for_trains"),
SettingEntry("pf.forbid_90_deg"),
SettingEntry("pf.pathfinder_for_roadvehs"),
SettingEntry("pf.roadveh_queue"),
SettingEntry("pf.pathfinder_for_ships"),
}
Definition at line 1631 of file settings_gui.cpp.
SettingEntry _settings_vehicles_servicing[] [static] |
{
SettingEntry("vehicle.servint_ispercent"),
SettingEntry("vehicle.servint_trains"),
SettingEntry("vehicle.servint_roadveh"),
SettingEntry("vehicle.servint_ships"),
SettingEntry("vehicle.servint_aircraft"),
SettingEntry("difficulty.vehicle_breakdowns"),
SettingEntry("order.no_servicing_if_no_breakdowns"),
SettingEntry("order.serviceathelipad"),
}
Definition at line 1649 of file settings_gui.cpp.
SettingEntry _settings_vehicles_trains[] [static] |
{
SettingEntry("difficulty.line_reverse_mode"),
SettingEntry("pf.reverse_at_signals"),
SettingEntry("vehicle.train_acceleration_model"),
SettingEntry("vehicle.train_slope_steepness"),
SettingEntry("vehicle.max_train_length"),
SettingEntry("vehicle.wagon_speed_limits"),
SettingEntry("vehicle.disable_elrails"),
SettingEntry("vehicle.freight_trains"),
SettingEntry("gui.stop_location"),
}
Definition at line 1662 of file settings_gui.cpp.
const StringID _units_dropdown[] [static] |
{
STR_GAME_OPTIONS_MEASURING_UNITS_IMPERIAL,
STR_GAME_OPTIONS_MEASURING_UNITS_METRIC,
STR_GAME_OPTIONS_MEASURING_UNITS_SI,
INVALID_STRING_ID
}
Definition at line 42 of file settings_gui.cpp.
1.7.1