summaryrefslogtreecommitdiff
path: root/src/misc_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-08 14:14:16 +0000
committerrubidium <rubidium@openttd.org>2008-05-08 14:14:16 +0000
commit4a11ebe76fcaba45954aa2b6f29e6e75a8c30942 (patch)
tree28391b72686974ad52519cf61e4cf0cae4a0ad7e /src/misc_gui.cpp
parent5fda77239e01c429b2d3a389bfc6a77148fc390a (diff)
downloadopenttd-4a11ebe76fcaba45954aa2b6f29e6e75a8c30942.tar.xz
(svn r13015) -Codechange: move some 'WP' structs out of window_gui.h to the .cpp files where they are actually used.
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r--src/misc_gui.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index cdb6e30bb..aaa75d7a2 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -97,8 +97,7 @@ static void Place_LandInfo(TileIndex tile)
{
DeleteWindowById(WC_LAND_INFO, 0);
- Window *w = new Window(&_land_info_desc);
- WP(w, void_d).data = &_landinfo_data;
+ new Window(&_land_info_desc);
Player *p = GetPlayer(IsValidPlayer(_local_player) ? _local_player : PLAYER_FIRST);
Town *t = ClosestTownFromTile(tile, _patches.dist_local_authority);
@@ -202,6 +201,12 @@ void PlaceLandBlockInfo()
}
}
+struct scroller_d {
+ int height;
+ uint16 counter;
+};
+assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(scroller_d));
+
static const char *credits[] = {
/*************************************************************************
* maximum length of string which fits in window -^*/
@@ -519,6 +524,13 @@ void HideFillingPercent(TextEffectID te_id)
if (te_id != INVALID_TE_ID) RemoveTextEffect(te_id);
}
+struct tooltips_d {
+ StringID string_id;
+ byte paramcount;
+ uint64 params[5];
+};
+assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(tooltips_d));
+
static const Widget _tooltips_widgets[] = {
{ WWT_PANEL, RESIZE_NONE, 14, 0, 199, 0, 31, 0x0, STR_NULL},
{ WIDGETS_END},