peter1138
|
6d65ce0c8b
|
(svn r13248) -Codechange: Use VehicleList for depot GUI.
|
17 years ago |
peter1138
|
cfc45e97ab
|
(svn r13225) -Fix (r13041): Missing calls to FindWindowPlacementAndResize() from lots
of windows causing 'two stage' opening effect.
|
17 years ago |
rubidium
|
162e2e074b
|
(svn r13185) -Codechange: remove everything related to the WindowProc callbacks.
|
17 years ago |
rubidium
|
df6446c07c
|
(svn r13183) -Codechange: make a window class of the VehicleViewWindow.
|
17 years ago |
rubidium
|
3ee2556585
|
(svn r13165) -Codechange: replace some RebuildXXXList/ResortXXXList+InvalidateWindowXXX with InvalidateWindowXXXData.
|
17 years ago |
rubidium
|
ad6e52080c
|
(svn r13140) -Codechange: move the gui-list-sorting out of window_gui.h so window_gui.h only needs to be included in *_gui.cpp.
|
17 years ago |
rubidium
|
a89b5721a8
|
(svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming.
|
17 years ago |
peter1138
|
e03193f9d7
|
(svn r13128) -Codechange: Make a class of the refit window
|
17 years ago |
rubidium
|
a7c7067c4f
|
(svn r13120) -Codechange: make a class of the VehicleDetailsWindow.
|
17 years ago |
rubidium
|
a7db265bb6
|
(svn r13069) -Codechange: it is no longer needed to pass a void *data pointer with the WE_CREATE message because nothing uses it anymore.
|
17 years ago |
glx
|
dacd2c5de8
|
(svn r13047) -Codechange: remove vp_d
|
17 years ago |
rubidium
|
ee3c14b344
|
(svn r13046) -Codechange: make classes of the VehicleListWindow and the VehicleGroupWindow.
|
17 years ago |
rubidium
|
89a60ce249
|
(svn r13045) -Codechange: make list_d (now GUIList) more generic and uniform.
|
17 years ago |
rubidium
|
0f7d925121
|
(svn r13024) -Codechange: do not use WE_MOUSELOOP when WE_TICK suffices, rename WE_4 to something more descriptive and correct some (completely incorrect) comments.
|
17 years ago |
rubidium
|
11d36d5e46
|
(svn r13015) -Codechange: move some 'WP' structs out of window_gui.h to the .cpp files where they are actually used.
|
17 years ago |
rubidium
|
92aac531c2
|
(svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window.
|
17 years ago |
rubidium
|
c27f3cfa62
|
(svn r12977) -Codechange: remove quite some redundant (duplicate) function declarations.
|
17 years ago |
rubidium
|
9db77e3808
|
(svn r12976) -Codechange: use w->SetDirty() instead of SetWindowDirty(w) when it's certain that w != NULL.
|
17 years ago |
rubidium
|
8796331d83
|
(svn r12975) -Codechange: replace DeleteWindow(w) with delete w.
|
17 years ago |
rubidium
|
1ce0b03bf0
|
(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.
|
17 years ago |
bjarni
|
d6c971fd9b
|
(svn r12912) -Codechange: overloaded ChangeVehicleViewWindow() so each argument can be either a Vehicle pointer or a VehicleID
|
17 years ago |
rubidium
|
51c7ba39a4
|
(svn r12789) -Codechange: rename AssignWindowViewport to InitializeWindowViewport because the viewport is now part of the window struct. Patch by Alberth.
|
17 years ago |
rubidium
|
99733b2b3e
|
(svn r12788) -Codechange: unduplicate some vehicle GUI code. Patch by Alberth.
|
17 years ago |
rubidium
|
8857f5057f
|
(svn r12766) -Add: sorting by road vehicle/train length. Based on a patch by Sir Bob.
|
17 years ago |
rubidium
|
ca1f8fbe2e
|
(svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators.
|
17 years ago |
rubidium
|
6d063c3ad6
|
(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.
|
17 years ago |
rubidium
|
22353393cd
|
(svn r12687) -Change: show when a vehicle is actually leaving the station instead of loading/unloading.
|
17 years ago |
rubidium
|
cf250390c5
|
(svn r12615) -Codechange: rename some enums related to depot orders to make it more clear that they are no loading/unloading flags. Also add more type strictness.
|
17 years ago |
rubidium
|
53d101cc99
|
(svn r12593) -Codechange: hide Order's flags in most of the code.
|
17 years ago |
rubidium
|
935b562074
|
(svn r12588) -Codechange: do not access the destination of an order directly.
|
17 years ago |
rubidium
|
3b0e3d8d30
|
(svn r12584) -Codechange: do not access the order type directly.
|
17 years ago |
rubidium
|
df1d9bd880
|
(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.
|
17 years ago |
rubidium
|
c51b81c247
|
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
|
17 years ago |
rubidium
|
b84b16cfcd
|
(svn r12488) -Codechange: split order.h into order_base.h and order_func.h.
|
17 years ago |
rubidium
|
492d132831
|
(svn r12470) -Codechange: split order related types from order.h (and openttd.h) to order_type.h.
|
17 years ago |
rubidium
|
105b95e94c
|
(svn r12441) -Feature: open the time table when pressing the order button while pressing the CTRL key. Patch by Phil Sophus.
|
17 years ago |
smatz
|
d28cc5be80
|
(svn r12324) -Fix (r6789): vehicles could be sorted in a wrong order when a vehicle name changed - cached name was not invalidated
|
17 years ago |
smatz
|
4a395562f2
|
(svn r12323) -Fix [FS#1821](r6789): vehicle sorting by name was broken, it was comparing two the same strings (when caching was not used)
|
17 years ago |
glx
|
6f55c7e0e8
|
(svn r12261) -Fix [FS#1805]: autoreplace did not update vehicle index for timetable window
|
17 years ago |
smatz
|
9bdb194b2a
|
(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
|
fe48d0be21
|
(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
|
833a00def9
|
(svn r12133) -Fix: Vehicle sorting by max speed did not work properly for trains. Instead of trying to work it out again, just use the cached values...
|
17 years ago |
maedhros
|
f95fb570ad
|
(svn r11994) -Codechange: Remove numbers from string names where the strings aren't present in TTD, since they don't correspond to either TTD's TextIDs or OpenTTD's StringIDs.
|
17 years ago |
smatz
|
dfb91c26ec
|
(svn r11916) -Codechange: use enums from VehicleViewWindowWidgets instead of constants
-Fix: refit button widget was not correctly updated
|
17 years ago |
peter1138
|
04da1e1d45
|
(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
|
1182a940cf
|
(svn r11912) -Codechange: use dropdown widget for autoreplace, station builder and (second?) vehicle list windows
|
17 years ago |
frosch
|
3ae0c5316c
|
(svn r11899) -Cleanup: Remove ShowReplaceVehicleWindow() as it is basically a duplicate of ShowReplaceGroupVehicleWindow().
|
17 years ago |
rubidium
|
736640fd87
|
(svn r11866) -Codechange: swap OFB_* and OF_* so it conceptually in sync with other cases of *B_* vs *_* like VETSB_* and VETS_*.
|
17 years ago |
peter1138
|
1fa2285327
|
(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
|
9c0c798dd8
|
(svn r11834) -Codechange: only include settings_type.h if needed.
|
17 years ago |
rubidium
|
90acd52f22
|
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
|
17 years ago |
peter1138
|
0f7392bd61
|
(svn r11822) -Codechange: Replaced fixed size custom name array. Names are now attached to their object directly and there is
no limit to the amount of names.
-Fix: NewGRF engines could not be renamed.
|
17 years ago |
rubidium
|
2fc62eab05
|
(svn r11818) -Codechange: split player.h into smaller pieces.
|
17 years ago |
rubidium
|
64d691bacc
|
(svn r11787) -Codechange: more header rewrites. This time related to viewport.h.
|
17 years ago |
rubidium
|
b09d957f31
|
(svn r11777) -Codechange: split the string header and make do not include it when it's not necessary.
|
17 years ago |
rubidium
|
71d4004a85
|
(svn r11776) -Codechange: more header splittings to reduce the dependencies.
|
17 years ago |
rubidium
|
e2f7ec1d3e
|
(svn r11775) -Codechange: move all autoreplace/autorenew functions to a single location.
|
17 years ago |
peter1138
|
890296c125
|
(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
|
722613f7f3
|
(svn r11706) -Codechange: split vehicle.h and remove another bunch of useless includes.
|
17 years ago |
rubidium
|
db73addb43
|
(svn r11702) -Codechange: move all date related stuff to date*.
|
17 years ago |
rubidium
|
81bf9f8503
|
(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
|
00c9d3ef20
|
(svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed.
|
17 years ago |
rubidium
|
1f6043458c
|
(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
|
766551b0bc
|
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
|
17 years ago |
rubidium
|
8427b8bad2
|
(svn r11675) -Codechange: split the string types from the string functions.
|
17 years ago |
rubidium
|
c201bc35f0
|
(svn r11672) -Codechange: refactor some stuff out of gui.h.
|
17 years ago |
rubidium
|
2cf7d5b2cb
|
(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
|
8bfbfd0031
|
(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 |
smatz
|
189771541e
|
(svn r11601) -Codechange: more strict break conditions for _userstring, assert when it overflows anyway (eg. code change without proper check change)
|
17 years ago |
rubidium
|
92cb0e45ca
|
(svn r11555) -Codechange: use the new members introduced in r11551.
|
17 years ago |
skidd13
|
c0a2c0c23e
|
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
|
17 years ago |
truelight
|
42180a8f4e
|
(svn r11396) -Fix: GCC 3.3 doesn't like 'static bool inline', should of course be 'static inline bool' (SmatZ)
|
17 years ago |
truelight
|
f1df43ec21
|
(svn r11382) -Codechange: renamed COUNTBITS to CountBits, as it is no longer a macro (skidd13)
|
17 years ago |
belugas
|
e2c0f1faf7
|
(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 |
bjarni
|
5c3b19ec89
|
(svn r11348) -Fix (r11049): [OSX] killed a warning (don't ask why only OSX showed this one)
|
17 years ago |
belugas
|
202b4de279
|
(svn r11304) -Feature: Control-Clicking the Center Main View button on the vehicle window allows the main viewport to follow the chosen vehicle.(stevenh)
|
17 years ago |
rubidium
|
a28b307c95
|
(svn r11173) -Codechange: rename some callback enums so they are more uniform.
|
17 years ago |
glx
|
ccf13f3ccc
|
(svn r11088) -Fix (r11063, r11067): MSVC warning C4804: '>' : unsafe use of type 'bool' in operation
|
17 years ago |
rubidium
|
1f1ce4ac5b
|
(svn r11067) -Codechange: also make it possible to use the advanced vehicle list for other players. Patch by SmatZ.
|
17 years ago |
rubidium
|
305bdb70fd
|
(svn r11060) -Codechange: replace some magic numbers with the right enumified constants.
|
17 years ago |
rubidium
|
07c67183bd
|
(svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
|
17 years ago |
rubidium
|
6f76bc2449
|
(svn r11031) -Codechange: reduce the amount of duplication of bit counting functions. Based on patches by skidd13, SmatZ and Belugas.
|
17 years ago |
rubidium
|
235ad4ab6b
|
(svn r11003) -Codechange: replace Vehicle->next to Vehicle->Next() and Vehicle->SetNext() so we can trap instances that change a next pointer and (in the future) update the first/previous pointers based on that.
|
17 years ago |
rubidium
|
c2dcccae16
|
(svn r11001) -Codechange: unify the way to determine whether a vehicle is in a depot.
|
17 years ago |
rubidium
|
a6a9968d16
|
(svn r10997) -Codechange: unify the vehicle view window. Patch by PhilSophus.
|
17 years ago |
rubidium
|
13ab17bca8
|
(svn r10704) -Codechange: provide an infrastructure to have resizable windows that are smaller than the default window size.
|
17 years ago |
peter1138
|
b60434eb0d
|
(svn r10337) -Fix [FS#880]: Autoreplace is only valid for the standard vehicle list, not station or shared order lists.
|
18 years ago |
peter1138
|
8ee9e8bf1e
|
(svn r10323) -Codechange: reference company name, number and player (president) name
by index
|
18 years ago |
peter1138
|
3878c55f34
|
(svn r10314) -Codechange: Refer to vehicle names by index
|
18 years ago |
rubidium
|
d0fa4eb9de
|
(svn r10258) -Codechange: as we are now using int64 all over the place, it's better to use int64 variables in the string generating too instead of packing them into two int32s.
-Fix: some displays of money were wrong.
|
18 years ago |
rubidium
|
1b27095c83
|
(svn r10247) -Fix (r10210): *always* call SetDParamMoney when you want to place money in some string.
|
18 years ago |
rubidium
|
0d8e82b7d7
|
(svn r10246) -Fix (r10297): some forgotten money conversions and truncation issues. Thanks to benc for providing the patch.
|
18 years ago |
rubidium
|
773a7c9cb6
|
(svn r10205) -Codechange: refactor returning of cost, so it can be more easily modified.
|
18 years ago |
rubidium
|
82e79b847e
|
(svn r10200) -Codechange: add "shortcut" for !CmdFailed (CmdSucceeded).
|
18 years ago |
rubidium
|
3ccc83e640
|
(svn r10197) -Codechange: replace int32 with CommandCost where appropriate.
|
18 years ago |
rubidium
|
8f0f090c51
|
(svn r9874) -Feature: advanced vehicle lists a.k.a. group interface. Now you can make groups of vehicles and perform all kinds of tasks on that given group. Original code by nycom and graphics by skidd13.
|
18 years ago |
rubidium
|
c8d05162c2
|
(svn r9869) -Codechange: replace some bytes with VehicleType, i.e. more type strictness.
|
18 years ago |
rubidium
|
08be68e0b4
|
(svn r9841) -Codechange: add a little more type strictness to the vehicle types.
|
18 years ago |
rubidium
|
2ce514284c
|
(svn r9673) -Cleanup: remove spaces before tabs and replace non-indenting tabs with spaces.
|
18 years ago |
rubidium
|
7577954ced
|
(svn r9672) -Cleanup: lots of coding style fixes around operands.
|
18 years ago |