belugas
a63bcef135
(svn r13879) -Codechange: Replace numbers with Colours enum on engine, industries and group gui
2008-07-30 16:13:58 +00:00
rubidium
cde65455ac
(svn r13731) -Codechange: make a pool of the array of players.
2008-07-18 16:40:29 +00:00
rubidium
6898a76c5f
(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
5990a92bca
(svn r13387) -Fix: industry directory sorting not working correctly (= != ==)
2008-06-05 11:34:26 +00:00
rubidium
e7a501100a
(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
skidd13
4f7e14b6fb
(svn r13311) -Codechange: Use GUIList for the industry directory window
...
-Codechange: Replaced the four sort buttons by a dropdown
-Codechange: Reduced the default window size
2008-05-28 16:45:00 +00:00
skidd13
6180112c90
(svn r13294) -Codechange: convert the inheritance of GUIList in IndustryDirectoryWindow to a member object
2008-05-27 18:50:31 +00:00
peter1138
44dd8955d1
(svn r13291) -Fix (r13266): qsort passed wrong sizeof data
2008-05-27 15:30:51 +00:00
peter1138
781b90ac91
(svn r13266) -Codechange: Use SmallVector in GUIList
2008-05-26 16:23:23 +00:00
rubidium
d289464d69
(svn r13255) -Codechange: move _opt to _settings.
2008-05-25 22:36:44 +00:00
rubidium
dc77647ea4
(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
smatz
c9ef11159f
(svn r13249) -Fix [FS#2039]: make industry sorting by transported percentage more consistent
2008-05-25 17:26:16 +00:00
rubidium
162e2e074b
(svn r13185) -Codechange: remove everything related to the WindowProc callbacks.
2008-05-19 09:48:47 +00:00
glx
4e11e0785a
(svn r13175) -Fix (r13174): sorting criteria and order for industry directory was always reset on window opening
2008-05-19 01:10:52 +00:00
glx
dc1c529a31
(svn r13174) -Codechange: make a class of the IndustryDirectoryWindow.
2008-05-18 23:36:33 +00:00
rubidium
a89b5721a8
(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
a7db265bb6
(svn r13069) -Codechange: it is no longer needed to pass a void *data pointer with the WE_CREATE message because nothing uses it anymore.
2008-05-13 14:43:33 +00:00
glx
eb70da38d0
(svn r13060) -Codechange: update build industry window when raw_industry_construction setting is modified
2008-05-12 14:54:33 +00:00
glx
cf315d2656
(svn r13050) -Codechange: make a class of IndustryViewWindow.
2008-05-11 17:44:56 +00:00
glx
dacd2c5de8
(svn r13047) -Codechange: remove vp_d
2008-05-11 15:08:44 +00:00
rubidium
29ad1d442a
(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
glx
d706c8b462
(svn r13036) -Codechange: make a class of the BuildIndustry Window.
2008-05-10 23:43:08 +00:00
glx
4c98a72745
(svn r13032) -Codechange: make industry view window resizable and truncate strings
2008-05-10 15:58:22 +00:00
rubidium
2c96ce4506
(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
0f7d925121
(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
glx
5c9c8fc199
(svn r13020) -Codechange: make industry directory window horizontally resizable and truncate strings
2008-05-08 21:09:21 +00:00
rubidium
92aac531c2
(svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window.
2008-05-08 11:50:34 +00:00
rubidium
c28ce39e3c
(svn r12987) -Codechange: split viewport and tile selection.
2008-05-07 13:10:15 +00:00
rubidium
9db77e3808
(svn r12976) -Codechange: use w->SetDirty() instead of SetWindowDirty(w) when it's certain that w != NULL.
2008-05-06 22:08:18 +00:00
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
glx
9613a9988c
(svn r11178) -Fix: don't check newgrf callback 22 in scenario editor
2007-09-28 00:34:10 +00:00
glx
18de82b000
(svn r11176) -Revert (r9867): as it is needed for newgrf callbacks 14B and 14C
2007-09-27 21:39:13 +00:00
rubidium
08c5765c0b
(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
13ab17bca8
(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
151262c1eb
(svn r10675) -Codechange: unhardcode the industry types used in several locations of the source code.
2007-07-24 19:56:43 +00:00
belugas
a79ed67f76
(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
e8a73a0591
(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
917c536031
(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
e32c72e35a
(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
15429e3d9d
(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
3121256978
(svn r10618) -Fix(r10167): remove unneeded comment
2007-07-18 16:02:42 +00:00
belugas
eaf946e23b
(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
210e3c7085
(svn r10600) -Codechange: code-stylising the gui switch-case code
2007-07-16 23:48:25 +00:00
belugas
b0989a369c
(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
db16c33194
(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
b0a8409200
(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
b8f658db94
(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
d0fa4eb9de
(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
1b27095c83
(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
d255041365
(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
b0421273f2
(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