Commit Graph

196 Commits

Author SHA1 Message Date
frosch e5ff41ee53 (svn r20464) -Codechange/Fix: Do not use a scrollbar to store the number of columns for non-train depot windows. 2010-08-12 11:21:30 +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
frosch 4bd32799f1 (svn r20286) -Codechange: Unify end of doxygen comments. 2010-08-01 19:44:49 +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
rubidium 0e078670b7 (svn r20145) -Codechange: keep original RMB->tooltip behaviour when hovering is disabled and there is no handled right click event for the widget, i.e. if a widget would handle the right click you won't see the tooltip anymore by right clicking; by enabling hovering you would get access to that tooltip again. 2010-07-14 17:36:27 +00:00
terkhen 9cf9bb9b92 (svn r20121) -Add: OnHover method for windows. 2010-07-11 11:00:09 +00:00
terkhen 10fbb87823 (svn r20120) -Feature [FS#3913]: Tooltips are shown by hovering the mouse over a widget instead of by right clicking on it. 2010-07-11 10:58:55 +00:00
alberth 268bc7d571 (svn r19888) -Add [FS#3705]: Add highlighting of drag destination in depot gui (sbr). 2010-05-23 15:02:26 +00:00
rubidium 1a5d7b34d8 (svn r19801) -Add [FS#3691]: custom naming of depots. Based on work by sbr 2010-05-12 20:50:10 +00:00
rubidium 5051ef80c6 (svn r19796) -Codechange: introduce and use a {DEPOT} string command 2010-05-12 18:19:36 +00:00
smatz e3c89df398 (svn r19714) -Feature: ctrl+click on a vehicle to start/stop it 2010-04-24 20:55:51 +00:00
smatz 4a9ef6ce60 (svn r19710) -Codechange: deduplicate GUI code for starting/stopping vehicles 2010-04-24 14:29:30 +00:00
frosch 2e90f7f8b9 (svn r19670) -Codechange: Add CeilDiv() and RoundDiv() to simplify integer divisions with rounding. 2010-04-18 14:56:05 +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 2b97f38cd1 (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 91872aca48 (svn r18588) -Feature [FS#2943]: Add shading and unshading of windows. 2009-12-21 16:24:29 +00:00
alberth 5a083f183e (svn r18580) -Codechange: Use widget information only for setting scrollbar capacity. 2009-12-20 20:08:39 +00:00
rubidium 90b7f0f3cb (svn r18575) -Fix [FS#3393]: unit numbers weren't always fully shown in the depot 2009-12-20 16:42:35 +00:00
peter1138 f49491ddcd (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 293dfd7c3e (svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice. 2009-11-28 14:42:35 +00:00
rubidium 14300d309c (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 69b6d9309a (svn r18274) -Codechange: remove the unused WDF flags 2009-11-24 17:28:29 +00:00
alberth bfd5cc456a (svn r18231) -Fix: Enable filling of matrix widget in the depot gui. 2009-11-22 18:29:52 +00:00
alberth 450e40b997 (svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize(). 2009-11-22 18:28:14 +00:00
alberth 2b6f792513 (svn r18229) -Codechange: Make fill_x, fill_y a number instead of a bool. 2009-11-22 18:26:01 +00:00
alberth bf93372ca2 (svn r18220) -Codechange: Reduce number of nested widget dynamic casts. 2009-11-22 13:22:53 +00:00
rubidium d913282e7a (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 e9b6e73333 (svn r18211) -Cleanup: remove unneeded tooltip, size and fill 'parameters' from WWT_RESIZEBOX instances 2009-11-22 11:10:17 +00:00
rubidium b4e9cb3ca3 (svn r18163) -Codechange: make the depot GUI RTL aware 2009-11-18 10:45:49 +00:00
rubidium 3180d16baf (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 d747a643cc (svn r18154) -Codechange: let the depot window better scale with bigger fonts 2009-11-17 22:58:41 +00:00
rubidium 5f2ddfbc5a (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 9e84075db5 (svn r18145) -Codechange: pass the 'proper' left and right values to DrawVehicleInDepot 2009-11-17 16:03:51 +00:00
rubidium a808623b24 (svn r18133) -Codechange: pass the 'maximum' left/right positions to Draw*Image 2009-11-16 22:25:01 +00:00
rubidium ef11ce84ee (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 626de6b128 (svn r18126) -Codechange: remove duplicate (since r18119) scrollbar capacity/matrix initialisation 2009-11-16 20:34:57 +00:00
rubidium 3d2d7af88f (svn r18086) -Codechange: remove 'widget' from WindowDesc 2009-11-15 10:26:01 +00:00
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. 2009-10-24 14:53:55 +00:00
alberth fe717d033e (svn r17833) -Codechange: Depot gui should use relative widget coordinates for clicking. 2009-10-20 21:41:44 +00:00
frosch 21fdc65ce4 (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 d1d35b95b6 (svn r17786) -Fix [FS#3265]: graphical glitches (matrices/scrollbars with wrong 'size') upon reiniting windows 2009-10-17 14:29:10 +00:00
alberth 9677e51261 (svn r17760) -Revert (r17648): _local_company is less constant than you'd expect. 2009-10-11 08:23:30 +00:00
alberth 8a21979b42 (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 4130ae0dfa (svn r17652) -Codechange: Merging/renaming the depot block-size functions. 2009-09-27 08:28:49 +00:00
alberth dd108f2399 (svn r17650) -Codechange: Checking a condition once is enough. 2009-09-26 19:26:08 +00:00
alberth f7120de1f7 (svn r17649) -Codechange: Depot gui uses pure nested widgets. 2009-09-26 19:21:20 +00:00