rubidium
b9046c97fb
(svn r11702) -Codechange: move all date related stuff to date*.
2007-12-26 13:50:40 +00:00
rubidium
2786d789a1
(svn r11701) -Codechange: removal unnecessary inclusions of map.h (and split map.h).
2007-12-26 11:45:43 +00:00
rubidium
429521a7d1
(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
bf98e25e43
(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
8f0e68285b
(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
9e9cfe6e59
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
2007-12-21 21:50:46 +00:00
rubidium
433a9f3c09
(svn r11675) -Codechange: split the string types from the string functions.
2007-12-21 19:49:27 +00:00
rubidium
d582aea639
(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
8896bea306
(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
6aaa72c918
(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
f20e414e2e
(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
b47bce651e
(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
73c58d8a40
(svn r11596) -Codechange: Use the Window member HandleButtonClick and remove its now useless counterpart function
2007-12-08 03:10:50 +00:00
belugas
8c89641dbe
(svn r11592) -Codechange: Use the Window member RaiseButtons and remove the now useless RaiseWindowButtons function
2007-12-08 01:20:47 +00:00
rubidium
527b72749d
(svn r11555) -Codechange: use the new members introduced in r11551.
2007-12-02 14:29:48 +00:00
skidd13
bf959f926f
(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
71c4325c50
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
2007-11-19 21:02:30 +00:00
skidd13
8be526e499
(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
dace4686c0
(svn r11440) -Codechange: replace magic numbers with enumified WindowHighlightMode constants. Patch by SmatZ.
2007-11-15 18:28:00 +00:00
belugas
a0d0dcb78d
(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
56e6282f2f
(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
e3dfdaa470
(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
0204f501df
(svn r11356) -Fix (r11305): funding industries in MP game was causing desync
2007-10-29 23:29:06 +00:00
belugas
2739ab082e
(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
e21b7634bf
(svn r11287) -Codechange: add support for pushing paramaters into NewIndustries' error messages. Patch by Csaboka.
2007-10-17 20:09:16 +00:00
glx
0ab883c393
(svn r11284) -Codechange: don't reset build industry cursor if it failed
2007-10-17 14:54:18 +00:00
belugas
9934cb8a1c
(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
81ed86477b
(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
glx
1f4889e38a
(svn r11178) -Fix: don't check newgrf callback 22 in scenario editor
2007-09-28 00:34:10 +00:00
glx
5e45e73037
(svn r11176) -Revert (r9867): as it is needed for newgrf callbacks 14B and 14C
2007-09-27 21:39:13 +00:00
rubidium
240285b8d8
(svn r11145) -Codechange: add support for "decoding" TTDPs string codes wrt to registers 0x100 to 0x10F.
2007-09-22 23:55:34 +00:00
rubidium
c03cb2c8db
(svn r10704) -Codechange: provide an infrastructure to have resizable windows that are smaller than the default window size.
2007-07-27 12:49:04 +00:00
rubidium
fe8e297995
(svn r10675) -Codechange: unhardcode the industry types used in several locations of the source code.
2007-07-24 19:56:43 +00:00
belugas
1b1fbdd331
(svn r10637) -Fix: Enable the Random Industries in scenario editor if setting Number of Industries is not NONE.
...
Spotted by skiddl13.
Thanks to glx for help in finding and better looking code :)
2007-07-20 16:08:28 +00:00
rubidium
4a52a6833e
(svn r10624) -Fix [FS#1047]: the production of banks could not be modified (either in scenario editor or with the cheat).
2007-07-19 16:24:48 +00:00
belugas
7a656fde4e
(svn r10622) -Feature: Introduction of the CBID_INDUSTRY_AVAILABLE's handling, in fund industry window.
...
In order to stay as much consistent with the specs, the fund window will perform (if required) the callback every game-day. TTDPatch performs the same call every second, but after discussions with Csaboka, we agreed that it was not required to be that intensive. So a game-day is plenty enough.
2007-07-19 01:47:32 +00:00
belugas
f7f6ad362e
(svn r10621) -Codechange: install a struct holding the user's selection from _fund_gui.
...
-Codechange: merge WE_TIMEOUT and WE_ABORT_PLACE_OBJ, as they both do the same thing.
-Feature: Any time you place an industry, even if it fails, the button will reset and the cursor will return to normal.
2007-07-19 01:35:48 +00:00
belugas
f47f1e723c
(svn r10619) -Codechange: Use shorter variable/member names and add some code separation.
...
-Codechange: Use a stringID variable instead of always refering to the _fund_gui.text[foo] member
-Documentation: Add a few explanatory comments here and there
2007-07-18 17:05:23 +00:00
belugas
c62d0719ae
(svn r10618) -Fix(r10167): remove unneeded comment
2007-07-18 16:02:42 +00:00
belugas
0fada78480
(svn r10617) -Codechange: code style changes (removing an erroneous tab plus switch case alignment)
...
-Codechange: give enum values to widgets
2007-07-18 15:59:08 +00:00
belugas
0f8e7e79be
(svn r10600) -Codechange: code-stylising the gui switch-case code
2007-07-16 23:48:25 +00:00
belugas
a5da0e6609
(svn r10496) -Feature: Replace all the windows for Industry building by a more flexible one.
...
Thanks to Csaboka (from TTDPatch dev team) for his hints and original design (which i've found while it was halfway done, so i could make it more compliant ;)). Don't expect it to be a carbon-copy though. A few differences can be found here and there.
Thanks to Rubidium for his helping hand. Hope you will like it as we do :)
2007-07-10 00:59:00 +00:00
rubidium
8b54aab214
(svn r10473) -Codechange: make the industry "window", the one that shows when you click on an industry, more flexible to allow easier integration with newindustries.
2007-07-08 00:25:05 +00:00
rubidium
c86015203a
(svn r10459) -Codechange: add helper functions to determine whether an industry is a primary industry and how much it costs to build such an industry.
2007-07-06 22:33:16 +00:00
rubidium
0d68a919d9
(svn r10451) -Add: support for "prospecting" raw industries, i.e. you pay an amount of money and then it might (with a given chance) build a raw industry somewhere on the map.
2007-07-06 07:24:10 +00:00
rubidium
9c0944aa09
(svn r10258) -Codechange: as we are now using int64 all over the place, it's better to use int64 variables in the string generating too instead of packing them into two int32s.
...
-Fix: some displays of money were wrong.
2007-06-21 17:25:17 +00:00
rubidium
eb1472a82d
(svn r10247) -Fix (r10210): *always* call SetDParamMoney when you want to place money in some string.
2007-06-21 14:54:51 +00:00
rubidium
8a74b2ebe1
(svn r10058) -Codechange: give some industry variable sensible names (like not telling "last_mo_production" when it is the production of the current month).
2007-06-07 14:38:45 +00:00
rubidium
40cea6c3ef
(svn r10054) -Codechange: make the industries cost modifier look more like the original one, so it's much easier to support industries that use this original format.
2007-06-07 09:20:04 +00:00
belugas
380d18fb69
(svn r9867) -Codechange: Remove data duplication. The exact same values can be found in the industry spec, so take it from there instead.
2007-05-18 00:33:47 +00:00