diff options
author | Darkvater <darkvater@openttd.org> | 2006-12-30 01:17:53 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-12-30 01:17:53 +0000 |
commit | c87fcab77216fa2a3c8a5a334c32099665b1241d (patch) | |
tree | 4ef6719359384448b5674c8f954ba1a88987d16d /gui.h | |
parent | ed2c8ecef5f2a6d62273ebccf0f82bad1f73ea4a (diff) | |
download | openttd-c87fcab77216fa2a3c8a5a334c32099665b1241d.tar.xz |
(svn r7637) -Codechange: Change ShowQueryString to use a window pointer as a parent. If the
query has no parent (eg give money, rename waypoint), the global function
HandleOnEditText is used.
Diffstat (limited to 'gui.h')
-rw-r--r-- | gui.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -126,11 +126,12 @@ extern const byte _fios_colors[]; void ShowBuildBridgeWindow(uint start, uint end, byte type); void ShowBuildIndustryWindow(void); -void ShowQueryString(StringID str, StringID caption, uint maxlen, uint maxwidth, WindowClass window_class, WindowNumber window_number, CharSetFilter afilter); +void ShowQueryString(StringID str, StringID caption, uint maxlen, uint maxwidth, Window *parent, CharSetFilter afilter); void ShowQuery(StringID caption, StringID message, Window *w, void (*callback)(Window*, bool)); void ShowMusicWindow(void); /* main_gui.c */ +void HandleOnEditText(const char *str); VARDEF byte _station_show_coverage; VARDEF PlaceProc *_place_proc; |