summaryrefslogtreecommitdiff
path: root/src/industry_gui.cpp
AgeCommit message (Collapse)Author
2007-12-02(svn r11555) -Codechange: use the new members introduced in r11551.rubidium
2007-11-24(svn r11510) -Codechange: merge the IS_*INSIDE* functions and rename them ↵skidd13
fitting to the naming style
2007-11-19(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming ↵skidd13
style
2007-11-19(svn r11475) -Codechange: rename clamp and clampu to Clamp and ClampU to fit ↵skidd13
with the coding style
2007-11-15(svn r11440) -Codechange: replace magic numbers with enumified ↵rubidium
WindowHighlightMode constants. Patch by SmatZ.
2007-11-13(svn r11427) -Fix: Forgot to Truncate the string "Many Random Industries" in ↵belugas
the funding industry window. In some languages, it gets drawn outside of the gui.
2007-11-04(svn r11374) -Codechange: Give meaning to the magical number that specifies ↵belugas
the color of the text in a DrawString call. Patch heavily based on BiBB's work (FS#1383)
2007-11-03(svn r11372) -Fix [FS#1394]: don't stop on first invalid cargo type when ↵glx
displaying industry acceptance
2007-10-29(svn r11356) -Fix (r11305): funding industries in MP game was causing desyncglx
2007-10-25(svn r11340) -Fix[FS#1362]: Newindustries can provide no production at ↵belugas
start. So the Modifying Production cheat was a bit puzzled on how to deal with it. This will help a bit.
2007-10-17(svn r11287) -Codechange: add support for pushing paramaters into ↵rubidium
NewIndustries' error messages. Patch by Csaboka.
2007-10-17(svn r11284) -Codechange: don't reset build industry cursor if it failedglx
2007-10-12(svn r11247) -Fix: The Industry's name to fund could be larger than the ↵belugas
window itself. Now, it fits within the physical allowed space
2007-10-10(svn r11242) -Codechange: When displaying the industry funding gui, present ↵belugas
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-09-28(svn r11178) -Fix: don't check newgrf callback 22 in scenario editorglx
2007-09-27(svn r11176) -Revert (r9867): as it is needed for newgrf callbacks 14B and 14Cglx
2007-09-22(svn r11145) -Codechange: add support for "decoding" TTDPs string codes wrt ↵rubidium
to registers 0x100 to 0x10F.
2007-07-27(svn r10704) -Codechange: provide an infrastructure to have resizable ↵rubidium
windows that are smaller than the default window size.
2007-07-24(svn r10675) -Codechange: unhardcode the industry types used in several ↵rubidium
locations of the source code.
2007-07-20(svn r10637) -Fix: Enable the Random Industries in scenario editor if ↵belugas
setting Number of Industries is not NONE. Spotted by skiddl13. Thanks to glx for help in finding and better looking code :)
2007-07-19(svn r10624) -Fix [FS#1047]: the production of banks could not be modified ↵rubidium
(either in scenario editor or with the cheat).
2007-07-19(svn r10622) -Feature: Introduction of the CBID_INDUSTRY_AVAILABLE's ↵belugas
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(svn r10621) -Codechange: install a struct holding the user's selection from ↵belugas
_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-18(svn r10619) -Codechange: Use shorter variable/member names and add some ↵belugas
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(svn r10618) -Fix(r10167): remove unneeded commentbelugas
2007-07-18(svn r10617) -Codechange: code style changes (removing an erroneous tab plus ↵belugas
switch case alignment) -Codechange: give enum values to widgets
2007-07-16(svn r10600) -Codechange: code-stylising the gui switch-case codebelugas
2007-07-10(svn r10496) -Feature: Replace all the windows for Industry building by a ↵belugas
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-08(svn r10473) -Codechange: make the industry "window", the one that shows ↵rubidium
when you click on an industry, more flexible to allow easier integration with newindustries.
2007-07-06(svn r10459) -Codechange: add helper functions to determine whether an ↵rubidium
industry is a primary industry and how much it costs to build such an industry.
2007-07-06(svn r10451) -Add: support for "prospecting" raw industries, i.e. you pay an ↵rubidium
amount of money and then it might (with a given chance) build a raw industry somewhere on the map.
2007-06-21(svn r10258) -Codechange: as we are now using int64 all over the place, it's ↵rubidium
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(svn r10247) -Fix (r10210): *always* call SetDParamMoney when you want to ↵rubidium
place money in some string.
2007-06-07(svn r10058) -Codechange: give some industry variable sensible names (like ↵rubidium
not telling "last_mo_production" when it is the production of the current month).
2007-06-07(svn r10054) -Codechange: make the industries cost modifier look more like ↵rubidium
the original one, so it's much easier to support industries that use this original format.
2007-05-18(svn r9867) -Codechange: Remove data duplication. The exact same values can ↵belugas
be found in the industry spec, so take it from there instead.
2007-05-15(svn r9844) -Codechange: replace zoomlevel with an enumtruelight
-Codechange: use predefined enums for viewport zoomlevels
2007-04-18(svn r9673) -Cleanup: remove spaces before tabs and replace non-indenting ↵rubidium
tabs with spaces.
2007-04-18(svn r9672) -Cleanup: lots of coding style fixes around operands.rubidium
2007-03-07(svn r9050) -Codechange: Foo(void) -> Foo()rubidium
2007-03-03(svn r8987) -Cleanup: doxygen changes. Again. Mostly (still) @files missing ↵belugas
tags and (more than just) a few comments style.
2007-03-02(svn r8980) -Fix (FS#656): the industry list should also be (re)set when the ↵rubidium
number of industries is 0.
2007-02-20(svn r8826) -Codechange: Replace _cargoc's separate arrays with a regular ↵peter1138
struct array (with accessor) and implement new initialization method using cargo labels.
2007-02-01(svn r8511) -Codechange: make WindowClass an enumerated value.rubidium
2007-01-11(svn r8066) - Codechange: MallocT(), CallocT(), ReallocT() now return the ↵KUDr
pointer to allocated memory instead of modifying the pointer given as parameter
2007-01-11(svn r8055) -Codechange: Replace the different max, dmax, maxu whatever ↵celestar
macros by a simple template function max(), that requires two arguments of the same type. While I'm at it change a variable called "max" to "maxval" in a function that calls max().
2007-01-10(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, ↵rubidium
stillunknown and pv2b.
2007-01-10(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files ↵KUDr
renamed to .cpp)