16 #if defined(ENABLE_NETWORK) && defined(WITH_FREETYPE)
30 #include "table/strings.h"
46 _background_widgets,
lengthof(_background_widgets)
79 _nested_boostrap_download_status_window_widgets,
lengthof(_nested_boostrap_download_status_window_widgets)
91 virtual void OnDownloadComplete(
ContentID cid)
124 _bootstrap_query_widgets,
lengthof(_bootstrap_query_widgets)
168 virtual void DrawWidget(
const Rect &r,
int widget)
const
170 if (widget != 0)
return;
175 virtual void OnClick(
Point pt,
int widget,
int click_count)
192 virtual void OnConnect(
bool success)
198 virtual void OnReceiveContentInfo(
const ContentInfo *ci)
223 #if defined(ENABLE_NETWORK) && defined(WITH_FREETYPE) && (defined(WITH_FONTCONFIG) || defined(WIN32) || defined(__APPLE__))
227 _game_mode = GM_BOOTSTRAP;
237 static const int offsets[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x80, 0, 0, 0, 0x04, 0x08 };
238 for (uint i = 0; i != 16; i++) {
239 for (
int j = 0; j < 8; j++) {
254 _exit_game = _game_mode == GM_BOOTSTRAP;
255 if (_exit_game)
return false;
261 _game_mode = GM_MENU;
267 usererror(
"Failed to find a graphics set. Please acquire a graphics set for OpenTTD. See section 4.1 of readme.txt.");