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.
|
15 years ago |
rubidium
|
329cabab4f
|
(svn r16088) -Codechange: merge HighLightStyle and ViewportHighlightMode as they are basically the same thing
|
15 years ago |
alberth
|
9d2738b9c4
|
(svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback
|
15 years ago |
alberth
|
6567a29e18
|
(svn r15820) -Codechange: Some windows using nested widgets
|
16 years ago |
rubidium
|
9038733f1a
|
(svn r15812) -Codechange: use the new DrawString API in another set of GUIs
|
16 years ago |
rubidium
|
69decac406
|
(svn r15791) -Codechange: remove the *RightAligned part of the old text drawing API.
|
16 years ago |
rubidium
|
4f8eeca437
|
(svn r15724) -Codechange: some widget documentation/fixing of enumified constant names (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
|
9d018723b7
|
(svn r15711) -Codechange: lots of whitespace cleanup/fixes
|
16 years ago |
rubidium
|
90e2465d7d
|
(svn r15427) -Codechange: give w->caption_color a more sensible name as it holds the owner of whatever is shown in the window
|
16 years ago |
peter1138
|
aad67b5736
|
(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.
|
16 years ago |
smatz
|
0d3f5e6e74
|
(svn r15299) -Cleanup: remove many redundant includes
|
16 years ago |
rubidium
|
11da45ee55
|
(svn r14949) -Cleanup: pointer coding style
|
16 years ago |
frosch
|
b522f73ba8
|
(svn r14925) -Fix [FS#2500]: Abort dragging of vehicles in the group window when they are deleted.
|
16 years ago |
smatz
|
254e19da91
|
(svn r14807) -Codechange: use INVALID_TILE instead of 0 to mark invalid depots, industries, towns and waypoints
|
16 years ago |
rubidium
|
87e5a8b52b
|
(svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter.
|
16 years ago |
rubidium
|
b650a86e58
|
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
|
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 |
smatz
|
1266b1a73f
|
(svn r14334) -Feature: ability to reset name to default/automatic value (for vehicles, engines, towns, groups, stations, waypoints, managers and companies)
|
16 years ago |
smatz
|
606f4defdc
|
(svn r14331) -Codechange: use an enum as additional parameter for ShowQueryString()
|
16 years ago |
rubidium
|
1ce4e5721b
|
(svn r14329) -Fix (r14306): selections in the group GUI weren't shown anymore.
|
16 years ago |
rubidium
|
fc62d736f7
|
(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.
|
16 years ago |
rubidium
|
3b4d15d35b
|
(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.
|
16 years ago |
rubidium
|
3384638e36
|
(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.
|
16 years ago |
rubidium
|
560e5560f1
|
(svn r14301) -Codechange: give the vehicle list and group list the same relative size and the same absolute height for the vehicle list items.
|
16 years ago |
rubidium
|
97c184f8f8
|
(svn r14063) -Codechange: replace some "magic" constants with enumified constants.
|
16 years ago |
belugas
|
4cc5da9409
|
(svn r13879) -Codechange: Replace numbers with Colours enum on engine, industries and group gui
|
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 |
skidd13
|
32c2041f89
|
(svn r13587) -Codechange: make some globals members of VehicleListBase since they are used as such
-Cleanup: some small things referring the change
|
16 years ago |
skidd13
|
0a19f738bc
|
(svn r13534) -Codechange: Replace the main part of VehiclesListBase sorting with GUIList function calls
|
16 years ago |
peter1138
|
8ea996e246
|
(svn r13319) -Codechange: Remove use of imaginary horizontal scrollbar in the group vehicle list
|
16 years ago |
smatz
|
e424367938
|
(svn r13280) -Fix (r13276): MSVC compilation was broken
|
16 years ago |
skidd13
|
0972b3dd15
|
(svn r13271) -Codechange: groups sorting uses GUILists Sort() now
|
16 years ago |
peter1138
|
4c69d11f5e
|
(svn r13270) -Codechange: There is no need to clear lists in the window constructor
|
16 years ago |
peter1138
|
02b5ffa13f
|
(svn r13266) -Codechange: Use SmallVector in GUIList
|
16 years ago |
rubidium
|
27c38052b7
|
(svn r13185) -Codechange: remove everything related to the WindowProc callbacks.
|
16 years ago |
rubidium
|
9defec7876
|
(svn r13165) -Codechange: replace some RebuildXXXList/ResortXXXList+InvalidateWindowXXX with InvalidateWindowXXXData.
|
16 years ago |
rubidium
|
8b54212900
|
(svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming.
|
16 years ago |
rubidium
|
cf91f6bf3e
|
(svn r13078) -Fix: group gui used the vehicle type before it was actually set.
|
16 years ago |
rubidium
|
dddfaaac7d
|
(svn r13069) -Codechange: it is no longer needed to pass a void *data pointer with the WE_CREATE message because nothing uses it anymore.
|
16 years ago |
rubidium
|
c47926311b
|
(svn r13046) -Codechange: make classes of the VehicleListWindow and the VehicleGroupWindow.
|
16 years ago |
rubidium
|
75e3792aa3
|
(svn r13045) -Codechange: make list_d (now GUIList) more generic and uniform.
|
16 years ago |
rubidium
|
23fc96c3e8
|
(svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window.
|
16 years ago |
rubidium
|
3d5567ccf7
|
(svn r12987) -Codechange: split viewport and tile selection.
|
16 years ago |
rubidium
|
9bf519f26b
|
(svn r12976) -Codechange: use w->SetDirty() instead of SetWindowDirty(w) when it's certain that w != NULL.
|
16 years ago |
rubidium
|
d03994098b
|
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
|
16 years ago |
rubidium
|
31411d4755
|
(svn r12766) -Add: sorting by road vehicle/train length. Based on a patch by Sir Bob.
|
16 years ago |
rubidium
|
acafc26426
|
(svn r12762) -Fix: tabs after the first non-tab character are generally not okay (or lines starting with a space and then tabs).
|
16 years ago |
rubidium
|
02cdf01507
|
(svn r12754) -Codechange: split depot.h into depot_map.h, depot_func.h and depot_base.h and remove quite a lot of unneeded (before this) includes of depot.h.
|
16 years ago |
smatz
|
b2e4adc2b8
|
(svn r12576) -Feature(tte) [FS#337]: highlight vehicle chain when dragging in the group and depot GUI if appropriate
|
16 years ago |
rubidium
|
ef2be7d0fc
|
(svn r12490) -Codechange: rename engine.h to engine_func.h and remove unneeded inclusions of engine.h and/or replace them with engine_type.h.
|
16 years ago |
rubidium
|
878489e38d
|
(svn r12469) -Codechange: split type related stuff from group.h (and openttd.h) to group_type.h.
|
16 years ago |
peter1138
|
e27de79990
|
(svn r12374) -Fix (r11892): Don't close a dropmenu when clicking on a dropdown widget
|
17 years ago |
smatz
|
a190606f2e
|
(svn r12197) -Fix [FS#1788](r12134): show correct last year profit when the train had negative income
-Codechange: use GetDisplayProfitThisYear() to convert vehicle profit to readable form
|
17 years ago |
smatz
|
291931bf50
|
(svn r12166) -Fix [FS#337]: when drag&drop mode was cancelled by keyboard input, depot/group window wasn't updated (original patch by GrimRC)
|
17 years ago |
smatz
|
a0ddc43e92
|
(svn r12134) -Change: count the number of ticks a vehicle was running this day to calculate running cost
-Fix [FS#1739]: vehicle profit is now counted with 8bit fract, so it is now shown properly in the vehicle details window
|
17 years ago |
peter1138
|
68707808c0
|
(svn r11915) -Codechange: Add a function to draw a sort button's up/down arrow. Arrows are now drawn in a consistent position based on the widget, instead of randomly positioned by pixel.
|
17 years ago |
peter1138
|
d80e04d6f6
|
(svn r11904) -Codechange: use dropdown widget in 3 more windows, build vehicle, group vehicle list and station list.
|
17 years ago |
peter1138
|
f788298209
|
(svn r11892) -Fix (r11879): View switched from ungrouped to all vehicles as ungrouped is not technically a valid group, and ensure dropdown is removed
on any click in the window.
|
17 years ago |
peter1138
|
330ec8bdd6
|
(svn r11880) -Codechange: Generate vehicle group action dropdown dynamically, and assign an enum for the function return codes.
|
17 years ago |
peter1138
|
abac83795d
|
(svn r11879) -Fix: Only update group action drop down list when clicking on the dropdown text/button. Other times is not needed and caused a double free.
|
17 years ago |
peter1138
|
019ffe29b8
|
(svn r11878) -Fix: Crash in MP in vehicle group window if the currently selected group is deleted by another player.
|
17 years ago |
peter1138
|
e4c05f8d78
|
(svn r11848) -Codechange: New class-based drop down list functionality. Lists are now dynamically generated, and can include parameters, or be extended however needed.
|
17 years ago |
rubidium
|
d4e6a6bf57
|
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
|
17 years ago |
rubidium
|
ac528411df
|
(svn r11818) -Codechange: split player.h into smaller pieces.
|
17 years ago |
rubidium
|
6c954cad5f
|
(svn r11801) -Codechange: remove some unneeded includes from some header files.
|
17 years ago |
rubidium
|
0e517fe023
|
(svn r11787) -Codechange: more header rewrites. This time related to viewport.h.
|
17 years ago |
rubidium
|
a3ccdcea36
|
(svn r11777) -Codechange: split the string header and make do not include it when it's not necessary.
|
17 years ago |
rubidium
|
a8a3a7e3f2
|
(svn r11775) -Codechange: move all autoreplace/autorenew functions to a single location.
|
17 years ago |
peter1138
|
fa83291a76
|
(svn r11742) -Codechange [FS#1319]: Run window tick events when paused, so that news pop-ups and the about window still progress. For other windows the events are ignored when paused.
|
17 years ago |
rubidium
|
384503e7d3
|
(svn r11706) -Codechange: split vehicle.h and remove another bunch of useless includes.
|
17 years ago |
rubidium
|
b9046c97fb
|
(svn r11702) -Codechange: move all date related stuff to date*.
|
17 years ago |
rubidium
|
429521a7d1
|
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
|
17 years ago |
rubidium
|
bf98e25e43
|
(svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed.
|
17 years ago |
rubidium
|
8f0e68285b
|
(svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type.
|
17 years ago |
rubidium
|
9e9cfe6e59
|
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
|
17 years ago |
rubidium
|
433a9f3c09
|
(svn r11675) -Codechange: split the string types from the string functions.
|
17 years ago |
smatz
|
30c0d6da99
|
(svn r11671) -Fix: sometimes a vehicle was selected in the vehicle list when it was opened
|
17 years ago |
rubidium
|
d582aea639
|
(svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
|
17 years ago |
rubidium
|
8896bea306
|
(svn r11667) -Codechange: split window.h into a header that defines some 'global' window related types, on that defined 'global' window functions and one that defines functions and types only used by *_gui.cpps.
|
17 years ago |
glx
|
b47bce651e
|
(svn r11600) -Cleanup: remove extra out-of-memory checks, since it's now done in *allocT functions.
|
17 years ago |
glx
|
164d0a4710
|
(svn r11561) -Fix [FS#1504] (r11463): group list was not updated when removing the last group
|
17 years ago |
rubidium
|
527b72749d
|
(svn r11555) -Codechange: use the new members introduced in r11551.
|
17 years ago |
rubidium
|
e815dae3c6
|
(svn r11478) -Fix: two small layout issues with the vehicle grouping GUI.
|
17 years ago |
rubidium
|
dc81ea6454
|
(svn r11463) -Fix: some OSes seem not to handle allocating 0 bytes in the same manner as others do.
|
17 years ago |
rubidium
|
70c7a44a4d
|
(svn r11441) -Fix [FS#1443]: manage list dropdown menu did not "disappear" when the all vehicles are removed from the "current" group.
|
17 years ago |
rubidium
|
dace4686c0
|
(svn r11440) -Codechange: replace magic numbers with enumified WindowHighlightMode constants. Patch by SmatZ.
|
17 years ago |
belugas
|
56e6282f2f
|
(svn r11374) -Codechange: Give meaning to the magical number that specifies the color of the text in a DrawString call.
Patch heavily based on BiBB's work (FS#1383)
|
17 years ago |
rubidium
|
efea7622ac
|
(svn r11067) -Codechange: also make it possible to use the advanced vehicle list for other players. Patch by SmatZ.
|
17 years ago |
rubidium
|
a407d53d1b
|
(svn r11001) -Codechange: unify the way to determine whether a vehicle is in a depot.
|
17 years ago |
rubidium
|
5d628e6135
|
(svn r10997) -Codechange: unify the vehicle view window. Patch by PhilSophus.
|
17 years ago |
rubidium
|
c46e445e69
|
(svn r10820) -Codechange: make negative currencies red and restore the colour from before the currency was printed; this removes the need to make two strings for printing currencies (one for positive currencies and one for negative currencies).
-Fix [FS#1036]: do not use green for currencies as it is practically unreadable on CRT monitors.
|
17 years ago |
rubidium
|
cb9d0c69d1
|
(svn r10780) -Fix: assertion when opening the advanced vehicle list with the shortcut when being a spectator.
|
17 years ago |
rubidium
|
b15c0efaa9
|
(svn r10756) -Codechange: use vehicle->IsValid in favour of IsValidVehicle(vehicle).
|
17 years ago |
rubidium
|
1c4b953f06
|
(svn r10710) -Codechange: allow automatic downsizing of the group window. Same as idea as for the previous commits, i.e. you could already do so but the button would be out of reach.
|
17 years ago |
rubidium
|
c03cb2c8db
|
(svn r10704) -Codechange: provide an infrastructure to have resizable windows that are smaller than the default window size.
|
17 years ago |
rubidium
|
7aec26887c
|
(svn r10567) -Add [FS#915]: a "group" with ungrouped vehicles. Patch by Matthias Wolf.
|
17 years ago |
rubidium
|
83a880c882
|
(svn r10408) -Codechange: make GetImage a class method of Vehicle instead of Get(Aircraft|RoadVeh|Ship|Train)Image.
|
17 years ago |
peter1138
|
eb6594caa8
|
(svn r10323) -Codechange: reference company name, number and player (president) name
by index
|
17 years ago |
peter1138
|
74e34ee729
|
(svn r10316) -Codechange: (consistently) use index to refer to group names. Also the group string_id is irrelevant unless it is a custom name, so don't 'waste' a savegame string id.
|
17 years ago |