Commit Graph

84 Commits

Author SHA1 Message Date
rubidium
1ce0b03bf0 (svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description. 2008-05-06 15:11:33 +00:00
glx
1b9197d6dd (svn r12970) -Codechange: coding style for some function names 2008-05-06 15:06:19 +00:00
glx
7da190c1e0 (svn r12965) -Codechange: add support for callback 37 in industries directory window 2008-05-05 22:42:06 +00:00
glx
7f8f70f6f0 (svn r12964) -Codechange: rewrite callback 37 related code so it will be easier to add supported windows 2008-05-05 22:37:40 +00:00
glx
15ebb1a292 (svn r12959) -Fix: don't assume no production when the first produced cargo is invalid in industries directory 2008-05-05 21:09:03 +00:00
belugas
8580edbf20 (svn r12956) -Codechange: Code-style application on switch-case aligment 2008-05-05 16:05:36 +00:00
peter1138
78c0929b18 (svn r12953) -Feature: Open a new viewport when ctrl-clicking on a 'Location' button, a town/station/industry list, or some news items. 2008-05-05 11:36:43 +00:00
rubidium
bbe13a0623 (svn r12818) -Codechange: make callbacks 31 and 37 behave like they do in TTDP according to frosch's survey. 2008-04-21 13:45:03 +00:00
rubidium
51c7ba39a4 (svn r12789) -Codechange: rename AssignWindowViewport to InitializeWindowViewport because the viewport is now part of the window struct. Patch by Alberth. 2008-04-19 13:17:19 +00:00
rubidium
18e64b28e2 (svn r12757) -Codechange: move all cheat related stuff from all over the place to a single location. 2008-04-17 21:21:01 +00:00
peter1138
2d37f4c823 (svn r12479) -Codechange [FS#1723]: Simplify the method used to resize the industry view window. The window is now shown the correct size so the resize button is also removed. 2008-03-28 19:37:12 +00:00
glx
221071d299 (svn r12455) -Codechange: Implement NewGRF callback 37 (cargo sub-type display for industries) 2008-03-28 02:30:10 +00:00
smatz
70a6179b3b (svn r12049) -Fix (r10496)(r10619): memset on multibyte array with wrong byte count 2008-02-03 12:41:06 +00:00
rubidium
3b20e4d09a (svn r12006) -Fix: implement FS#1697 without the nasty side effects as specified in FS#1712. 2008-01-29 00:36:55 +00:00
belugas
2ff76007b0 (svn r11987) -Feature[newGRF]: Allow the industry view window to be resized only when callback 3A (Show additional text in industry window) is available for the current industry.
This now allows grf authors to specify longer than 3 lines of text.
2008-01-26 03:11:27 +00:00
peter1138
04da1e1d45 (svn r11915) -Codechange: Add a function to draw a sort button's up/down arrow. Arrows are now drawn in a consistent position based on the widget, instead of randomly positioned by pixel. 2008-01-18 10:36:55 +00:00
rubidium
9c0c798dd8 (svn r11834) -Codechange: only include settings_type.h if needed. 2008-01-13 14:37:30 +00:00
rubidium
90acd52f22 (svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h. 2008-01-13 01:21:35 +00:00
rubidium
2fc62eab05 (svn r11818) -Codechange: split player.h into smaller pieces. 2008-01-12 14:10:35 +00:00
rubidium
c004cc1fd9 (svn r11801) -Codechange: remove some unneeded includes from some header files. 2008-01-09 21:27:39 +00:00
rubidium
64d691bacc (svn r11787) -Codechange: more header rewrites. This time related to viewport.h. 2008-01-09 09:45:45 +00:00
peter1138
890296c125 (svn r11742) -Codechange [FS#1319]: Run window tick events when paused, so that news pop-ups and the about window still progress. For other windows the events are ignored when paused. 2008-01-01 22:34:00 +00:00
rubidium
db73addb43 (svn r11702) -Codechange: move all date related stuff to date*. 2007-12-26 13:50:40 +00:00
rubidium
f82aeb82c5 (svn r11701) -Codechange: removal unnecessary inclusions of map.h (and split map.h). 2007-12-26 11:45:43 +00:00
rubidium
81bf9f8503 (svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h' 2007-12-25 11:26:07 +00:00
rubidium
00c9d3ef20 (svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed. 2007-12-25 09:48:53 +00:00
rubidium
1f6043458c (svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type. 2007-12-22 23:30:28 +00:00
rubidium
766551b0bc (svn r11677) -Codechange: move price and command related types/functions to their respective places. 2007-12-21 21:50:46 +00:00
rubidium
8427b8bad2 (svn r11675) -Codechange: split the string types from the string functions. 2007-12-21 19:49:27 +00:00
rubidium
2cf7d5b2cb (svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found. 2007-12-19 20:45:46 +00:00
rubidium
8bfbfd0031 (svn r11667) -Codechange: split window.h into a header that defines some 'global' window related types, on that defined 'global' window functions and one that defines functions and types only used by *_gui.cpps. 2007-12-19 19:44:29 +00:00
rubidium
a510606144 (svn r11609) -Fix [FS#1524]: wrong error messages were shown when trying to build some industries in the scenario editor. 2007-12-09 18:51:25 +00:00
skidd13
eff1c37b77 (svn r11607) -Codechange: Enumify the industry widgets
-Feature: Enable doubleclick in the found new industries window to build an industries
2007-12-09 17:07:50 +00:00
glx
bfda3c82f1 (svn r11600) -Cleanup: remove extra out-of-memory checks, since it's now done in *allocT functions. 2007-12-08 15:47:23 +00:00
belugas
f271038461 (svn r11596) -Codechange: Use the Window member HandleButtonClick and remove its now useless counterpart function 2007-12-08 03:10:50 +00:00
belugas
544325590c (svn r11592) -Codechange: Use the Window member RaiseButtons and remove the now useless RaiseWindowButtons function 2007-12-08 01:20:47 +00:00
rubidium
92cb0e45ca (svn r11555) -Codechange: use the new members introduced in r11551. 2007-12-02 14:29:48 +00:00
skidd13
815b8d8df1 (svn r11510) -Codechange: merge the IS_*INSIDE* functions and rename them fitting to the naming style 2007-11-24 10:38:43 +00:00
skidd13
c0a2c0c23e (svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style 2007-11-19 21:02:30 +00:00
skidd13
98f66552be (svn r11475) -Codechange: rename clamp and clampu to Clamp and ClampU to fit with the coding style 2007-11-19 18:38:10 +00:00
rubidium
ecdb16de42 (svn r11440) -Codechange: replace magic numbers with enumified WindowHighlightMode constants. Patch by SmatZ. 2007-11-15 18:28:00 +00:00
belugas
fecdeda7b1 (svn r11427) -Fix: Forgot to Truncate the string "Many Random Industries" in the funding industry window. In some languages, it gets drawn outside of the gui. 2007-11-13 15:41:09 +00:00
belugas
e2c0f1faf7 (svn r11374) -Codechange: Give meaning to the magical number that specifies the color of the text in a DrawString call.
Patch heavily based on BiBB's work (FS#1383)
2007-11-04 00:08:57 +00:00
glx
073290021b (svn r11372) -Fix [FS#1394]: don't stop on first invalid cargo type when displaying industry acceptance 2007-11-03 15:32:07 +00:00
glx
3d150b6230 (svn r11356) -Fix (r11305): funding industries in MP game was causing desync 2007-10-29 23:29:06 +00:00
belugas
5da0e87d9d (svn r11340) -Fix[FS#1362]: Newindustries can provide no production at start. So the Modifying Production cheat was a bit puzzled on how to deal with it. This will help a bit. 2007-10-25 02:26:02 +00:00
rubidium
eaff35a821 (svn r11287) -Codechange: add support for pushing paramaters into NewIndustries' error messages. Patch by Csaboka. 2007-10-17 20:09:16 +00:00
glx
b9572bd083 (svn r11284) -Codechange: don't reset build industry cursor if it failed 2007-10-17 14:54:18 +00:00
belugas
276aad47f9 (svn r11247) -Fix: The Industry's name to fund could be larger than the window itself. Now, it fits within the physical allowed space 2007-10-12 00:43:18 +00:00
belugas
56ba73a714 (svn r11242) -Codechange: When displaying the industry funding gui, present the industries in the same order as they are available.
Prior of this, they were separated in processing/organic  and  extractive.
Now, all are mixed, just filtered when required.  This will allow easy comparison with TTDPatch's list. (glx and me)
2007-10-10 01:15:07 +00:00