Commit Graph

180 Commits

Author SHA1 Message Date
frosch
94a5c917a5 (svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick(). 2010-01-30 18:34:48 +00:00
rubidium
9467b7c6d6 (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
26b203e3ff (svn r18781) -Codechange: pass the CommandCost to the callback instead of whether it succeeded or not.
-Fix: AIs did update their last cost incorrectly in network games if the cost of the DC_EXEC phase differed from the ~DC_EXEC phase.
2010-01-11 18:46:09 +00:00
alberth
0e9dac92d2 (svn r18588) -Feature [FS#2943]: Add shading and unshading of windows. 2009-12-21 16:24:29 +00:00
alberth
f20e477a02 (svn r18580) -Codechange: Use widget information only for setting scrollbar capacity. 2009-12-20 20:08:39 +00:00
rubidium
3fcccd89fe (svn r18575) -Fix [FS#3393]: unit numbers weren't always fully shown in the depot 2009-12-20 16:42:35 +00:00
peter1138
bbf3805523 (svn r18414) -Fix: In the depot window, 'free' wagons were not drawn resize.step_height apart 2009-12-06 11:46:57 +00:00
rubidium
45eb0be570 (svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice. 2009-11-28 14:42:35 +00:00
rubidium
50359b2d08 (svn r18277) -Codechange: remove unneeded widget indices for close, resize and sticky boxes and for window captions 2009-11-24 18:05:55 +00:00
rubidium
f8b79068e6 (svn r18274) -Codechange: remove the unused WDF flags 2009-11-24 17:28:29 +00:00
alberth
7cf5681377 (svn r18231) -Fix: Enable filling of matrix widget in the depot gui. 2009-11-22 18:29:52 +00:00
alberth
5bee09c924 (svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize(). 2009-11-22 18:28:14 +00:00
alberth
18b33fde83 (svn r18229) -Codechange: Make fill_x, fill_y a number instead of a bool. 2009-11-22 18:26:01 +00:00
alberth
8139a8d96f (svn r18220) -Codechange: Reduce number of nested widget dynamic casts. 2009-11-22 13:22:53 +00:00
rubidium
f106bbbe5c (svn r18212) -Codechange: remove unneeded 'parameters' for WWT_CAPTION, WWT_CLOSEBOX and WWT_STICKYBOX in the nested widget arrays 2009-11-22 11:20:12 +00:00
rubidium
ef4e936acb (svn r18211) -Cleanup: remove unneeded tooltip, size and fill 'parameters' from WWT_RESIZEBOX instances 2009-11-22 11:10:17 +00:00
rubidium
38da13cf7d (svn r18163) -Codechange: make the depot GUI RTL aware 2009-11-18 10:45:49 +00:00
rubidium
ffa705dace (svn r18157) -Codechange: some minor tweaks of the boundaries of strings etc. in the depot window 2009-11-17 23:32:18 +00:00
rubidium
df69324aa6 (svn r18154) -Codechange: let the depot window better scale with bigger fonts 2009-11-17 22:58:41 +00:00
rubidium
8e11cd3a42 (svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets 2009-11-17 19:16:48 +00:00
rubidium
350b556028 (svn r18145) -Codechange: pass the 'proper' left and right values to DrawVehicleInDepot 2009-11-17 16:03:51 +00:00
rubidium
68f146d83c (svn r18133) -Codechange: pass the 'maximum' left/right positions to Draw*Image 2009-11-16 22:25:01 +00:00
rubidium
b7ef6b3ca8 (svn r18128) -Codechange: rename GetVehicleListHeight to GetVehicleHeight as it has nothing to do with the height of the vehicle lists. 2009-11-16 20:58:38 +00:00
rubidium
a13fd6ddce (svn r18126) -Codechange: remove duplicate (since r18119) scrollbar capacity/matrix initialisation 2009-11-16 20:34:57 +00:00
rubidium
b01251092e (svn r18086) -Codechange: remove 'widget' from WindowDesc 2009-11-15 10:26:01 +00:00
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. 2009-10-24 14:53:55 +00:00
alberth
862b8b6247 (svn r17833) -Codechange: Depot gui should use relative widget coordinates for clicking. 2009-10-20 21:41:44 +00:00
frosch
9259446b76 (svn r17830) -Fix [FS#3276]: Some windows already need their window_number when setting up smallest size (e.g. for DParams). So assign it earlier in Window::InitializeData instead of dealing with each window separately. 2009-10-20 21:25:25 +00:00
rubidium
b72898c8a3 (svn r17786) -Fix [FS#3265]: graphical glitches (matrices/scrollbars with wrong 'size') upon reiniting windows 2009-10-17 14:29:10 +00:00
alberth
0fdc77ef5a (svn r17760) -Revert (r17648): _local_company is less constant than you'd expect. 2009-10-11 08:23:30 +00:00
alberth
d771df960b (svn r17653) -Fix (r17649): Widgets at the bottom button bar of the depot window should adapt to differences in height. 2009-09-27 08:49:42 +00:00
alberth
d8f128b97c (svn r17652) -Codechange: Merging/renaming the depot block-size functions. 2009-09-27 08:28:49 +00:00
alberth
200a83d033 (svn r17650) -Codechange: Checking a condition once is enough. 2009-09-26 19:26:08 +00:00
alberth
e678f32cb2 (svn r17649) -Codechange: Depot gui uses pure nested widgets. 2009-09-26 19:21:20 +00:00
alberth
4a34775949 (svn r17648) -Codechange: Move type initialization and widget disabling to the constructor. 2009-09-26 18:47:41 +00:00
alberth
01c38e380f (svn r17647) -Codechange: Moving widget array access to outside the function. 2009-09-26 18:15:35 +00:00
alberth
fe9235c224 (svn r17643) -Codechange: Code style for variables in depot gui. 2009-09-26 16:06:54 +00:00
alberth
3682318c2c (svn r17626) -Codechange: Use Dimension structs instead of array of length 2 for storing horizontal/vertical information. 2009-09-23 20:48:30 +00:00
alberth
e89c79aeb7 (svn r17624) -Codechange: Swap entries in _resize_cap[][] so the code does what the docs say. 2009-09-23 19:57:56 +00:00
smatz
f85b8c4e09 (svn r17596) -Codechange: constify some tables 2009-09-20 23:11:01 +00:00
rubidium
2e5596025c (svn r17579) -Fix: remove doxygen docs for removed parameters, or change @param to @tparam if necessary 2009-09-19 15:17:47 +00:00
frosch
0e36260337 (svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability. 2009-09-13 19:15:59 +00:00
rubidium
f660dd7109 (svn r17446) -Codechange: rename BUILD with BUY for strings that are about building (in the future buying) vehicles. 2009-09-07 08:59:43 +00:00
rubidium
e80d296638 (svn r17369) -Codechange: make the depot, group and industry GUIs use the scrollbar wrappers 2009-09-02 07:36:39 +00:00
rubidium
9442334163 (svn r17368) -Codechange: remove pointless passing of 'this' as parameter 2009-09-02 07:22:09 +00:00
rubidium
99d46e0ad7 (svn r17248) -Fix: add GPL license notice where appropriate 2009-08-21 20:21:05 +00:00
rubidium
c096e3d54c (svn r17228) -Codechange: some coding style fixes 2009-08-20 10:23:39 +00:00
alberth
fe2fcace25 (svn r17194) -Fix (r17175): Depot sell buttons did not raise again. 2009-08-15 20:59:49 +00:00
frosch
50b1aacdb0 (svn r17185) -Codechange: Tweak depot gui and vehicle lists, so text overlaps less with vehicle images. 2009-08-15 11:47:11 +00:00
rubidium
d61be2637e (svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives 2009-08-05 17:59:21 +00:00