alberth
7e48d85104
(svn r21060) -Doc: Improved wording of comments (mostly by __ln__)
14 years ago
alberth
42f6245a31
(svn r21021) -Add [FS#4171]: Center industry gui and waypoint gui after resize (partly by Krille).
14 years ago
alberth
df7a32d364
(svn r21021) -Add [FS#4171]: Center industry gui and waypoint gui after resize (partly by Krille).
14 years ago
alberth
f502c82fa5
(svn r21019) -Add: Use center of industry to focus on in the industry gui.
14 years ago
alberth
cccbc8f418
(svn r21019) -Add: Use center of industry to focus on in the industry gui.
14 years ago
planetmaker
310de59b0f
(svn r20997) -Fix: Size of sort buttons for order and vehicle list gui could be too small
14 years ago
planetmaker
c2a7b82a9f
(svn r20997) -Fix: Size of sort buttons for order and vehicle list gui could be too small
14 years ago
frosch
88a1b8c8d9
(svn r20902) -Fix [FS#4032]: Make IsProductionAlterable() work for most NewGRF industries.
...
The NewGRF either has to use properties 12/13, or it needs to set property 0B to 'primary industry'.
So it will not work for bank-like industries which use pure production-callback production.
14 years ago
frosch
510ef76386
(svn r20902) -Fix [FS#4032]: Make IsProductionAlterable() work for most NewGRF industries.
...
The NewGRF either has to use properties 12/13, or it needs to set property 0B to 'primary industry'.
So it will not work for bank-like industries which use pure production-callback production.
14 years ago
frosch
75f0653bdf
(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.
14 years ago
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.
14 years ago
frosch
1bbf059934
(svn r20899) -Codechange: Switch order of if-tests in IndustryViewWindow::OnClick().
14 years ago
frosch
286aba3492
(svn r20899) -Codechange: Switch order of if-tests in IndustryViewWindow::OnClick().
14 years ago
frosch
83a94cd560
(svn r20898) -Change: When entering a production rate, round to nearest possible rate instead towards zero.
14 years ago
frosch
168b0a733f
(svn r20898) -Change: When entering a production rate, round to nearest possible rate instead towards zero.
14 years ago
frosch
ec38c7d687
(svn r20897) -Codechange: Store the result of IsProductionAlterable() in a member variable of IndustryViewWindow.
14 years ago
frosch
566ba0fccc
(svn r20897) -Codechange: Store the result of IsProductionAlterable() in a member variable of IndustryViewWindow.
14 years ago
frosch
ebb4f36f34
(svn r20895) -Codechange: Use an enum to identify the rows of buttons in the industryview.
14 years ago
frosch
a0a51c2ac1
(svn r20895) -Codechange: Use an enum to identify the rows of buttons in the industryview.
14 years ago
frosch
a2ad453239
(svn r20892) -Fix (maybe r10624): Scenario editor resp. cheat-buttons to alter industry production did not work for large industry windows.
14 years ago
frosch
22842fe035
(svn r20892) -Fix (maybe r10624): Scenario editor resp. cheat-buttons to alter industry production did not work for large industry windows.
14 years ago
frosch
221c1a259f
(svn r20837) -Fix [FS#4132]: Set height of industry directory to 5 lines like other lists.
14 years ago
frosch
ce83378e3d
(svn r20837) -Fix [FS#4132]: Set height of industry directory to 5 lines like other lists.
14 years ago
frosch
563afd0717
(svn r20751) -Fix: IndustryCargoesWindow::HousesCanAccept() did not check climate-availability of houses.
14 years ago
frosch
e4091f16d0
(svn r20751) -Fix: IndustryCargoesWindow::HousesCanAccept() did not check climate-availability of houses.
14 years ago
rubidium
360d6daf34
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
14 years ago
rubidium
30f2afac9b
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
14 years ago
alberth
a51d34c048
(svn r20499) -Doc: Spelling fixes, and one doxygen comment addition.
14 years ago
alberth
35fec79700
(svn r20499) -Doc: Spelling fixes, and one doxygen comment addition.
14 years ago
frosch
1bc01bc4b6
(svn r20496) -Codechange: Remove IsProductionMinimum()/Maximum(). The 0 and 255 constants are used all over the place, no need for trivial wrapper functions.
14 years ago
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.
14 years ago
frosch
2d5ef5e5a8
(svn r20461) -Codechange: Replace WWT_HSCROLLBAR, WWT_SCROLLBAR and WWT_SCROLL2BAR with NWID_HSCROLLBAR and NWID_VSCROLLBAR.
14 years ago
frosch
9e538acc03
(svn r20461) -Codechange: Replace WWT_HSCROLLBAR, WWT_SCROLLBAR and WWT_SCROLL2BAR with NWID_HSCROLLBAR and NWID_VSCROLLBAR.
14 years ago
frosch
4817d5dcd6
(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.
14 years ago
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.
14 years ago
frosch
341f41e347
(svn r20452) -Codechange: Remove NWidgetCore::FindScrollbar() and associate scrollbar explicitly using a NWidgetPart via SetScrollbar().
14 years ago
frosch
10339c60c0
(svn r20452) -Codechange: Remove NWidgetCore::FindScrollbar() and associate scrollbar explicitly using a NWidgetPart via SetScrollbar().
14 years ago
rubidium
13fbe57957
(svn r20440) -Fix: MSVC warning about shifting a 32 bit value and then converting it to 64 bits
14 years ago
rubidium
10ced06205
(svn r20440) -Fix: MSVC warning about shifting a 32 bit value and then converting it to 64 bits
14 years ago
alberth
9b10773428
(svn r20415) -Add: Clicking at the smallmap disables updates from the industry chain window.
14 years ago
alberth
7ad1f5ccef
(svn r20415) -Add: Clicking at the smallmap disables updates from the industry chain window.
14 years ago
alberth
15f407acea
(svn r20414) -Feature: Enable industries in the smallmap displayed in the industry chain window.
14 years ago
alberth
2fa665114e
(svn r20414) -Feature: Enable industries in the smallmap displayed in the industry chain window.
14 years ago
alberth
5967b81124
(svn r20412) -Codechange: Replace an if by a switch in IndustryCargoesWindow::OnClick.
14 years ago
alberth
e1e8e245a0
(svn r20412) -Codechange: Replace an if by a switch in IndustryCargoesWindow::OnClick.
14 years ago
alberth
a90c30d614
(svn r20397) -Feature: Display industry smallmap colour in the industry chain window.
14 years ago
alberth
f5d972cade
(svn r20397) -Feature: Display industry smallmap colour in the industry chain window.
14 years ago
alberth
9fed86a814
(svn r20387) -Fix [FS#4000]: Allow the industry-chain button for non-fundable industries, and disallow for the 'many random industries'.
14 years ago
alberth
16dfc7a04d
(svn r20387) -Fix [FS#4000]: Allow the industry-chain button for non-fundable industries, and disallow for the 'many random industries'.
14 years ago
alberth
03e8fe7c0e
(svn r20386) -Fix: Initialize fund-industry buttons when opening window.
14 years ago
alberth
d9c9ae8fcf
(svn r20386) -Fix: Initialize fund-industry buttons when opening window.
14 years ago
alberth
5f9d74467f
(svn r20385) -Codechange: Move updating of buttons in the fund-industry window to a method.
14 years ago
alberth
3ca0ed3e82
(svn r20385) -Codechange: Move updating of buttons in the fund-industry window to a method.
14 years ago
frosch
5b86c79fce
(svn r20283) -Codechange: Unify start of doygen comments.
14 years ago
frosch
ed4f806f1d
(svn r20283) -Codechange: Unify start of doygen comments.
14 years ago
rubidium
8c85b4ce3d
(svn r20281) -Codechange: unify case scope closure + break coding style
14 years ago
rubidium
e356cb9405
(svn r20281) -Codechange: unify case scope closure + break coding style
14 years ago
alberth
1743c86610
(svn r20266) -Doc: Mostly typo fixes, a few doxygen-related improvements.
14 years ago
alberth
a825b4fa5f
(svn r20266) -Doc: Mostly typo fixes, a few doxygen-related improvements.
14 years ago
alberth
3cd9351618
(svn r20241) -Codechange: Move variable declarations to their first use.
14 years ago
alberth
2dd77d0ef9
(svn r20241) -Codechange: Move variable declarations to their first use.
14 years ago
alberth
a50578c3ad
(svn r20223) -Codechange: Replace scrolled row calculations by a call to GetScrolledRowFromWidget().
14 years ago
alberth
4203e641f8
(svn r20223) -Codechange: Replace scrolled row calculations by a call to GetScrolledRowFromWidget().
14 years ago
alberth
b378deff33
(svn r20216) -Fix: Increase scrolling speed of industry cargoes window, enlarge height slightly so small chains fit by default.
14 years ago
alberth
b59a6a53de
(svn r20216) -Fix: Increase scrolling speed of industry cargoes window, enlarge height slightly so small chains fit by default.
14 years ago
alberth
3dc9989841
(svn r20210) -Fix (r20206): Allow other compilers to enjoy the new window too.
14 years ago
alberth
645b6ce773
(svn r20210) -Fix (r20206): Allow other compilers to enjoy the new window too.
14 years ago
alberth
a5e0362851
(svn r20209) -Add: Allow access to the industry cargoes window from the fund industry window.
14 years ago
alberth
a9b492c050
(svn r20209) -Add: Allow access to the industry cargoes window from the fund industry window.
14 years ago
alberth
76a00e51ad
(svn r20208) -Add: Allow access of the industry cargoes window from the industry view window.
14 years ago
alberth
27dba2b3b2
(svn r20208) -Add: Allow access of the industry cargoes window from the industry view window.
14 years ago
alberth
6490c06a66
(svn r20207) -Codechange: Move variable declaration to first use.
14 years ago
alberth
f601259f46
(svn r20207) -Codechange: Move variable declaration to first use.
14 years ago
alberth
b4358056ee
(svn r20206) -Feature: Display suppliers and customers of an industry or cargo.
14 years ago
alberth
85c775e7f3
(svn r20206) -Feature: Display suppliers and customers of an industry or cargo.
14 years ago
rubidium
9fd2afb147
(svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :)
14 years ago
rubidium
b8487afe54
(svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :)
14 years ago
rubidium
60b93f5c69
(svn r20190) -Codechange: unVARDEF _generate_world and move it to genworld
14 years ago
rubidium
73527b7b45
(svn r20190) -Codechange: unVARDEF _generate_world and move it to genworld
14 years ago
frosch
4da8f78f5b
(svn r20086) -Add: Textstack support for CB 38.
14 years ago
frosch
edcc7f3cbc
(svn r20086) -Add: Textstack support for CB 38.
14 years ago
frosch
a5bea603ea
(svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into DEBUG() output. It was triggered on exceptions, especially when aborting world generation.
15 years ago
frosch
1d3adb2b66
(svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into DEBUG() output. It was triggered on exceptions, especially when aborting world generation.
15 years ago
frosch
ee53807e51
(svn r19914) -Codechange: Wrap a helper class around temporary assignments of _current_company to ensure proper restoration.
15 years ago
frosch
9db3cde73a
(svn r19914) -Codechange: Wrap a helper class around temporary assignments of _current_company to ensure proper restoration.
15 years ago
rubidium
cb92cdf975
(svn r19709) -Feature: NewGRF debugging/inspecting of (primarily) enabled callbacks and values of variables
15 years ago
rubidium
f56ebd81c3
(svn r19709) -Feature: NewGRF debugging/inspecting of (primarily) enabled callbacks and values of variables
15 years ago
frosch
b4a9e9cadc
(svn r19701) -Fix [FS#3787]: Check for industry availability more thoroughly and cancel object placement when selecting not available industries.
15 years ago
frosch
ca9a015984
(svn r19701) -Fix [FS#3787]: Check for industry availability more thoroughly and cancel object placement when selecting not available industries.
15 years ago
yexo
1c9877b0c7
(svn r19538) -Fix: sorting industries by production was broken for newgrf industries
15 years ago
yexo
316384a26f
(svn r19538) -Fix: sorting industries by production was broken for newgrf industries
15 years ago
terkhen
a68f917179
(svn r19522) -Feature: Sort industries alphabetically at the fund new industry window.
15 years ago
terkhen
2b812ac2fa
(svn r19522) -Feature: Sort industries alphabetically at the fund new industry window.
15 years ago
terkhen
bda9ad98c1
(svn r19521) -Codechange: Use a IndustryType array to sort industries by name instead of a LegendAndColour array.
15 years ago
terkhen
217a98e69b
(svn r19521) -Codechange: Use a IndustryType array to sort industries by name instead of a LegendAndColour array.
15 years ago
alberth
68213d25ab
(svn r19423) -Codechange: Move error message reporting of industry build in SE to a callback.
15 years ago
alberth
db1c6b7a81
(svn r19423) -Codechange: Move error message reporting of industry build in SE to a callback.
15 years ago
smatz
5504b1105e
(svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit
15 years ago
smatz
f051066bc4
(svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit
15 years ago
yexo
edf2fd1433
(svn r19176) -Fix [FS#3632] (r17859): when selecting "build many industries" in the scenario editor the "build" button wasn't enabled
15 years ago
yexo
045bee5229
(svn r19176) -Fix [FS#3632] (r17859): when selecting "build many industries" in the scenario editor the "build" button wasn't enabled
15 years ago
rubidium
1c468db7d5
(svn r19087) -Codechange: some typos in StringIDs
15 years ago
rubidium
0072503496
(svn r19087) -Codechange: some typos in StringIDs
15 years ago
frosch
94a5c917a5
(svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick().
15 years ago
frosch
88019e64e1
(svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick().
15 years ago
rubidium
9467b7c6d6
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
15 years ago
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
15 years ago
rubidium
6cac8be361
(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.
15 years ago
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.
15 years ago
yexo
566df4c8bf
(svn r18707) -Fix (r17802): local variables should not be accessed after the function returns
15 years ago
yexo
9e2ccca327
(svn r18707) -Fix (r17802): local variables should not be accessed after the function returns
15 years ago
alberth
0e9dac92d2
(svn r18588) -Feature [FS#2943]: Add shading and unshading of windows.
15 years ago
alberth
91872aca48
(svn r18588) -Feature [FS#2943]: Add shading and unshading of windows.
15 years ago
alberth
f20e477a02
(svn r18580) -Codechange: Use widget information only for setting scrollbar capacity.
15 years ago
alberth
5a083f183e
(svn r18580) -Codechange: Use widget information only for setting scrollbar capacity.
15 years ago
yexo
e0b9aaac4f
(svn r18512) -Fix (r17859) [FS#3376]: assert when clicking the industry button in the scenario editor
15 years ago
yexo
35b8c8367e
(svn r18512) -Fix (r17859) [FS#3376]: assert when clicking the industry button in the scenario editor
15 years ago
rubidium
32b86b23b5
(svn r18447) -Change: make some more windows (e.g. graphs, company view) stickyable
15 years ago
rubidium
ac4ef286f4
(svn r18447) -Change: make some more windows (e.g. graphs, company view) stickyable
15 years ago
rubidium
8c11679381
(svn r18342) -Fix: erroneous spaces before ;
15 years ago
rubidium
2e2f72b971
(svn r18342) -Fix: erroneous spaces before ;
15 years ago
rubidium
45eb0be570
(svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice.
15 years ago
rubidium
293dfd7c3e
(svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice.
15 years ago
rubidium
ab417c6c06
(svn r18280) -Codechange: remove widget indices that are not needed for custom drawing/handling input
15 years ago
rubidium
8d6e323ef8
(svn r18280) -Codechange: remove widget indices that are not needed for custom drawing/handling input
15 years ago
rubidium
50359b2d08
(svn r18277) -Codechange: remove unneeded widget indices for close, resize and sticky boxes and for window captions
15 years ago
rubidium
14300d309c
(svn r18277) -Codechange: remove unneeded widget indices for close, resize and sticky boxes and for window captions
15 years ago
rubidium
f8b79068e6
(svn r18274) -Codechange: remove the unused WDF flags
15 years ago
rubidium
69b6d9309a
(svn r18274) -Codechange: remove the unused WDF flags
15 years ago
alberth
5bee09c924
(svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize().
15 years ago
alberth
450e40b997
(svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize().
15 years ago
alberth
18b33fde83
(svn r18229) -Codechange: Make fill_x, fill_y a number instead of a bool.
15 years ago
alberth
2b6f792513
(svn r18229) -Codechange: Make fill_x, fill_y a number instead of a bool.
15 years ago
alberth
8139a8d96f
(svn r18220) -Codechange: Reduce number of nested widget dynamic casts.
15 years ago
alberth
bf93372ca2
(svn r18220) -Codechange: Reduce number of nested widget dynamic casts.
15 years ago
rubidium
c227abd7c3
(svn r18213) -Codechange: it's not needed to manually set the fill, (re)size and tooltip for scrollbars
15 years ago
rubidium
8204f226f1
(svn r18213) -Codechange: it's not needed to manually set the fill, (re)size and tooltip for scrollbars
15 years ago
rubidium
f106bbbe5c
(svn r18212) -Codechange: remove unneeded 'parameters' for WWT_CAPTION, WWT_CLOSEBOX and WWT_STICKYBOX in the nested widget arrays
15 years ago
rubidium
d913282e7a
(svn r18212) -Codechange: remove unneeded 'parameters' for WWT_CAPTION, WWT_CLOSEBOX and WWT_STICKYBOX in the nested widget arrays
15 years ago
rubidium
8e11cd3a42
(svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets
15 years ago
rubidium
5f2ddfbc5a
(svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets
15 years ago
peter1138
05a6b7bfeb
(svn r18151) -Codechange: Let industry build/found widgets fill the window.
15 years ago
peter1138
063e8adcec
(svn r18151) -Codechange: Let industry build/found widgets fill the window.
15 years ago
rubidium
a13fd6ddce
(svn r18126) -Codechange: remove duplicate (since r18119) scrollbar capacity/matrix initialisation
15 years ago
rubidium
626de6b128
(svn r18126) -Codechange: remove duplicate (since r18119) scrollbar capacity/matrix initialisation
15 years ago
rubidium
b01251092e
(svn r18086) -Codechange: remove 'widget' from WindowDesc
15 years ago
rubidium
3d2d7af88f
(svn r18086) -Codechange: remove 'widget' from WindowDesc
15 years ago
smatz
b27a12b8b6
(svn r18057) -Codechange: replace assert_compile() by new one which works with gcc3.3 and removes the need of assert_tcompile()
15 years ago
smatz
8d95e16ff1
(svn r18057) -Codechange: replace assert_compile() by new one which works with gcc3.3 and removes the need of assert_tcompile()
15 years ago
alberth
5a97b64d73
(svn r17928) -Codechange: ShowErrorMessage() now takes the summary string before the details string.
...
Gentlemen, swap your string parameters.
15 years ago
alberth
44aacfc59f
(svn r17928) -Codechange: ShowErrorMessage() now takes the summary string before the details string.
...
Gentlemen, swap your string parameters.
15 years ago
rubidium
5be6edc6e3
(svn r17859) -Codechange: make the fund/build/prospect industry window nested
15 years ago
rubidium
69b20e9a07
(svn r17859) -Codechange: make the fund/build/prospect industry window nested
15 years ago
rubidium
c1365b3cc1
(svn r17853) -Codechange: remove the 'delta' parameter from OnResize; it was used in ways that aren't always wanted, causing bugs and the like. Also with nested widgets most reasons for handling OnResize have gone.
15 years ago
rubidium
ca0521f89f
(svn r17853) -Codechange: remove the 'delta' parameter from OnResize; it was used in ways that aren't always wanted, causing bugs and the like. Also with nested widgets most reasons for handling OnResize have gone.
15 years ago
alberth
e05313e41d
(svn r17828) -Codechange: Variable declaration code style, and a few comment typo-ish fixes.
15 years ago
alberth
af9c76eb6f
(svn r17828) -Codechange: Variable declaration code style, and a few comment typo-ish fixes.
15 years ago
frosch
966d8d8f52
(svn r17810) -Codechange/Fix: Add assert_tcompile() and use it.
...
OTTD's traditional assert_compile() does not work inside templates for gcc compilers, static_assert() does though.
The new assert_tcompile() resolves into static_assert() if present, or into a runtime assert() else.
15 years ago
frosch
b8f8c60839
(svn r17810) -Codechange/Fix: Add assert_tcompile() and use it.
...
OTTD's traditional assert_compile() does not work inside templates for gcc compilers, static_assert() does though.
The new assert_tcompile() resolves into static_assert() if present, or into a runtime assert() else.
15 years ago
frosch
c1e005ac88
(svn r17802) -Feature(ette) [FS#1862]: [NewGRF] Textstack support for CB 37.
15 years ago
frosch
60188f496d
(svn r17802) -Feature(ette) [FS#1862]: [NewGRF] Textstack support for CB 37.
15 years ago
alberth
aa75552957
(svn r17799) -Codechange: industry view window uses pure nested widgets.
15 years ago
alberth
c52a26a73f
(svn r17799) -Codechange: industry view window uses pure nested widgets.
15 years ago
alberth
9c31915368
(svn r17798) -Codechange: Introduce new constant WD_PAR_VSEP_WIDE for large amount of space between text.
15 years ago
alberth
f1e885e0d2
(svn r17798) -Codechange: Introduce new constant WD_PAR_VSEP_WIDE for large amount of space between text.
15 years ago
alberth
1f3dedea24
(svn r17797) -Codechange: Use parameters of new function, introduce constants for hardcoded numbers.
15 years ago
alberth
00723e694f
(svn r17797) -Codechange: Use parameters of new function, introduce constants for hardcoded numbers.
15 years ago
alberth
9b8030612f
(svn r17796) -Codechange: Move drawing of the industry info to its own function.
15 years ago
alberth
29028b3f8a
(svn r17796) -Codechange: Move drawing of the industry info to its own function.
15 years ago
rubidium
b72898c8a3
(svn r17786) -Fix [FS#3265]: graphical glitches (matrices/scrollbars with wrong 'size') upon reiniting windows
15 years ago
rubidium
d1d35b95b6
(svn r17786) -Fix [FS#3265]: graphical glitches (matrices/scrollbars with wrong 'size') upon reiniting windows
15 years ago
rubidium
982b8ee5fc
(svn r17693) -Cleanup: remove some unneeded includes
15 years ago
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
15 years ago
smatz
13437a998e
(svn r17603) -Codechange: since now, towns are 'founded' instead of 'built'
15 years ago
smatz
15511678e3
(svn r17603) -Codechange: since now, towns are 'founded' instead of 'built'
15 years ago
alberth
d54028fde8
(svn r17572) -Codechange: Use the Window::GetWidget() function to access nested widgets through the nested_array.
15 years ago
alberth
116c77c342
(svn r17572) -Codechange: Use the Window::GetWidget() function to access nested widgets through the nested_array.
15 years ago
rubidium
c2c0f4403e
(svn r17534) -Codechange: unify the naming of callback masks/flags
15 years ago
rubidium
64bafcbe18
(svn r17534) -Codechange: unify the naming of callback masks/flags
15 years ago
frosch
0e36260337
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
15 years ago
frosch
ebd916be3d
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
15 years ago
smatz
2fafa87aa1
(svn r17445) -Fix (r17318): force resort after changing sort type in the industry list window
15 years ago
smatz
98e2742863
(svn r17445) -Fix (r17318): force resort after changing sort type in the industry list window
15 years ago
alberth
a76da0e36a
(svn r17423) -Fix [FS#3174]: Show '- None -' with empty town or industry list, and use that text in the size computation as well.
15 years ago
alberth
9fd22f727f
(svn r17423) -Fix [FS#3174]: Show '- None -' with empty town or industry list, and use that text in the size computation as well.
15 years ago
rubidium
f3372f6bc1
(svn r17414) -Codechange: only send/read the number of bits that can be actually useful when building industries
15 years ago
rubidium
27738c6638
(svn r17414) -Codechange: only send/read the number of bits that can be actually useful when building industries
15 years ago
rubidium
e80d296638
(svn r17369) -Codechange: make the depot, group and industry GUIs use the scrollbar wrappers
15 years ago
rubidium
78c9827000
(svn r17369) -Codechange: make the depot, group and industry GUIs use the scrollbar wrappers
15 years ago
rubidium
25b667c1ea
(svn r17322) -Codechange: make the industry directory window nested.
15 years ago
rubidium
3b03999073
(svn r17322) -Codechange: make the industry directory window nested.
15 years ago
rubidium
b237655d76
(svn r17320) -Codechange: move the code to determine the string and set dparams of industries in the industry directory out of OnPaint
15 years ago
rubidium
e8433f6d48
(svn r17320) -Codechange: move the code to determine the string and set dparams of industries in the industry directory out of OnPaint
15 years ago
rubidium
898d070919
(svn r17319) -Codechange: replace some magic numbers related to locations/sizes with the appropriate variables in the industry directory
15 years ago
rubidium
0aab13bf44
(svn r17319) -Codechange: replace some magic numbers related to locations/sizes with the appropriate variables in the industry directory
15 years ago
rubidium
99dda2a3ce
(svn r17318) -Codechange: remove state changes from the OnPaint of the industry directory
15 years ago
rubidium
5fe9c44862
(svn r17318) -Codechange: remove state changes from the OnPaint of the industry directory
15 years ago
smatz
a0d0206f2d
(svn r17292) -Codechange: use unified ToPercent() function to convert fract numbers to percents
15 years ago
smatz
100ae8efcc
(svn r17292) -Codechange: use unified ToPercent() function to convert fract numbers to percents
15 years ago
rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
alberth
b31928c033
(svn r17198) -Fix [FS#2406]: Accept monthly production values in the scenario editor.
15 years ago
alberth
098756b84b
(svn r17198) -Fix [FS#2406]: Accept monthly production values in the scenario editor.
15 years ago
alberth
0cc8cbd40d
(svn r17171) -Doc: Additions and corrections of various doxygen strings.
15 years ago
alberth
4eb155ccfb
(svn r17171) -Doc: Additions and corrections of various doxygen strings.
15 years ago
smatz
d64bdb138c
(svn r17168) -Codechange: apply coding style to if and while statements
15 years ago
smatz
c5533ae470
(svn r17168) -Codechange: apply coding style to if and while statements
15 years ago
rubidium
d61be2637e
(svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives
15 years ago
rubidium
1fe3ad3288
(svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives
15 years ago
rubidium
4874578e79
(svn r16930) -Codechange: more StringID name unification and grouping
15 years ago
rubidium
e9bc557b2a
(svn r16930) -Codechange: more StringID name unification and grouping
15 years ago
rubidium
39e6dbd5e3
(svn r16886) -Codechange: unify naming of some string IDs related to string codes and group them logically
15 years ago
rubidium
e3053660c6
(svn r16886) -Codechange: unify naming of some string IDs related to string codes and group them logically
15 years ago
smatz
8718babe90
(svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get()
15 years ago
smatz
1f29e38b83
(svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get()
15 years ago
alberth
fe9f5cbc46
(svn r16845) -Codechange: Introduction of constants for describing the bits in a WWT_MATRIX data field.
15 years ago
alberth
d0a47fc1b4
(svn r16845) -Codechange: Introduction of constants for describing the bits in a WWT_MATRIX data field.
15 years ago
rubidium
2832d69272
(svn r16422) -Codechange: use const_cast for removing const and warn when const is (accidentally?) removed using C-style casts.
16 years ago
rubidium
168ae6f7e2
(svn r16422) -Codechange: use const_cast for removing const and warn when const is (accidentally?) removed using C-style casts.
16 years ago
smatz
d6e203ebe2
(svn r16379) -Codechange: remove GetNumTowns(), GetNumIndustries() and GetActiveCompanyCount(), use PoolItem::GetNumItems() instead
16 years ago
smatz
10d1ef5447
(svn r16379) -Codechange: remove GetNumTowns(), GetNumIndustries() and GetActiveCompanyCount(), use PoolItem::GetNumItems() instead
16 years ago
smatz
0c10daa243
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
16 years ago
smatz
871107f529
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
16 years ago
smatz
d495dc5dbc
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
16 years ago
smatz
6221d74644
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
16 years ago
rubidium
241af768f0
(svn r16242) -Codechange: rework pausing
...
-Fix [FS#2864]: autopause and manual pausing conflict with eachother
-Fix: new game + pause on new game + autopause make the game not unpause on the first join
16 years ago
rubidium
2664f2a2d9
(svn r16242) -Codechange: rework pausing
...
-Fix [FS#2864]: autopause and manual pausing conflict with eachother
-Fix: new game + pause on new game + autopause make the game not unpause on the first join
16 years ago
rubidium
650cb3694e
(svn r16160) -Codechange: remove the need for explicit TC_FROMSTRING for DrawString.
16 years ago
rubidium
53887e07bb
(svn r16160) -Codechange: remove the need for explicit TC_FROMSTRING for DrawString.
16 years ago
rubidium
5c5b357043
(svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible.
16 years ago
rubidium
59d45a04d6
(svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible.
16 years ago
rubidium
e88cb7f70f
(svn r16088) -Codechange: merge HighLightStyle and ViewportHighlightMode as they are basically the same thing
16 years ago
rubidium
329cabab4f
(svn r16088) -Codechange: merge HighLightStyle and ViewportHighlightMode as they are basically the same thing
16 years ago
rubidium
6f2ce87c5e
(svn r15997) -Fix [FS#2811]: multiline string truncation broke extending the industry window when there are more lines of information
16 years ago
rubidium
c08c4224be
(svn r15997) -Fix [FS#2811]: multiline string truncation broke extending the industry window when there are more lines of information
16 years ago
alberth
bbd546b792
(svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback
16 years ago
alberth
9d2738b9c4
(svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback
16 years ago
glx
5298b5ef68
(svn r15884) -Codechange: New widgets for the industry windows
16 years ago
glx
7a9a5cd139
(svn r15884) -Codechange: New widgets for the industry windows
16 years ago
rubidium
dcd5ad8b19
(svn r15797) -Codechange: make users of the old DrawStringMultiLine use the new one.
16 years ago
rubidium
d837fc4d03
(svn r15797) -Codechange: make users of the old DrawStringMultiLine use the new one.
16 years ago
rubidium
c1aabd9842
(svn r15785) -Codechange: remove the *Truncated part of the old text drawing API.
16 years ago
rubidium
45f189fdca
(svn r15785) -Codechange: remove the *Truncated part of the old text drawing API.
16 years ago
smatz
e0fe28fdc9
(svn r15726) -Codechange: unify coding style for const pointers
16 years ago
smatz
8585aa71ed
(svn r15726) -Codechange: unify coding style for const pointers
16 years ago
rubidium
7f468dc142
(svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth)
16 years ago
rubidium
f9def73be6
(svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth)
16 years ago
rubidium
c3e87f345d
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
16 years ago
rubidium
b25a4f8231
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
16 years ago
rubidium
283b3d16ab
(svn r15410) -Cleanup: get rid of most of the references to the 'patches' except where it's used for backward compatability.
16 years ago
rubidium
377ce6c5bf
(svn r15410) -Cleanup: get rid of most of the references to the 'patches' except where it's used for backward compatability.
16 years ago
rubidium
42fe0b65d2
(svn r15338) -Fix [FS#2598]: close all construction related windows whenever changing company.
16 years ago
rubidium
ac7757324e
(svn r15338) -Fix [FS#2598]: close all construction related windows whenever changing company.
16 years ago
rubidium
a49197f522
(svn r15336) -Fix: do not use _current_company in the GUI as there are no guarantees that _current_company is the same as _local_company.
16 years ago
rubidium
7da743a0dc
(svn r15336) -Fix: do not use _current_company in the GUI as there are no guarantees that _current_company is the same as _local_company.
16 years ago
smatz
9021c20b5e
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
rubidium
28ea38ae55
(svn r14949) -Cleanup: pointer coding style
16 years ago
rubidium
11da45ee55
(svn r14949) -Cleanup: pointer coding style
16 years ago
frosch
eb6df17b1a
(svn r14902) -Feature: Advanced setting to keep various building tools active, which are usually closed after placing an object. (planetmaker)
16 years ago
frosch
cf1e926e37
(svn r14902) -Feature: Advanced setting to keep various building tools active, which are usually closed after placing an object. (planetmaker)
16 years ago
rubidium
e83cca7d13
(svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter.
16 years ago
rubidium
87e5a8b52b
(svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter.
16 years ago
rubidium
e589c7e580
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
16 years ago
rubidium
b650a86e58
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
16 years ago
rubidium
f56e630e5c
(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
16 years ago
rubidium
3b798599b6
(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
16 years ago
rubidium
f49d5057ee
(svn r14390) -Codechange: replace magic constants with symbolic constants.
16 years ago
rubidium
6a931d67cd
(svn r14390) -Codechange: replace magic constants with symbolic constants.
16 years ago
smatz
ffa39caf3d
(svn r14331) -Codechange: use an enum as additional parameter for ShowQueryString()
16 years ago
smatz
606f4defdc
(svn r14331) -Codechange: use an enum as additional parameter for ShowQueryString()
16 years ago
belugas
6532897b5a
(svn r14003) -Codechange: Replace numbers with Colours enum opn some DrawArrowButtons calls
16 years ago
belugas
85c84c9d86
(svn r14003) -Codechange: Replace numbers with Colours enum opn some DrawArrowButtons calls
16 years ago
rubidium
7aa97fee8c
(svn r13917) -Fix [FS#2178]: wrong tooltip for the industry directory's list.
16 years ago
rubidium
d67ef3573c
(svn r13917) -Fix [FS#2178]: wrong tooltip for the industry directory's list.
16 years ago
belugas
a63bcef135
(svn r13879) -Codechange: Replace numbers with Colours enum on engine, industries and group gui
16 years ago
belugas
4cc5da9409
(svn r13879) -Codechange: Replace numbers with Colours enum on engine, industries and group gui
16 years ago
rubidium
cde65455ac
(svn r13731) -Codechange: make a pool of the array of players.
16 years ago
rubidium
3a799389eb
(svn r13731) -Codechange: make a pool of the array of players.
16 years ago
rubidium
6898a76c5f
(svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool.
16 years ago
rubidium
d06529ef4d
(svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool.
16 years ago
rubidium
5990a92bca
(svn r13387) -Fix: industry directory sorting not working correctly (= != ==)
17 years ago
rubidium
94718ae0de
(svn r13387) -Fix: industry directory sorting not working correctly (= != ==)
17 years ago
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.
17 years ago
rubidium
923e21129c
(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.
17 years ago
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
17 years ago
skidd13
b80425fdf9
(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
17 years ago
skidd13
6180112c90
(svn r13294) -Codechange: convert the inheritance of GUIList in IndustryDirectoryWindow to a member object
17 years ago
skidd13
83c442cc57
(svn r13294) -Codechange: convert the inheritance of GUIList in IndustryDirectoryWindow to a member object
17 years ago
peter1138
44dd8955d1
(svn r13291) -Fix (r13266): qsort passed wrong sizeof data
17 years ago
peter1138
0ce9343fb6
(svn r13291) -Fix (r13266): qsort passed wrong sizeof data
17 years ago
peter1138
781b90ac91
(svn r13266) -Codechange: Use SmallVector in GUIList
17 years ago
peter1138
02b5ffa13f
(svn r13266) -Codechange: Use SmallVector in GUIList
17 years ago
rubidium
d289464d69
(svn r13255) -Codechange: move _opt to _settings.
17 years ago
rubidium
8c9cc415e3
(svn r13255) -Codechange: move _opt to _settings.
17 years ago
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.
17 years ago
rubidium
4625695653
(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.
17 years ago
smatz
c9ef11159f
(svn r13249) -Fix [FS#2039]: make industry sorting by transported percentage more consistent
17 years ago
smatz
31a266b5b3
(svn r13249) -Fix [FS#2039]: make industry sorting by transported percentage more consistent
17 years ago
rubidium
162e2e074b
(svn r13185) -Codechange: remove everything related to the WindowProc callbacks.
17 years ago