OpenTTD Source 20241224-master-gf74b0cf984
|
Barely used user interface for bootstrapping OpenTTD, i.e. More...
#include "stdafx.h"
#include "base_media_base.h"
#include "blitter/factory.hpp"
#include "error_func.h"
#include "core/geometry_func.hpp"
#include "error.h"
#include "fontcache.h"
#include "gfx_func.h"
#include "network/network.h"
#include "network/network_content_gui.h"
#include "openttd.h"
#include "strings_func.h"
#include "video/video_driver.hpp"
#include "window_func.h"
#include "widgets/bootstrap_widget.h"
#include "table/strings.h"
#include "safeguards.h"
Go to the source code of this file.
Data Structures | |
class | BootstrapBackground |
The background for the game. More... | |
class | BootstrapErrorWindow |
The window for a failed bootstrap. More... | |
struct | BootstrapContentDownloadStatusWindow |
Window for showing the download status of content. More... | |
class | BootstrapAskForDownloadWindow |
The window for the query. More... | |
Functions | |
bool | HandleBootstrap () |
Handle all procedures for bootstrapping OpenTTD without a base graphics set. | |
Variables | |
static constexpr NWidgetPart | _background_widgets [] |
Widgets for the background window to prevent smearing. | |
static WindowDesc | _background_desc (WDP_MANUAL, nullptr, 0, 0, WC_BOOTSTRAP, WC_NONE, WDF_NO_CLOSE, _background_widgets) |
Window description for the background window to prevent smearing. | |
static constexpr NWidgetPart | _nested_bootstrap_errmsg_widgets [] |
Nested widgets for the error window. | |
static WindowDesc | _bootstrap_errmsg_desc (WDP_CENTER, nullptr, 0, 0, WC_BOOTSTRAP, WC_NONE, WDF_MODAL|WDF_NO_CLOSE, _nested_bootstrap_errmsg_widgets) |
Window description for the error window. | |
static constexpr NWidgetPart | _nested_bootstrap_download_status_window_widgets [] |
Nested widgets for the download window. | |
static WindowDesc | _bootstrap_download_status_window_desc (WDP_CENTER, nullptr, 0, 0, WC_NETWORK_STATUS_WINDOW, WC_NONE, WDF_MODAL|WDF_NO_CLOSE, _nested_bootstrap_download_status_window_widgets) |
Window description for the download window. | |
static constexpr NWidgetPart | _bootstrap_query_widgets [] |
The widgets for the query. | |
static WindowDesc | _bootstrap_query_desc (WDP_CENTER, nullptr, 0, 0, WC_CONFIRM_POPUP_QUERY, WC_NONE, WDF_NO_CLOSE, _bootstrap_query_widgets) |
The window description for the query. | |
Barely used user interface for bootstrapping OpenTTD, i.e.
downloading the required content.
Definition in file bootstrap_gui.cpp.
bool HandleBootstrap | ( | ) |
Handle all procedures for bootstrapping OpenTTD without a base graphics set.
This requires all kinds of trickery that is needed to avoid the use of sprites from the base graphics set which are pretty interwoven.
Definition at line 362 of file bootstrap_gui.cpp.
References _network_available, CheckForMissingGlyphs(), BlitterFactory::GetCurrentBlitter(), VideoDriver::GetInstance(), BaseMedia< GraphicsSet >::GetUsedSet(), InitializeUnicodeGlyphMap(), VideoDriver::MainLoop(), SetColourGradient(), and BaseMedia< GraphicsSet >::SetSet().
Referenced by openttd_main().
|
staticconstexpr |
Widgets for the background window to prevent smearing.
Definition at line 35 of file bootstrap_gui.cpp.
|
staticconstexpr |
The widgets for the query.
It has no close box as that sprite does not exist yet.
Definition at line 176 of file bootstrap_gui.cpp.
|
staticconstexpr |
Nested widgets for the download window.
Definition at line 125 of file bootstrap_gui.cpp.
|
staticconstexpr |
Nested widgets for the error window.
Definition at line 68 of file bootstrap_gui.cpp.