Commit Graph

207 Commits (21883a84d7883df5feb25d6536ec8f67a053fe42)

Author SHA1 Message Date
frosch ca9a015984 (svn r19701) -Fix [FS#3787]: Check for industry availability more thoroughly and cancel object placement when selecting not available industries. 14 years ago
yexo 316384a26f (svn r19538) -Fix: sorting industries by production was broken for newgrf industries 14 years ago
terkhen 2b812ac2fa (svn r19522) -Feature: Sort industries alphabetically at the fund new industry window. 14 years ago
terkhen 217a98e69b (svn r19521) -Codechange: Use a IndustryType array to sort industries by name instead of a LegendAndColour array. 14 years ago
alberth db1c6b7a81 (svn r19423) -Codechange: Move error message reporting of industry build in SE to a callback. 15 years ago
smatz f051066bc4 (svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit 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 0072503496 (svn r19087) -Codechange: some typos in StringIDs 15 years ago
frosch 88019e64e1 (svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick(). 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 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 9e2ccca327 (svn r18707) -Fix (r17802): local variables should not be accessed after the function returns 15 years ago
alberth 91872aca48 (svn r18588) -Feature [FS#2943]: Add shading and unshading of windows. 15 years ago
alberth 5a083f183e (svn r18580) -Codechange: Use widget information only for setting scrollbar capacity. 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 ac4ef286f4 (svn r18447) -Change: make some more windows (e.g. graphs, company view) stickyable 15 years ago
rubidium 2e2f72b971 (svn r18342) -Fix: erroneous spaces before ; 15 years ago
rubidium 293dfd7c3e (svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice. 15 years ago
rubidium 8d6e323ef8 (svn r18280) -Codechange: remove widget indices that are not needed for custom drawing/handling input 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 69b6d9309a (svn r18274) -Codechange: remove the unused WDF flags 15 years ago
alberth 450e40b997 (svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize(). 15 years ago
alberth 2b6f792513 (svn r18229) -Codechange: Make fill_x, fill_y a number instead of a bool. 15 years ago
alberth bf93372ca2 (svn r18220) -Codechange: Reduce number of nested widget dynamic casts. 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 d913282e7a (svn r18212) -Codechange: remove unneeded 'parameters' for WWT_CAPTION, WWT_CLOSEBOX and WWT_STICKYBOX in the nested widget arrays 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 063e8adcec (svn r18151) -Codechange: Let industry build/found widgets fill the window. 15 years ago
rubidium 626de6b128 (svn r18126) -Codechange: remove duplicate (since r18119) scrollbar capacity/matrix initialisation 15 years ago
rubidium 3d2d7af88f (svn r18086) -Codechange: remove 'widget' from WindowDesc 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 44aacfc59f (svn r17928) -Codechange: ShowErrorMessage() now takes the summary string before the details string.
Gentlemen, swap your string parameters.
15 years ago
rubidium 69b20e9a07 (svn r17859) -Codechange: make the fund/build/prospect industry window nested 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 af9c76eb6f (svn r17828) -Codechange: Variable declaration code style, and a few comment typo-ish fixes. 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 60188f496d (svn r17802) -Feature(ette) [FS#1862]: [NewGRF] Textstack support for CB 37. 15 years ago
alberth c52a26a73f (svn r17799) -Codechange: industry view window uses pure nested widgets. 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 00723e694f (svn r17797) -Codechange: Use parameters of new function, introduce constants for hardcoded numbers. 15 years ago
alberth 29028b3f8a (svn r17796) -Codechange: Move drawing of the industry info to its own function. 15 years ago
rubidium d1d35b95b6 (svn r17786) -Fix [FS#3265]: graphical glitches (matrices/scrollbars with wrong 'size') upon reiniting windows 15 years ago
rubidium d6cded5380 (svn r17693) -Cleanup: remove some unneeded includes 15 years ago
smatz 15511678e3 (svn r17603) -Codechange: since now, towns are 'founded' instead of 'built' 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 64bafcbe18 (svn r17534) -Codechange: unify the naming of callback masks/flags 15 years ago
frosch ebd916be3d (svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability. 15 years ago
smatz 98e2742863 (svn r17445) -Fix (r17318): force resort after changing sort type in the industry list window 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 27738c6638 (svn r17414) -Codechange: only send/read the number of bits that can be actually useful when building industries 15 years ago