Commit Graph

246 Commits

Author SHA1 Message Date
frosch c49debbe63 (svn r20901) -Fix/Change: When using non-smooth or newgrf-economy changing production rates does not work (anymore), so allow changing the production multiplier instead. 2010-10-04 20:12:38 +00:00
frosch 286aba3492 (svn r20899) -Codechange: Switch order of if-tests in IndustryViewWindow::OnClick(). 2010-10-04 20:00:23 +00:00
frosch 168b0a733f (svn r20898) -Change: When entering a production rate, round to nearest possible rate instead towards zero. 2010-10-04 19:45:27 +00:00
frosch 566ba0fccc (svn r20897) -Codechange: Store the result of IsProductionAlterable() in a member variable of IndustryViewWindow. 2010-10-04 19:35:40 +00:00
frosch a0a51c2ac1 (svn r20895) -Codechange: Use an enum to identify the rows of buttons in the industryview. 2010-10-04 19:14:43 +00:00
frosch 22842fe035 (svn r20892) -Fix (maybe r10624): Scenario editor resp. cheat-buttons to alter industry production did not work for large industry windows. 2010-10-03 15:49:44 +00:00
frosch ce83378e3d (svn r20837) -Fix [FS#4132]: Set height of industry directory to 5 lines like other lists. 2010-09-22 19:47:01 +00:00
frosch e4091f16d0 (svn r20751) -Fix: IndustryCargoesWindow::HousesCanAccept() did not check climate-availability of houses. 2010-09-05 19:46:04 +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
alberth 35fec79700 (svn r20499) -Doc: Spelling fixes, and one doxygen comment addition. 2010-08-15 14:06:43 +00:00
frosch bdb4ae940d (svn r20496) -Codechange: Remove IsProductionMinimum()/Maximum(). The 0 and 255 constants are used all over the place, no need for trivial wrapper functions. 2010-08-15 10:14:08 +00:00
frosch 9e538acc03 (svn r20461) -Codechange: Replace WWT_HSCROLLBAR, WWT_SCROLLBAR and WWT_SCROLL2BAR with NWID_HSCROLLBAR and NWID_VSCROLLBAR. 2010-08-12 09:16:43 +00:00
frosch 71ca58c2bb (svn r20453) -Codechange: Remove direct accesses to Window::hscroll, vscroll and vscroll2.
Note: All windows get individual members with the same names, which are initialised via Window::GetScrollbar(). This caching is not required at all, but simplifies conversion.
2010-08-12 08:37:01 +00:00
frosch 10339c60c0 (svn r20452) -Codechange: Remove NWidgetCore::FindScrollbar() and associate scrollbar explicitly using a NWidgetPart via SetScrollbar(). 2010-08-12 06:44:45 +00:00
rubidium 10ced06205 (svn r20440) -Fix: MSVC warning about shifting a 32 bit value and then converting it to 64 bits 2010-08-10 16:17:51 +00:00
alberth 7ad1f5ccef (svn r20415) -Add: Clicking at the smallmap disables updates from the industry chain window. 2010-08-08 11:21:24 +00:00
alberth 2fa665114e (svn r20414) -Feature: Enable industries in the smallmap displayed in the industry chain window. 2010-08-08 11:17:14 +00:00
alberth e1e8e245a0 (svn r20412) -Codechange: Replace an if by a switch in IndustryCargoesWindow::OnClick. 2010-08-08 11:02:57 +00:00
alberth f5d972cade (svn r20397) -Feature: Display industry smallmap colour in the industry chain window. 2010-08-07 20:36:23 +00:00
alberth 16dfc7a04d (svn r20387) -Fix [FS#4000]: Allow the industry-chain button for non-fundable industries, and disallow for the 'many random industries'. 2010-08-06 12:23:44 +00:00
alberth d9c9ae8fcf (svn r20386) -Fix: Initialize fund-industry buttons when opening window. 2010-08-06 12:19:01 +00:00
alberth 3ca0ed3e82 (svn r20385) -Codechange: Move updating of buttons in the fund-industry window to a method. 2010-08-06 12:12:20 +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
alberth a825b4fa5f (svn r20266) -Doc: Mostly typo fixes, a few doxygen-related improvements. 2010-07-31 21:02:56 +00:00
alberth 2dd77d0ef9 (svn r20241) -Codechange: Move variable declarations to their first use. 2010-07-30 10:39:24 +00:00
alberth 4203e641f8 (svn r20223) -Codechange: Replace scrolled row calculations by a call to GetScrolledRowFromWidget(). 2010-07-26 13:08:48 +00:00
alberth b59a6a53de (svn r20216) -Fix: Increase scrolling speed of industry cargoes window, enlarge height slightly so small chains fit by default. 2010-07-25 12:38:06 +00:00
alberth 645b6ce773 (svn r20210) -Fix (r20206): Allow other compilers to enjoy the new window too. 2010-07-23 19:07:00 +00:00
alberth a9b492c050 (svn r20209) -Add: Allow access to the industry cargoes window from the fund industry window. 2010-07-23 18:46:52 +00:00
alberth 27dba2b3b2 (svn r20208) -Add: Allow access of the industry cargoes window from the industry view window. 2010-07-23 18:44:04 +00:00
alberth f601259f46 (svn r20207) -Codechange: Move variable declaration to first use. 2010-07-23 18:40:39 +00:00
alberth 85c775e7f3 (svn r20206) -Feature: Display suppliers and customers of an industry or cargo. 2010-07-23 18:39:02 +00:00
rubidium b8487afe54 (svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :) 2010-07-19 17:28:27 +00:00
rubidium 73527b7b45 (svn r20190) -Codechange: unVARDEF _generate_world and move it to genworld 2010-07-19 17:17:36 +00:00
frosch edcc7f3cbc (svn r20086) -Add: Textstack support for CB 38. 2010-07-07 20:00:04 +00:00
frosch 1d3adb2b66 (svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into DEBUG() output. It was triggered on exceptions, especially when aborting world generation. 2010-06-05 12:16:12 +00:00
frosch 9db3cde73a (svn r19914) -Codechange: Wrap a helper class around temporary assignments of _current_company to ensure proper restoration. 2010-05-31 20:22:57 +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
frosch ca9a015984 (svn r19701) -Fix [FS#3787]: Check for industry availability more thoroughly and cancel object placement when selecting not available industries. 2010-04-23 21:47:03 +00:00
yexo 316384a26f (svn r19538) -Fix: sorting industries by production was broken for newgrf industries 2010-04-02 11:03:56 +00:00
terkhen 2b812ac2fa (svn r19522) -Feature: Sort industries alphabetically at the fund new industry window. 2010-03-28 12:29:41 +00:00
terkhen 217a98e69b (svn r19521) -Codechange: Use a IndustryType array to sort industries by name instead of a LegendAndColour array. 2010-03-28 12:25:09 +00:00
alberth db1c6b7a81 (svn r19423) -Codechange: Move error message reporting of industry build in SE to a callback. 2010-03-14 19:59:45 +00:00
smatz f051066bc4 (svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit 2010-02-24 14:46:15 +00:00
yexo 045bee5229 (svn r19176) -Fix [FS#3632] (r17859): when selecting "build many industries" in the scenario editor the "build" button wasn't enabled 2010-02-20 21:21:54 +00:00
rubidium 0072503496 (svn r19087) -Codechange: some typos in StringIDs 2010-02-10 20:20:18 +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 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 87466a4ed0 (svn r18717) -Codechange: use TileArea in industry instead of three separate variables. Also make use of TileArea functions for determining the 'width' and 'height' of an industry. 2010-01-04 18:21:07 +00:00