mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-13 15:54:39 +01:00
(svn r16234) -Codechange (r16231, r16233): Do not add test functions to trunk.
This commit is contained in:
parent
819588c51f
commit
6d783983e7
@ -514,22 +514,6 @@ static const NWidgetPart _nested_chat_window_widgets[] = {
|
|||||||
EndContainer(),
|
EndContainer(),
|
||||||
};
|
};
|
||||||
|
|
||||||
void test_chat()
|
|
||||||
{
|
|
||||||
const Widget *wid;
|
|
||||||
|
|
||||||
printf("_chat_window_widgets\n");
|
|
||||||
wid = InitializeWidgetArrayFromNestedWidgets(_nested_chat_window_widgets, lengthof(_nested_chat_window_widgets), _chat_window_widgets, NULL);
|
|
||||||
free((void *)wid);
|
|
||||||
}
|
|
||||||
|
|
||||||
static const WindowDesc _chat_window_desc(
|
|
||||||
WDP_CENTER, -26, 320, 14, 640, 14, // x, y, width, height
|
|
||||||
WC_SEND_NETWORK_MSG, WC_NONE,
|
|
||||||
WDF_STD_TOOLTIPS | WDF_DEF_WIDGET,
|
|
||||||
_chat_window_widgets, _nested_chat_window_widgets, lengthof(_nested_chat_window_widgets)
|
|
||||||
);
|
|
||||||
|
|
||||||
void ShowNetworkChatQueryWindow(DestType type, int dest)
|
void ShowNetworkChatQueryWindow(DestType type, int dest)
|
||||||
{
|
{
|
||||||
DeleteWindowById(WC_SEND_NETWORK_MSG, 0);
|
DeleteWindowById(WC_SEND_NETWORK_MSG, 0);
|
||||||
|
@ -834,22 +834,6 @@ static const NWidgetPart _nested_network_content_list_widgets[] = {
|
|||||||
EndContainer(),
|
EndContainer(),
|
||||||
};
|
};
|
||||||
|
|
||||||
void test_nested_content()
|
|
||||||
{
|
|
||||||
const Widget *wid;
|
|
||||||
|
|
||||||
printf("_network_content_download_status_window_widget\n");
|
|
||||||
wid = InitializeWidgetArrayFromNestedWidgets(_nested_network_content_download_status_window_widgets, lengthof(_nested_network_content_download_status_window_widgets),
|
|
||||||
_network_content_download_status_window_widget, NULL);
|
|
||||||
free((void *)wid);
|
|
||||||
|
|
||||||
printf("_network_content_list_widgets\n");
|
|
||||||
wid = InitializeWidgetArrayFromNestedWidgets(_nested_network_content_list_widgets, lengthof(_nested_network_content_list_widgets),
|
|
||||||
_network_content_list_widgets, NULL);
|
|
||||||
free((void *)wid);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/** Window description of the content list */
|
/** Window description of the content list */
|
||||||
static const WindowDesc _network_content_list_desc(
|
static const WindowDesc _network_content_list_desc(
|
||||||
WDP_CENTER, WDP_CENTER, 450, 278, 630, 460,
|
WDP_CENTER, WDP_CENTER, 450, 278, 630, 460,
|
||||||
|
Loading…
Reference in New Issue
Block a user