rubidium
56ebc2359e
(svn r20769) -Codechange: move some depot flags from p2 to p1 in CmdSendVehicleToDepot
2010-09-08 21:02:12 +00:00
rubidium
db3a6485d7
(svn r20768) -Codechange: unify send-to-depot commands
2010-09-08 18:55:58 +00:00
smatz
63b8fea69f
(svn r20753) -Feature [FS#3999]: make it possible to select vehicle to clone and vehicle to clone orders from directly from vehicle lists and depot window
2010-09-06 14:14:09 +00:00
rubidium
360d6daf34
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
2010-08-26 22:01:16 +00:00
frosch
2d5ef5e5a8
(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
ac83f92fdc
(svn r20455) -Codechange: Rename some vscroll and vscroll2 to more suitable names.
2010-08-12 08:42:37 +00:00
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.
2010-08-12 08:37:01 +00:00
frosch
341f41e347
(svn r20452) -Codechange: Remove NWidgetCore::FindScrollbar() and associate scrollbar explicitly using a NWidgetPart via SetScrollbar().
2010-08-12 06:44:45 +00:00
rubidium
8c85b4ce3d
(svn r20281) -Codechange: unify case scope closure + break coding style
2010-08-01 18:53:30 +00:00
alberth
1743c86610
(svn r20266) -Doc: Mostly typo fixes, a few doxygen-related improvements.
2010-07-31 21:02:56 +00:00
rubidium
d11de00a15
(svn r20244) -Fix: the caption of the "Available vehicle" lists was black, whereas for building those vehicles, which uses the exact same window, it was white.
2010-07-30 12:26:58 +00:00
alberth
a50578c3ad
(svn r20223) -Codechange: Replace scrolled row calculations by a call to GetScrolledRowFromWidget().
2010-07-26 13:08:48 +00:00
frosch
ca5acaa616
(svn r20172) -Codechange: Use BaseVehicleListWindow::BuildActionDropdownList() also for the normal vehicle list.
2010-07-17 14:58:35 +00:00
frosch
ea4bb0bec0
(svn r20170) -Codechange: Add BaseVehicleListWindow::GetActionDropdownSize().
2010-07-17 14:47:54 +00:00
frosch
d10c265d75
(svn r20169) -Codechange: Replace ShowGroupActionDropdown() with BaseVehicleListWindow::BuildActionDropdownList().
2010-07-17 14:36:36 +00:00
alberth
fd4d221647
(svn r19878) -Fix [FX#3851]: Default vehicle group texts were drawn one pixel too low (sbr).
2010-05-22 08:50:27 +00:00
rubidium
6003b9f211
(svn r19438) -Fix [FS#3700]: Custom group names are misaligned with default ones when using rtl languages (sbr)
2010-03-16 20:15:38 +00:00
alberth
e3b24801e2
(svn r19132) -Codechange: No need to end a line with ;;.
2010-02-14 16:31:35 +00:00
rubidium
d507788d37
(svn r19106) -Codechange: change 'const static' -> 'static const' for consistency (1 vs 2900 cases); some GCCs/ICCs are known to warn about the former case, but it's valid C++.
2010-02-12 17:31:40 +00:00
rubidium
1c468db7d5
(svn r19087) -Codechange: some typos in StringIDs
2010-02-10 20:20:18 +00:00
smatz
1ebc871ebf
(svn r18981) -Change: show empty query after creating new group (instead of 'Group nnn')
2010-02-01 18:38:28 +00:00
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
8c11679381
(svn r18342) -Fix: erroneous spaces before ;
2009-11-29 19:20:39 +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
ab417c6c06
(svn r18280) -Codechange: remove widget indices that are not needed for custom drawing/handling input
2009-11-24 21:13:36 +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
rubidium
d4d7347157
(svn r18237) -Codechange: make the group GUI big font aware
2009-11-22 19:18:51 +00:00
rubidium
6f82d2b53b
(svn r18236) -Codechange: make the group gui behave 'better aligned'
2009-11-22 18:51:58 +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
rubidium
c227abd7c3
(svn r18213) -Codechange: it's not needed to manually set the fill, (re)size and tooltip for scrollbars
2009-11-22 11:24:30 +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
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
ab85bb7080
(svn r18134) -Codechange: scale the offset of the text/vehicle in the vehicle lists based on the font and the unit numbers in the list
2009-11-17 09:09:20 +00:00
rubidium
684e63e2b5
(svn r18130) -Codechange: initial steps into making the vehicle/group lists big font and RTL aware
2009-11-16 21:28:12 +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
alberth
d2095a15e8
(svn r18066) -Codechange: Make group gui window use pure nested widgets.
2009-11-13 21:42:49 +00:00
alberth
33386b5a9c
(svn r18059) -Codechange: Move some variable declarations to their use.
2009-11-13 18:17:46 +00:00
alberth
125ca20d45
(svn r17865) -Codechange: Remove references to specific widgets and step-heights from BaseVehicleListWindow::DrawVehicleListItems().
2009-10-25 13:33:56 +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
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
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
e80d296638
(svn r17369) -Codechange: make the depot, group and industry GUIs use the scrollbar wrappers
2009-09-02 07:36:39 +00:00
smatz
1c6a2d72e2
(svn r17281) -Feature(tte): open the 'Rename group' dialog after creating new group
2009-08-25 10:44:19 +00:00
smatz
bdb0ba3feb
(svn r17275) -Codechange: remember group ID we are renaming, don't rename currently selected group
2009-08-24 21:51:02 +00:00
rubidium
d4a98be94a
(svn r17271) -Fix: SetFill sometimes used 1/0 when it should be using true/false
2009-08-23 19:03:09 +00:00
rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +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
smatz
073e163b7f
(svn r17131) -Codechange: apply coding style to some switch statements
2009-08-09 14:40:34 +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
rubidium
04ee98df52
(svn r16920) -Codechange: shuffle some strings around to simplify looking up vehicle type specific strings for a specific message
2009-07-22 20:17:07 +00:00
rubidium
45113f6d96
(svn r16887) -Fix (r16884): erroneous semicolon.
2009-07-20 13:16:15 +00:00
rubidium
7dd42bbc6a
(svn r16885) -Codechange: reduce (string) duplication with vehicle lists
2009-07-20 11:12:59 +00:00
rubidium
9943d1f650
(svn r16881) -Codechange: fix some naming inconsistencies w.r.t. strings used in the vehicle list GUIs.
2009-07-19 16:57:04 +00:00
alberth
fe9f5cbc46
(svn r16845) -Codechange: Introduction of constants for describing the bits in a WWT_MATRIX data field.
2009-07-16 16:22:23 +00:00
smatz
50624d5c0f
(svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved
2009-05-22 15:13:50 +00:00
smatz
512db5248e
(svn r16352) -Codechange: use PoolItem::GetIfValid() instead of PoolItem::IsValidID() and PoolItem::Get()
2009-05-18 16:21:28 +00:00
smatz
0c10daa243
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
2009-05-17 01:00:56 +00:00
smatz
d495dc5dbc
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
2009-05-16 23:34:14 +00:00
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
2009-05-06 15:06:57 +00:00
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.
2009-04-21 23:40:56 +00:00
rubidium
e88cb7f70f
(svn r16088) -Codechange: merge HighLightStyle and ViewportHighlightMode as they are basically the same thing
2009-04-19 10:31:30 +00:00
alberth
bbd546b792
(svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback
2009-03-29 09:49:11 +00:00
alberth
8f5f39cf09
(svn r15820) -Codechange: Some windows using nested widgets
2009-03-22 21:16:57 +00:00
rubidium
2e38d7c332
(svn r15812) -Codechange: use the new DrawString API in another set of GUIs
2009-03-22 14:39:20 +00:00
rubidium
2a422e3e95
(svn r15791) -Codechange: remove the *RightAligned part of the old text drawing API.
2009-03-21 22:22:00 +00:00
rubidium
57c5ce84eb
(svn r15724) -Codechange: some widget documentation/fixing of enumified constant names (Alberth)
2009-03-15 15:22:09 +00:00
rubidium
7f468dc142
(svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth)
2009-03-15 15:12:06 +00:00
rubidium
f3e0fd7416
(svn r15711) -Codechange: lots of whitespace cleanup/fixes
2009-03-14 18:16:29 +00:00
rubidium
c7f3daacbf
(svn r15427) -Codechange: give w->caption_color a more sensible name as it holds the owner of whatever is shown in the window
2009-02-09 02:33:10 +00:00
peter1138
bce50498fc
(svn r15312) -Codechange: Handle closing of drop down menus when clicking in a window in a single place, instead of in the OnClick event for some windows. This standardises behaviour so that clicking anywhere in a window will close its drop down menu, which happened before for some windows but not all. In addition the dubious feature of hiding a drop down menu by opening the same menu has been removed. This only caused wasted CPU cycles as a whole new list was generated and then destroyed. Breathe.
2009-02-01 22:32:07 +00:00
smatz
9021c20b5e
(svn r15299) -Cleanup: remove many redundant includes
2009-01-31 20:16:06 +00:00
rubidium
28ea38ae55
(svn r14949) -Cleanup: pointer coding style
2009-01-10 00:31:47 +00:00
frosch
eec8c04586
(svn r14925) -Fix [FS#2500]: Abort dragging of vehicles in the group window when they are deleted.
2009-01-08 21:16:19 +00:00
smatz
b00e510140
(svn r14807) -Codechange: use INVALID_TILE instead of 0 to mark invalid depots, industries, towns and waypoints
2009-01-03 16:06:58 +00:00
rubidium
e83cca7d13
(svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter.
2008-12-28 14:37:19 +00:00
rubidium
e589c7e580
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
2008-09-30 20:51:04 +00:00
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.
2008-09-30 20:39:50 +00:00
smatz
e543181b12
(svn r14334) -Feature: ability to reset name to default/automatic value (for vehicles, engines, towns, groups, stations, waypoints, managers and companies)
2008-09-15 19:02:50 +00:00
smatz
ffa39caf3d
(svn r14331) -Codechange: use an enum as additional parameter for ShowQueryString()
2008-09-15 16:29:40 +00:00
rubidium
1c5338cbce
(svn r14329) -Fix (r14306): selections in the group GUI weren't shown anymore.
2008-09-15 10:02:39 +00:00
rubidium
4ea5308d49
(svn r14306) -Codechange: unify the code to draw the vehicle list.
...
-Fix [FS#2292]: inconsistency between drawn vehicle lists in the vehicle list and group windows.
2008-09-13 10:04:36 +00:00
rubidium
ac48a45cb8
(svn r14303) -Codechange: make the vehicle list part of the group window look exactly like the vehicle list instead of some buttons being one pixel wider/smaller.
2008-09-12 21:59:34 +00:00
rubidium
f60ef76050
(svn r14302) -Codechange: simplify and make the vehicle list and group windows behave the same w.r.t. getting wider (by default) for trains than the other vehicles.
2008-09-12 21:58:36 +00:00
rubidium
3423721523
(svn r14301) -Codechange: give the vehicle list and group list the same relative size and the same absolute height for the vehicle list items.
2008-09-12 21:20:12 +00:00
rubidium
c816cc37fd
(svn r14063) -Codechange: replace some "magic" constants with enumified constants.
2008-08-13 06:05:01 +00:00
belugas
a63bcef135
(svn r13879) -Codechange: Replace numbers with Colours enum on engine, industries and group gui
2008-07-30 16:13:58 +00:00
rubidium
6898a76c5f
(svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool.
2008-07-17 20:13:01 +00:00
skidd13
ec261a6456
(svn r13587) -Codechange: make some globals members of VehicleListBase since they are used as such
...
-Cleanup: some small things referring the change
2008-06-19 19:58:30 +00:00
skidd13
d85c5f020b
(svn r13534) -Codechange: Replace the main part of VehiclesListBase sorting with GUIList function calls
2008-06-16 17:09:52 +00:00
peter1138
698a51a41e
(svn r13319) -Codechange: Remove use of imaginary horizontal scrollbar in the group vehicle list
2008-05-29 07:34:40 +00:00
smatz
33dc3165be
(svn r13280) -Fix (r13276): MSVC compilation was broken
2008-05-27 00:13:51 +00:00
skidd13
16cee252a7
(svn r13271) -Codechange: groups sorting uses GUILists Sort() now
2008-05-26 18:30:58 +00:00