Data Structures | Functions | Variables

network_content_gui.cpp File Reference

Implementation of the Network Content related GUIs. More...

#include "../stdafx.h"
#include "../strings_func.h"
#include "../gfx_func.h"
#include "../window_func.h"
#include "../error.h"
#include "../ai/ai.hpp"
#include "../game/game.hpp"
#include "../base_media_base.h"
#include "../sortlist_type.h"
#include "../stringfilter_type.h"
#include "../querystring_gui.h"
#include "../core/geometry_func.hpp"
#include "../textfile_gui.h"
#include "network_content_gui.h"
#include "table/strings.h"
#include "../table/sprites.h"

Go to the source code of this file.

Data Structures

struct  ContentTextfileWindow
 Window for displaying the textfile of an item in the content list. More...
struct  NetworkContentDownloadStatusWindow
 Window for showing the download status of content. More...
class  NetworkContentListWindow
 Window that lists the content that's at the content server. More...

Functions

void ShowContentTextfileWindow (TextfileType file_type, const ContentInfo *ci)
void ShowNetworkContentListWindow (ContentVector *cv, ContentType type)
 Show the content list window with a given set of content.

Variables

static const NWidgetPart _nested_network_content_download_status_window_widgets []
 Nested widgets for the download window.
static const WindowDesc _network_content_download_status_window_desc (WDP_CENTER, 0, 0, WC_NETWORK_STATUS_WINDOW, WC_NONE, WDF_MODAL, _nested_network_content_download_status_window_widgets, lengthof(_nested_network_content_download_status_window_widgets))
 Window description for the download window.
static const NWidgetPart _nested_network_content_list_widgets []
 The widgets for the content list.
static const WindowDesc _network_content_list_desc (WDP_CENTER, 630, 460, WC_NETWORK_WINDOW, WC_NONE, WDF_UNCLICK_BUTTONS, _nested_network_content_list_widgets, lengthof(_nested_network_content_list_widgets))
 Window description of the content list.

Detailed Description

Implementation of the Network Content related GUIs.

Definition in file network_content_gui.cpp.


Function Documentation

void ShowNetworkContentListWindow ( ContentVector cv,
ContentType  type 
)

Variable Documentation

Initial value:
 {
  NWidget(WWT_CAPTION, COLOUR_GREY), SetDataTip(STR_CONTENT_DOWNLOAD_TITLE, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS),
  NWidget(WWT_PANEL, COLOUR_GREY, WID_NCDS_BACKGROUND),
    NWidget(NWID_SPACER), SetMinimalSize(350, 0), SetMinimalTextLines(3, WD_FRAMERECT_TOP + WD_FRAMERECT_BOTTOM + 30),
    NWidget(NWID_HORIZONTAL),
      NWidget(NWID_SPACER), SetMinimalSize(125, 0),
      NWidget(WWT_PUSHTXTBTN, COLOUR_WHITE, WID_NCDS_CANCELOK), SetMinimalSize(101, 12), SetDataTip(STR_BUTTON_CANCEL, STR_NULL),
      NWidget(NWID_SPACER), SetFill(1, 0),
    EndContainer(),
    NWidget(NWID_SPACER), SetMinimalSize(0, 4),
  EndContainer(),
}

Nested widgets for the download window.

Definition at line 75 of file network_content_gui.cpp.

The widgets for the content list.

Definition at line 895 of file network_content_gui.cpp.