Commit Graph

573 Commits

Author SHA1 Message Date
planetmaker 914f8e9f1d (svn r22080) -Doc: Add doxygen comments to a few functions and improve a few existing comments 2011-02-14 19:52:26 +00:00
terkhen 24983ec629 (svn r22053) -Fix: The land area information window was not updated after a language change. 2011-02-10 20:49:36 +00:00
rubidium 7eba2bf4d3 (svn r21890) -Cleanup: remove some unneeded includes 2011-01-22 14:52:20 +00:00
terkhen 679cd3c21b (svn r21803) -Cleanup: Remove unnecessary semicolons. 2011-01-15 15:36:58 +00:00
frosch 6a38f88bd1 (svn r21711) -Change: Display the minimal height of the tile in the LandInfo window instead of the height of the northern corner. So it is more useful for NewGRF and AI developers, and maybe more transparent for players. 2011-01-04 13:58:14 +00:00
alberth 35a8e91d01 (svn r21589) -Codechange: Move PlaceLandBlockInfo() to the right file, introduce a ShowLandInfo() function. 2010-12-21 21:46:19 +00:00
rubidium e1d62dc81b (svn r21555) -Fix [FS#4321]: strings for the query window weren't properly terminated to N characters anymore 2010-12-21 09:29:01 +00:00
rubidium a029b2b83a (svn r21477) -Fix [FS#4300]: tooltips were removed when their related window got closed 2010-12-12 14:14:26 +00:00
rubidium 9bc1e35625 (svn r21472) -Fix [FS#4298] (r21459-ish): make sure the query window is only opened once per parent window / callback. 2010-12-11 20:38:37 +00:00
rubidium 66c7f00b60 (svn r21407) -Codechange: prepare the text buffer code for limiting on number of characters besides the number of bytes 2010-12-05 22:22:54 +00:00
rubidium bbaa262b0d (svn r21406) -Codechange: rename some textbuf related names to make them a bit more descriptive 2010-12-05 22:21:37 +00:00
alberth f5c6fd1a25 (svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint(). 2010-11-26 15:22:18 +00:00
rubidium 999246f63e (svn r21255) -Fix (r179): main menu error messages wouldn't show when you had an error message open in the game while whatever triggered you to go back to the main menu 2010-11-19 13:24:32 +00:00
yexo 178b35d555 (svn r20940) -Fix (r20928): switch to the normal alphabet where 'b' comes before 'p' 2010-10-16 06:14:24 +00:00
yexo 8f9ae44a67 (svn r20928) -Update: we have a new developer 2010-10-15 18:32:25 +00:00
yexo c07fdab16c (svn r20716) -Feature: add airport class and airport name to the land info tool 2010-09-01 23:14:15 +00:00
rubidium 30f2afac9b (svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers 2010-08-26 22:01:16 +00:00
rubidium 95d37c8615 (svn r20596) -Fix [FS#4066]: crash when the tooltip is wider than the window is 2010-08-22 20:25:45 +00:00
terkhen cfc0df152b (svn r20552) -Fix: Never show tooltips when the mouse cursor is outside the window. 2010-08-19 08:22:08 +00:00
frosch ca6aac6a5a (svn r20514) -Fix: Draw error messages in white by default, they may not have a colour code. 2010-08-16 12:32:49 +00:00
terkhen 80c43f52e8 (svn r20289) -Codechange: Unify fall through coding style. 2010-08-01 20:52:11 +00:00
frosch 4bd32799f1 (svn r20286) -Codechange: Unify end of doxygen comments. 2010-08-01 19:44:49 +00:00
frosch ed4f806f1d (svn r20283) -Codechange: Unify start of doygen comments. 2010-08-01 19:22:34 +00:00
rubidium e356cb9405 (svn r20281) -Codechange: unify case scope closure + break coding style 2010-08-01 18:53:30 +00:00
terkhen 88ca183191 (svn r20239) -Doc: Give a common name to all fall throughs (FALL THROUGH). 2010-07-29 14:26:28 +00:00
rubidium 80cc566553 (svn r20220) -Fix [FS#3974]: strip non-printable characters before showing it in an edit box, so when renaming a vehicle type you won't get the "SETX stuff" that some NewGRFs use 2010-07-25 23:14:59 +00:00
rubidium 816222cd48 (svn r20159) -Change: clarify use of OpenTTD directories and don't use the "TTD" abbreviation for Transport Tycoon Deluxe (parts by planetmaker) 2010-07-15 22:30:38 +00:00
terkhen 51e6cb0a70 (svn r20119) -Add: Tooltips can be removed if the user stops hovering the mouse. 2010-07-11 10:55:57 +00:00
alberth 22b9bc5157 (svn r20043) -Codechange: Introduce vertical alignment for DrawStringMultiLine(). 2010-07-02 13:53:05 +00:00
frosch c1cd1c039f (svn r19917) -Codechange: Split save/load GUI to separate file. 2010-06-03 11:05:20 +00:00
alberth 113f3ef0eb (svn r19904) -Codechange: Make EventState usable outside Window context. 2010-05-30 12:06:18 +00:00
rubidium 062dd0e24c (svn r19814) -Codechange: give some more unnamed enums a name, in case they consisted of unrelated values use static const (u)int 2010-05-13 10:14:29 +00:00
rubidium f56ebd81c3 (svn r19709) -Feature: NewGRF debugging/inspecting of (primarily) enabled callbacks and values of variables 2010-04-24 13:39:11 +00:00
peter1138 604da97364 (svn r19434) -Add: Add rail speed limit to land area information window. 2010-03-16 06:43:41 +00:00
yexo 43be04eb27 (svn r19432) -Fix [FS#3696] (r19357): crash when the error message 'owned by <town>' was shown 2010-03-16 06:25:35 +00:00
frosch ef477b7dd7 (svn r19358) -Fix [FS#3663]: Close error messages about missing ownership when the company closes or is taken over. (parts by Alberth). 2010-03-06 16:26:09 +00:00
frosch bcb01903cd (svn r19357) -Codechange: Add 'face' member to ErrmsgWindow to simplify stuff. 2010-03-06 16:23:32 +00:00
smatz e26f96fee6 (svn r19225) -Feature: show warnings and errors in console as well, not only in a message box 2010-02-24 14:50:04 +00:00
smatz f051066bc4 (svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit 2010-02-24 14:46:15 +00:00
yexo 06dc421f2a (svn r19199) -Codechange: add a 'name'-property to airport tiles 2010-02-22 14:17:17 +00:00
rubidium d11bb39f43 (svn r19007) -Prepare: 1.0.0-beta4 2010-02-04 17:11:46 +00:00
rubidium 9f49882de7 (svn r18998) -Update: the credits 2010-02-03 23:08:46 +00:00
frosch 88019e64e1 (svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick(). 2010-01-30 18:34:48 +00:00
rubidium 2b82db72ef (svn r18899) -Fix: the default button was enabled even when the ENABLE_DEFAULT flag wasn't set 2010-01-23 19:30:03 +00:00
rubidium 4d93b704d9 (svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) wrapper functions 2010-01-18 22:57:21 +00:00
rubidium 82fc28f77f (svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header 2010-01-15 16:41:15 +00:00
rubidium 3ca0937c1c (svn r18769) -Codechange: replace MiniLZO with the real library. If you're using MSVC update openttd-useful, otherwise make sure you've got liblzo2 and it's development files installed. 2010-01-10 13:12:34 +00:00
rubidium f348afb5aa (svn r18731) -Codechange: move the DrawStationCoverage stuff from misc_gui.cpp to station_gui.cpp 2010-01-05 16:59:57 +00:00
rubidium 454e124912 (svn r18652) -Fix: glitches due to having the wrong bounding boxes for the face widgets 2009-12-28 13:04:18 +00:00
smatz 9cefcdab82 (svn r18636) -Codechange: make TextEffect::duration a value in ticks instead of ticks * 8 2009-12-25 23:22:41 +00:00
alberth 3323d64f28 (svn r18606) -Codechange: Introduce several forms of zero-size stacked display planes. 2009-12-22 20:43:25 +00:00
alberth 5a083f183e (svn r18580) -Codechange: Use widget information only for setting scrollbar capacity. 2009-12-20 20:08:39 +00:00
alberth 7fc7324ef8 (svn r18538) -Codechange: Split DrawStationCoverageText into a calculation part and a drawing part. 2009-12-19 15:52:50 +00:00
rubidium 1f0da3710f (svn r18324) -Codechange: there's no need for a default size when the window isn't resizable 2009-11-28 15:01:49 +00:00
rubidium 9bb4ad4ba8 (svn r18323) -Fix [FS#3330]: credits were drawn on the border of the window 2009-11-28 15:00:45 +00:00
rubidium 293dfd7c3e (svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice. 2009-11-28 14:42:35 +00:00
rubidium 458c73aecb (svn r18318) -Codechange: add an enum value for manual window placement 2009-11-28 13:54:28 +00:00
rubidium ff32ea24fc (svn r18311) -Codechange: no need to hardcode locations of some 'random' windows 2009-11-28 13:38:34 +00:00
rubidium 8d6e323ef8 (svn r18280) -Codechange: remove widget indices that are not needed for custom drawing/handling input 2009-11-24 21:13:36 +00:00
rubidium 14300d309c (svn r18277) -Codechange: remove unneeded widget indices for close, resize and sticky boxes and for window captions 2009-11-24 18:05:55 +00:00
rubidium 69b6d9309a (svn r18274) -Codechange: remove the unused WDF flags 2009-11-24 17:28:29 +00:00
alberth 450e40b997 (svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize(). 2009-11-22 18:28:14 +00:00
alberth 2b6f792513 (svn r18229) -Codechange: Make fill_x, fill_y a number instead of a bool. 2009-11-22 18:26:01 +00:00
rubidium e8141ba9d5 (svn r18208) -Fix [FS#3321]: in some cases the size of the land information window wasn't properly calculated 2009-11-21 17:22:37 +00:00
rubidium da25f121ac (svn r18195) -Codechange: move the child padding calculation/handling to WWT_FRAME
-Fix (r18168): crash when switching languages when a non-standard font height is used
2009-11-19 22:49:04 +00:00
rubidium b6f627a968 (svn r18171) -Change: always align the about to the left; it is not translated and as such it's never a RTL text. 2009-11-18 20:27:18 +00:00
rubidium 5f2ddfbc5a (svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets 2009-11-17 19:16:48 +00:00
peter1138 5fdff78c42 (svn r18135) -Codechange: File list text overflowed its container. 2009-11-17 10:04:21 +00:00
rubidium 626de6b128 (svn r18126) -Codechange: remove duplicate (since r18119) scrollbar capacity/matrix initialisation 2009-11-16 20:34:57 +00:00
alberth 0666a70583 (svn r18111) -Change: One more developer added to the history of OpenTTD. 2009-11-15 21:07:39 +00:00
peter1138 4c6f55fc71 (svn r18104) -Codechange: Let the query popup window's text entry field expand if necessary (e.g. with long window title). 2009-11-15 18:44:33 +00:00
rubidium cddc057a60 (svn r18099) -Codechange: scale the edit boxes to the fontsize 2009-11-15 15:37:37 +00:00
rubidium aeb9f8e715 (svn r18092) -Codechange: remove support for the unnested widgets 2009-11-15 13:36:30 +00:00
rubidium 3d2d7af88f (svn r18086) -Codechange: remove 'widget' from WindowDesc 2009-11-15 10:26:01 +00:00
alberth 0bc03c25f4 (svn r17997) -Codechange: Introduce functions for querying top and bottom of the main view. 2009-11-07 17:24:04 +00:00
frosch 79627b4f89 (svn r17976) -Codechange: Move CargoClass to cargotype.h and clean up including of newgrf_cargo.h 2009-11-05 19:46:17 +00:00
alberth e6a164de09 (svn r17967) -Codechange: Specify that the buttons of the query string window should be equal in size. 2009-11-03 20:25:19 +00:00
alberth 076d6e696b (svn r17966) -Fix (r17965): The Default button should be disabled in some cases rather than the Ok button. 2009-11-03 20:21:49 +00:00
alberth 7a0814c6cc (svn r17965) -Codechange: query string window uses pure nested widgets. 2009-11-03 20:04:05 +00:00
alberth cb7c9b09ff (svn r17945) -Fix (r17940): Absence of main toolbar and/or status bar should not be fatal. 2009-11-02 05:12:58 +00:00
alberth df8c655ee6 (svn r17940) -Codechange: Use real y position of the main toolbar and status bar instead of hardcoded sizes for tooltip and for error message windows. 2009-11-01 19:19:14 +00:00
alberth 2211e3faad (svn r17935) -Fix (r17933): Compensate for being inside a class. 2009-11-01 17:45:24 +00:00
alberth f3d53d3c28 (svn r17933) -Codechange: Move position calculation of error message window into the class. 2009-11-01 17:38:14 +00:00
alberth d213ffe3ca (svn r17932) -Fix: Don't let the tooltip go under the status bar. 2009-11-01 17:20:28 +00:00
alberth 898f20ce56 (svn r17931) -Codechange: Error message window uses pure nested widgets. 2009-11-01 14:28:53 +00:00
alberth 44aacfc59f (svn r17928) -Codechange: ShowErrorMessage() now takes the summary string before the details string.
Gentlemen, swap your string parameters.
2009-10-31 19:46:51 +00:00
alberth 4ce1f5f0a0 (svn r17927) -Codechange: Rename error message string variables. 2009-10-31 18:22:39 +00:00
alberth bd8d70e012 (svn r17924) -Codechange: Replace y array with two area rectangles in the error message window. 2009-10-31 15:47:22 +00:00
alberth 617e7966f9 (svn r17921) -Documentation: Add doxygen comments in the ErrmsgWindow struct. 2009-10-31 14:33:07 +00:00
alberth 70ebe13ee8 (svn r17919) -Codechange (r17849): Remove the outermost NWID_LAYERED and NWID_VERTICAL containers from the load and save nested widget parts, since they do nothing. 2009-10-31 13:43:34 +00:00
alberth 43abc7b51d (svn r17918) -Codechange: Move tooltip size calculation into the tooltip window class. 2009-10-31 13:29:53 +00:00
alberth 4374647cbe (svn r17917) -Codechange: Move tooltip initial position calculation into the tooltip window class. 2009-10-31 13:14:51 +00:00
alberth ceb57c8314 (svn r17916) -Codechange: Make tooltips window use pure nested widgets. 2009-10-31 13:01:52 +00:00
alberth 52b2d67200 (svn r17914) -Codechange: Use some constants in the size calculation, and pass the size as a combined value to the tooltip window. 2009-10-31 11:29:53 +00:00
alberth 8e7af56d53 (svn r17913) -Documentation: Add doxygen comments to the tooltip window class. 2009-10-31 11:13:31 +00:00
rubidium ca0521f89f (svn r17853) -Codechange: remove the 'delta' parameter from OnResize; it was used in ways that aren't always wanted, causing bugs and the like. Also with nested widgets most reasons for handling OnResize have gone. 2009-10-24 14:53:55 +00:00
rubidium d5a3ec1996 (svn r17849) -Codechange: make the saveload windows nested 2009-10-23 21:10:36 +00:00
rubidium d1d35b95b6 (svn r17786) -Fix [FS#3265]: graphical glitches (matrices/scrollbars with wrong 'size') upon reiniting windows 2009-10-17 14:29:10 +00:00
rubidium 313fb65943 (svn r17771) -Codechange: use the 'StringID' function instead of the 'const char *' function + custom code to resolve the 'const char *' from the 'StringID' 2009-10-13 19:24:58 +00:00
michi_cc 049d62b35c (svn r17708) -Feature [FS#2053]: [OSX] Implement clipboard support for OS X. 2009-10-04 21:08:38 +00:00
rubidium d6cded5380 (svn r17693) -Cleanup: remove some unneeded includes 2009-10-04 17:16:41 +00:00
rubidium 9c6157c578 (svn r17681) -Fix [FS#3248] (r17668): crash when the caption of the query window used parameters 2009-10-02 15:06:14 +00:00
rubidium c847f5c04e (svn r17674) -Codechange: replace SetDirty + OnInvalidateData with InvalidateData (which does the same). Also call InvalidateData in a few cases where that was actually meant. 2009-09-30 21:07:54 +00:00
yexo 5fbb263bd2 (svn r17668) -Codechange: Query window uses nested widgets 2009-09-30 15:14:34 +00:00
rubidium a848fda880 (svn r17620) -Fix (r17502): edit box offsets were off. Now they're still off, but look (in my opinion) even better than before 2009-09-23 15:42:29 +00:00
smatz 114d48e492 (svn r17596) -Codechange: constify some tables 2009-09-20 23:11:01 +00:00
alberth 116c77c342 (svn r17572) -Codechange: Use the Window::GetWidget() function to access nested widgets through the nested_array. 2009-09-19 11:31:12 +00:00
smatz 1858fef92f (svn r17561) -Fix: diacritics was missing at few places 2009-09-17 18:56:31 +00:00
frosch ebd916be3d (svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability. 2009-09-13 19:15:59 +00:00
rubidium ca7f6f5d7a (svn r17528) -Codechange: use QSortT instead of qsort for sorting FiosItems 2009-09-13 17:39:33 +00:00
frosch 734edc178d (svn r17525) -Cleanup: Remove SetWindowDirty(), it is completely covered by other functions already. 2009-09-13 17:37:47 +00:00
alberth 669b7d01ac (svn r17502) -Codechange [FS#3184]: Extend QueryStringBaseWindow to support windows with nested widgets (by Terkhen with a few tweaks). 2009-09-11 18:52:56 +00:00
smatz 22e9d59559 (svn r17439) -Fix (r17436): you weren't paid for cargo delivered to houses and headquarters anymore 2009-09-07 07:39:08 +00:00
smatz 0bfea0646c (svn r17420) -Codechange: replace assert() by assert_compile() where possible 2009-09-04 23:02:52 +00:00
rubidium 59ac4f6b21 (svn r17370) -Codechange: make the saveload and network GUIs use the scrollbar wrappers 2009-09-02 08:08:30 +00:00
smatz 2db855e00c (svn r17359) -Fix: put static before cv qualifier, some compilers complain about that 2009-09-01 21:27:33 +00:00
smatz 352d07b1b5 (svn r17348) -Fix: don't mix 'sort by' strings used for buttons and dropdowns 2009-09-01 14:05:27 +00:00
Yexo fe7ca1b3e3 (svn r17324) -Codechange: Land info window uses nested widget tree 2009-08-30 17:07:53 +00:00
yexo dc24601b6d (svn r17311) -Change: rename STR_WHITE_STRINGN to STR_WHITE_STRING 2009-08-29 21:28:36 +00:00
yexo 350a773925 (svn r17310) -Codechange: about window uses nested widget tree 2009-08-29 20:54:32 +00:00
smatz f1e6772381 (svn r17309) -Fix: not all non-ASCII characters were entered with escapes in the About window 2009-08-29 20:01:16 +00:00
rubidium 10b3bcb90c (svn r17299) -Fix: the tooltip could get truncated under some circumstances due to its custom string height determination 2009-08-28 15:23:51 +00:00
rubidium aca7ba714a (svn r17271) -Fix: SetFill sometimes used 1/0 when it should be using true/false 2009-08-23 19:03:09 +00:00
rubidium 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 2009-08-21 20:21:05 +00:00
rubidium 60a3bc9034 (svn r17247) -Change: move '3rd party' MD5 implementation also to the 3rdparty directory. 2009-08-21 20:15:17 +00:00
rubidium d4adee0b1d (svn r17216) -Update: MiniLZO from 1.08 to 2.03. 2009-08-18 22:26:38 +00:00
rubidium 2ae150af8e (svn r17210) -Update: credits to reflect the (current) truth a bit better 2009-08-18 15:19:43 +00:00
rubidium 1fe3ad3288 (svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives 2009-08-05 17:59:21 +00:00
rubidium 4b2592dbc0 (svn r17062) -Change: unify the naming of some 125 strings 2009-08-04 18:04:33 +00:00
rubidium e3053660c6 (svn r16886) -Codechange: unify naming of some string IDs related to string codes and group them logically 2009-07-20 11:21:57 +00:00
smatz 1f29e38b83 (svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get() 2009-07-16 19:00:13 +00:00
yexo 4843b3c45d (svn r16789) -Codechange: unify the drawing of the Accepts/Supplies cargo lists in the station build windows. 2009-07-10 22:03:09 +00:00
frosch a288e4d82f (svn r16678) -Codechange: Turn CargoArray into a class, so one does not have to deal with sizeof() wrt. typedef-ed arrays. 2009-06-27 21:06:58 +00:00
alberth 9b070b5405 (svn r16677) -Codechange: Dimension width and height are unsigned. 2009-06-27 20:53:45 +00:00
frosch 812ad41f23 (svn r16676) -Codechange: Rename AcceptedCargo to CargoArray and its instances to more meaningful names. 2009-06-27 18:26:50 +00:00
smatz c30a87758f (svn r16659) -Codechange: rename GetAcceptedCargo() to AddAcceptedCargo() and change its behaviour accordingly
-Codechange: remove dummy GetAcceptedCargo_*() handlers
2009-06-25 19:23:09 +00:00
alberth b144a5451c (svn r16516) -Codechange: Added click and drag handling for nested widgets. 2009-06-04 14:07:05 +00:00
alberth ba9e014bdc (svn r16489) -Fix [FS#2937] (r16258): Do not resize a widget twice (erikjanp) 2009-05-31 20:52:35 +00:00
alberth 5eecf3e5cb (svn r16463) -Cleanup: Code style fixes. 2009-05-30 11:01:05 +00:00
frosch 8109a74c95 (svn r16414) -Change: Make it harder to ignore/close important error messages. Esp. do not close them automatically after some time. 2009-05-24 12:50:58 +00:00
smatz 62a7948af0 (svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved 2009-05-22 15:13:50 +00:00
smatz 00bc2659f2 (svn r16359) -Codechange: don't abuse company 0 when determining 'cost to clear land' in the LandInfoWindow 2009-05-19 19:26:03 +00:00
smatz 871107f529 (svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index) 2009-05-17 01:00:56 +00:00
smatz 6221d74644 (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 2009-05-16 23:34:14 +00:00
alberth a8aa4e2148 (svn r16259) -Codechange: Added nested widgets to the load and save dialogue windows. 2009-05-09 13:03:45 +00:00
alberth bbb951151d (svn r16258) -Codechange: Remove panel with negative height and some small adjustments in the load/save dialogue windows. 2009-05-09 12:56:55 +00:00
alberth 0cd6dde6a7 (svn r16257) -Codechange: Added empty widgets in load dialogue to move the resize box to the right place in the array. 2009-05-09 12:49:28 +00:00
alberth 590becf567 (svn r16256) -Codechange: Moved load/save dialogue widget numbers outside the window struct. 2009-05-09 12:44:12 +00:00
rubidium 2664f2a2d9 (svn r16242) -Codechange: rework pausing
-Fix [FS#2864]: autopause and manual pausing conflict with eachother
-Fix: new game + pause on new game + autopause make the game not unpause on the first join
2009-05-06 15:06:57 +00:00
alberth 34066a6027 (svn r16227) -Codechange: Added nested widgets for error windows, tooltip window, and dropdown window. 2009-05-04 18:42:49 +00:00
rubidium e825d56786 (svn r16183) -Fix [FS#2872]: wrong string alignment for error messages with face 2009-04-29 10:11:46 +00:00
rubidium afada70bac (svn r16182) -Fix: hardcoded (old sized) MAX_COMPANIES constant 2009-04-29 10:00:58 +00:00
rubidium 53887e07bb (svn r16160) -Codechange: remove the need for explicit TC_FROMSTRING for DrawString. 2009-04-26 14:52:56 +00:00
rubidium 11c6d30e77 (svn r16156) -Codechange: make the parameters of DrawStringMultiline the same as for DrawString (except the addition of the bottom parameter) 2009-04-26 10:45:07 +00:00
rubidium 59d45a04d6 (svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible. 2009-04-21 23:40:56 +00:00
rubidium 329cabab4f (svn r16088) -Codechange: merge HighLightStyle and ViewportHighlightMode as they are basically the same thing 2009-04-19 10:31:30 +00:00
alberth e5ab73e762 (svn r16033) -Codechange: Added nested widgets to about window, land-info window, and both query windows. 2009-04-11 19:14:34 +00:00
alberth 23f0277526 (svn r16032) -Codechange: Completing widget numbers of query windows. 2009-04-11 18:38:10 +00:00
rubidium bee930f9b3 (svn r16024) -Codechange: harden string copying on places where it's possible 2009-04-10 20:37:05 +00:00
glx e4a90f9688 (svn r15907) -Fix (r15841): some strings in save/load dialog were drawn with a 2 pixel offset 2009-03-31 22:55:38 +00:00
alberth 9d2738b9c4 (svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback 2009-03-29 09:49:11 +00:00
rubidium 4a500bbcdb (svn r15843) -Codechange: with RTL the caret would always be drawn at the end of the textbox. 2009-03-25 00:28:57 +00:00
rubidium 86b97f3127 (svn r15841) -Fix: the saveload window could draw directory partly outside the window 2009-03-25 00:16:28 +00:00
rubidium 57174a9301 (svn r15808) -Codechange: use the new DrawString API in a number of GUIs 2009-03-22 12:01:21 +00:00
rubidium e74dc1e1d6 (svn r15803) -Codechange: use the new text drawing API for multicenter
-Fix (r15800): off-by-one w.r.t. offsets
2009-03-22 09:34:06 +00:00
peter1138 4c02622cae (svn r15801) -Fix (r15797): The new DrawStringMultiLine() now returns the new y position instead of the height, so we don't need to add it on. 2009-03-22 08:10:20 +00:00
rubidium d837fc4d03 (svn r15797) -Codechange: make users of the old DrawStringMultiLine use the new one. 2009-03-21 23:45:34 +00:00
rubidium f11300d1f9 (svn r15794) -Codechange: remove the DoDrawString part of the old text drawing API 2009-03-21 22:46:17 +00:00
rubidium 2d66f8e467 (svn r15787) -Codechange: enumify the land info and about window widgets and use them. 2009-03-21 20:40:02 +00:00
rubidium 45f189fdca (svn r15785) -Codechange: remove the *Truncated part of the old text drawing API. 2009-03-21 20:12:12 +00:00
glx ea2c50281e (svn r15762) -Codechange: inlined utf8 chars are not handled properly on eastern version of windows so escape them 2009-03-18 17:55:47 +00:00
yexo 5e1cad1b1b (svn r15753) -Fix (r15702)[FS#2742]: Crash when clicking the small area between the savegame list and the save button in the save game window. 2009-03-17 17:17:52 +00:00
rubidium f9def73be6 (svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth) 2009-03-15 15:12:06 +00:00
yexo e5204f96f9 (svn r15719) -Update: the credit section. 2009-03-15 00:32:36 +00:00
rubidium 27bcfd115b (svn r15702) -Feature(tte): direct content download 'links' in the play scenario/heightmap windows. 2009-03-13 21:32:38 +00:00
yexo 2b0b9a6367 (svn r15669) -Change: Key presses that are not handles by an input box are no longer marked as handled but given to other OnKeyPress handlers. This makes the global shortcuts like F1 work again when an input box is open. 2009-03-11 09:21:11 +00:00
rubidium 908e850b5a (svn r15605) -Codechange: constify a function 2009-03-04 00:13:52 +00:00
yexo fb7b0536e7 (svn r15584) -Codechange: Move several variables from variables.h to more appropriate headers. 2009-02-25 21:45:14 +00:00
rubidium 1ad50ce4e6 (svn r15578) -Change: unexternalise squirrel. 2009-02-25 01:21:50 +00:00
rubidium d846eef0b6 (svn r15434) -Codechange: bit of type safety for the DC_xxx flags. 2009-02-09 21:20:05 +00:00
rubidium c0a8d09ca7 (svn r15428) -Codechange: consistently use colour instead of having both color and colour. 2009-02-09 02:57:15 +00:00
rubidium 861e9cefb3 (svn r15424) -Codechange: make it possible to have multiple windows with edit box open simultaniously (Zuu). 2009-02-09 01:22:29 +00:00
smatz 0d3f5e6e74 (svn r15299) -Cleanup: remove many redundant includes 2009-01-31 20:16:06 +00:00
belugas 9bb57ec840 (svn r15283) -Documentation: Apply some widget naming to the widget arrays.
-Codechange : use a pointer of the same repetitive reference of a widget, rather than an index in the array.
2009-01-27 03:50:36 +00:00
rubidium 18ed717410 (svn r15273) -Fix: OSK of the chat did not update the caret graphics 2009-01-25 22:16:08 +00:00
Yexo 8b04787d09 (svn r15151) -Fix: tile 0 can now be highlighted as error tile 2009-01-19 15:06:11 +00:00
rubidium b1a33a494f (svn r15104) -Codechange: unify the resolving of the xyz kbytes/megabytes strings. 2009-01-16 12:59:47 +00:00
rubidium cda853872a (svn r14944) -Cleanup: add spaces around some operators 2009-01-09 22:56:28 +00:00
glx c7959ce2a9 (svn r14840) -Cleanup: remove duplicate includes 2009-01-04 21:02:59 +00:00
smatz 7368c740a6 (svn r14828) -Codechange: move most of save/load-specific code to separate files 2009-01-04 15:32:25 +00:00
rubidium fad3519d4f (svn r14820) -Codechange: use (the correct) enum-type instead of just int (Zuu) 2009-01-03 23:40:29 +00:00
rubidium e5c1a7b5c3 (svn r14804) -Codechange: unify opening the OSK (Zuu) 2009-01-03 13:59:05 +00:00
rubidium 3a0d966ae4 (svn r14790) -Codechange: unify generation of default savegame/screenshot names (PhilSophus) 2009-01-02 22:49:43 +00:00
rubidium 87e5a8b52b (svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter. 2008-12-28 14:37:19 +00:00
rubidium b8d82cc28c (svn r14752) -Fix [FS#2438]: revenue when clearing land would show up in red in the land info window as negative cost. 2008-12-26 23:37:53 +00:00
rubidium 1599ade7ca (svn r14679) -Fix [FS#2431]: opening the OSK on the chatbox did disable map scrolling (with keyboard) until another window with editbox was opened and closed. Just "refcount" the open edit boxes instead of setting/clearing a bit when opening/closing a window. 2008-12-16 17:58:27 +00:00
skidd13 706dd0f86c (svn r14555) -Codechange: replace ttd_strlcat and ttd_strlcpy with strecat and strecpy where direct conversion is possible 2008-11-02 11:20:15 +00:00
glx a6bfd7f15b (svn r14534) -Codechange [FS#2382]: Enumify magic return values of HandleEditBox function (Zuu) 2008-10-25 19:59:11 +00:00
smatz c10f7db576 (svn r14514) -Codechange: use 'size' instead of 'length' for querystring and textbuf, explicitly say it includes the terminating zero
-Fix: one couldn't rename things with too long default/automatic name
-Fix: buffer overflow in console when too long (1024 bytes) command was entered
2008-10-22 19:12:10 +00:00
rubidium b650a86e58 (svn r14422) -Codechange: also reflect the changes of r14421 in the filenames. 2008-09-30 20:51:04 +00:00
rubidium 3b798599b6 (svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with. 2008-09-30 20:39:50 +00:00
rubidium e7829c1a57 (svn r14414) -Fix: replace instances of strncpy with strecpy as strncpy doesn't guarantee the resulting string is '\0'-terminated. 2008-09-29 16:27:02 +00:00
rubidium 7ef5406946 (svn r14371) -Fix [FS#2313]: loading indicator didn't stay with the front engine when turning a train in a station. 2008-09-21 18:28:35 +00:00
smatz 1266b1a73f (svn r14334) -Feature: ability to reset name to default/automatic value (for vehicles, engines, towns, groups, stations, waypoints, managers and companies) 2008-09-15 19:02:50 +00:00
smatz 606f4defdc (svn r14331) -Codechange: use an enum as additional parameter for ShowQueryString() 2008-09-15 16:29:40 +00:00
rubidium ea1f180a55 (svn r14199) -Codechange: split fileio.h into fileio_type.h and fileio_func.h so not everything that includes saveload.h needs to include everything else too. 2008-08-31 10:50:05 +00:00
belugas 1500ed3665 (svn r14099) -Codechange: Welcome back, Celestar.
While at it, an alphabetic error been fixed
2008-08-18 17:07:27 +00:00
rubidium d986380169 (svn r14069) -Fix: silence MSVC 64-bits compile warnings. 2008-08-13 14:52:54 +00:00
rubidium 6995365535 (svn r14046) -Codechange: make the size of querystring "widgets" more configurable. 2008-08-11 22:08:56 +00:00
rubidium fe4f23dba2 (svn r13932) -Add [YAPP]: PBS signals added to the map array. The signals are drawn using the old Patch-like PBS sprites. (michi_cc) 2008-08-02 22:48:43 +00:00
frosch 0fc769bb6c (svn r13922) -Codechange: Move measurement-tooltip related stuff out of the general tooltip window. 2008-08-02 11:26:25 +00:00
belugas 22d9d9c588 (svn r13888) -Codechange: Replace numbers with Colours enum on miscellaneous guis. 2008-07-31 02:59:21 +00:00
smatz 05c2a8eba4 (svn r13830) -Feature: show additional NewGRF info in the Tile Info window for stations, houses and industries 2008-07-25 22:37:34 +00:00
smatz ce7585101d (svn r13826) -Codechange: use 'INVALID_DATE' instead of '0' as placeholder in tile description 2008-07-25 19:50:40 +00:00
smatz 4835e300c4 (svn r13800) -Codechange: minor comment style fixes in misc_gui.cpp 2008-07-23 15:01:50 +00:00
smatz 06a52be95c (svn r13787) -Codechange: resize the red error message box if needed 2008-07-22 19:25:47 +00:00
rubidium 3a799389eb (svn r13731) -Codechange: make a pool of the array of players. 2008-07-18 16:40:29 +00:00
rubidium d06529ef4d (svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool. 2008-07-17 20:13:01 +00:00
rubidium ab234cf90c (svn r13715) -Fix [FS#2129]: C-like strings had to be rebound each time they were printed, otherwise the text could change due to the few number of slots that could be used to bind.
-Codechange: remove all BindCString and related functions and replace it by RAW_STRING which prints the C-string raw pointer that is on the 'print stack'.
2008-07-17 13:47:04 +00:00
smatz 2ca4b8b2e4 (svn r13601) -Codechange: resize the Tile Info window when it is needed, make it better readable 2008-06-21 18:59:15 +00:00
skidd13 8a40ca49c6 (svn r13359) -Codechange: convert _fios_items to a SmallVector
-Cleanup: some reincarnations of _fios_items in the code
2008-06-02 14:19:27 +00:00
rubidium 923e21129c (svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games. 2008-05-29 15:13:28 +00:00
rubidium 27bca407de (svn r13318) -Codechange: move some functions from gui.h/misc_gui.cpp to window_gui.h/window.cpp because they belong there. 2008-05-29 06:49:56 +00:00
smatz f7233786d2 (svn r13310) -Fix: invalidate OSK when parent editbox changes (from keyboard) 2008-05-28 15:28:27 +00:00
peter1138 504d0d1ae5 (svn r13305) -Fix (r13039): Confirmation window sent both yes and no answers instead of just yes. 2008-05-28 06:30:55 +00:00
smatz e15863fa77 (svn r13304) -Fix (r13042): possible double free (showed up in r13092) 2008-05-27 23:40:36 +00:00
rubidium 5c5ee7eb57 (svn r13301) -Fix [FS#1997]: resolve more MSVC 9 x64 warnings. 2008-05-27 21:41:00 +00:00
rubidium 4625695653 (svn r13251) -Codechange: rename _patches to _settings as that is more logic.
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
2008-05-25 19:17:03 +00:00
frosch eca692ef90 (svn r13206) -Feature(ette): Display all owners of a tile in the tile-info-window. 2008-05-21 22:15:39 +00:00
smatz f244b6b361 (svn r13191) -Fix: segfault after confirming query subwindow in the Generate New World window 2008-05-19 19:17:56 +00:00
rubidium 27c38052b7 (svn r13185) -Codechange: remove everything related to the WindowProc callbacks. 2008-05-19 09:48:47 +00:00
rubidium c3fd582c55 (svn r13182) -Doc: add documentation to mostly rail_gui related functions. Patch by Alberth. 2008-05-19 09:24:03 +00:00
rubidium 6da56ee87e (svn r13169) -Codechange: remove a (now) unneeded parameter of one of the Window constructors. 2008-05-18 20:40:30 +00:00
rubidium f5681547ef (svn r13151) -Codechange: use an enum instead of bool as return type of OnKeyPress/OnCTRLStateChange to make it obvious what the return values mean. 2008-05-17 23:11:06 +00:00
rubidium 8b54212900 (svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming. 2008-05-17 12:48:06 +00:00
rubidium d8154e00ac (svn r13138) -Codechange: remove the need for IsWindowOfPrototype. 2008-05-17 12:26:00 +00:00
glx 5b54c9e373 (svn r13131) -Codechange: make a class of the ErrmsgWindow. 2008-05-17 02:54:04 +00:00
rubidium 0449abe88b (svn r13094) -Fix: closing the QueryWindow would always send a 'query has been cancelled message' even when it was not cancelled causing joining passworded servers/companies to fail. 2008-05-14 20:28:11 +00:00
glx be43bbc3f3 (svn r13093) -Codechange: make a class of AboutWindow. 2008-05-14 20:01:06 +00:00
glx 22960e82aa (svn r13092) -Fix (r13042): don't add a variable in a subclass when the parent class already have it 2008-05-14 19:08:09 +00:00
rubidium 3ef0a1e3be (svn r13049) -Codechange: make a class of the TooltipsWindow. 2008-05-11 17:44:38 +00:00
rubidium eb2d47b547 (svn r13042) -Codechange: make a class of CreateScenarioWindow, GenerateLandscapeWindow, NetworkChatWindow, NetworkCompanyPasswordWindow, NetworkGameWindow, NetworkStartServerWindow, QueryStringWindow, SaveLoadWindow. All these classes depended on the 'querystr_d' object which is now put into QueryStringBaseWindow. As a side effect this removes quite a lot of WP macro usages and a few global variables. 2008-05-11 12:26:20 +00:00
rubidium e63137f47f (svn r13041) -Fix: calling a virtual function on a not fully constructed object is bound to cause errors. 2008-05-11 11:41:18 +00:00
rubidium 46875e28be (svn r13039) -Codechange: make a class of the Query window. 2008-05-11 06:59:51 +00:00
smatz d41f3def5c (svn r13033) -Fix [FS#2003](r13029): land info tool wasn't working 2008-05-10 19:59:41 +00:00
rubidium d24442ae8b (svn r13029) -Codechange: more work in the road to getting the WP macros and byte[WINDOW_CUSTOM_SIZE] removed. This step changes the event handling to work directly on the Window class instead of via a function pointer and big switches while keeping backward compatability while we're rewriting the Windows to the new scheme. 2008-05-10 13:46:36 +00:00
rubidium f23026cce8 (svn r13027) -Codechange: use StrEmpty instead of arr[0] == '\0' and remove the need for WE_ON_EDIT_TEXT_CANCEL. 2008-05-10 08:58:52 +00:00
rubidium f438700402 (svn r13024) -Codechange: do not use WE_MOUSELOOP when WE_TICK suffices, rename WE_4 to something more descriptive and correct some (completely incorrect) comments. 2008-05-09 09:29:27 +00:00
rubidium ba853fdb0b (svn r13018) -Codechange: make a class of the LandInfo Window. 2008-05-08 19:26:55 +00:00
rubidium 4a11ebe76f (svn r13015) -Codechange: move some 'WP' structs out of window_gui.h to the .cpp files where they are actually used. 2008-05-08 14:14:16 +00:00