summaryrefslogtreecommitdiff
path: root/src/build_vehicle_gui.cpp
AgeCommit message (Collapse)Author
2009-05-16(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)smatz
2009-04-26(svn r16160) -Codechange: remove the need for explicit TC_FROMSTRING for ↵rubidium
DrawString.
2009-04-21(svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had ↵rubidium
this ID' from 'some' strings and replace the string name with something more sensible.
2009-04-21(svn r16110) -Codechange: use {CARGO} instead hardcoded cargo name (there is ↵frosch
always something duplicated :p)
2009-04-12(svn r16044) -Fix (r16042): Win compilation. (Swallow)frosch
2009-04-12(svn r16042) -Feature [FS#1941]: Allow filtering of vehicle purchase lists ↵frosch
by cargo. Based on patch by sbr.
2009-04-12(svn r16038) -Codechange: Remove BuildVehicleWindow::regenerate_list in ↵frosch
favor of the GUIList flag.
2009-03-29(svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() ↵alberth
callback
2009-03-25(svn r15850) -Codechange: replace some magic constants with the less magic ↵rubidium
line height constant
2009-03-22(svn r15820) -Codechange: Some windows using nested widgetsalberth
2009-03-22(svn r15809) -Codechange: Add name comments to build vehicle widgetsalberth
2009-03-22(svn r15807) -Codechange: let the build vehicle gui helper function pass ↵rubidium
around left and right instead of only left and assuming infinite width.
2009-03-21(svn r15785) -Codechange: remove the *Truncated part of the old text drawing ↵rubidium
API.
2009-03-21(svn r15778) -Fix [FS#2749] (r15666): when sorting on cost don't sort on the ↵rubidium
running cost (sbr)
2009-03-18(svn r15763) -Codechange/Fix: Add Engine::GetDisplayDefaultCapacity() and ↵frosch
use it everywhere, so CB 36 is also used everywhere.
2009-03-15(svn r15723) -Codechange: use a constructor for WindowDescs as that makes ↵rubidium
expanding them much easier (Alberth)
2009-03-14(svn r15711) -Codechange: lots of whitespace cleanup/fixesrubidium
2009-03-13(svn r15705) -Fix: Do not show passenger-/mail-capacity if the aircraft ↵frosch
carries only cargo.
2009-03-10(svn r15666) -Fix [FS#2689]: sorting of engines in the purchase list didn't ↵rubidium
use the same numbers as the GUI showed, e.g. articulated parts weren't taken into accound when ordering by capacity.
2009-02-27(svn r15592) -Fix: Refit-info in purchase list did only check the first ↵frosch
articulated part.
2009-02-21(svn r15541) -Revert (r15399): 'v->cargo_type' is also used in other places, ↵frosch
which cannot accept CT_INVALID. -Codechange: Add Engine::GetDefaultCargoType() and Engine::CanCarryCargo() and use them. -Fix [FS#2617]: When articulated parts have no available default cargo, use the cargo type of the first part for livery selection. -Change: To decide whether a vehicle is refittable do not test its current capacity for being zero, but always use the 'capacity property'. Note: The property is used unmodifed without calling CB 15/36. By setting it to a non-zero value and returning zero in the callback vehicles can be refitted to/from zero capacity for e.g. livery effects. Note: It is intentional that you cannot control refittability by CB 36.
2009-02-19(svn r15521) -Codechange: add helper function to get the display tractive ↵rubidium
effort of a vehicle.
2009-02-09(svn r15427) -Codechange: give w->caption_color a more sensible name as it ↵rubidium
holds the owner of whatever is shown in the window
2009-02-04(svn r15338) -Fix [FS#2598]: close all construction related windows whenever ↵rubidium
changing company.
2009-02-01(svn r15306) -Codechange: Deduplicate code by adding ↵frosch
Engine::GetDisplayMaxSpeed(), GetPower() and GetDisplayWeight(). (and using them)
2009-01-31(svn r15299) -Cleanup: remove many redundant includessmatz
2009-01-25(svn r15263) -Codechange: added Engine::GetCost() to remove some code ↵glx
duplication.
2009-01-24(svn r15261) -Add: added Engine::GetRunningCost() to remove some code ↵glx
duplication. Also stops AIs decrementing vehicle counter of first company
2009-01-23(svn r15236) -Codechange: Rename realistic_acceleration patch option to ↵peter1138
train_acceleration_model, and change from boolean to value. Don't forget to update your settings.
2009-01-10(svn r14953) -Fix (r14952): the "available aircraft" list caused a crashrubidium
2009-01-10(svn r14952) -Codechange: unify the "can vehicle go to station" testsrubidium
2009-01-03(svn r14807) -Codechange: use INVALID_TILE instead of 0 to mark invalid ↵smatz
depots, industries, towns and waypoints
2008-12-28(svn r14754) -Codechange: get rid of _cmd_text and just pass it as ↵rubidium
(optional) parameter.
2008-12-16(svn r14683) -Change: only say a engine/vehicle is refittable when it can be ↵rubidium
refitted to at least two cargo type or when it has subcargos. NOTE: it is still possible that a vehicle is marked refittable when there is nothing to refit to, e.g. when only one subcargo is available but that cannot be determined without a vehicle chain.
2008-09-30(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.rubidium
2008-09-30(svn r14421) -Codechange: rename all player variables/types to company *or* ↵rubidium
client so it is immediatelly clear which one you are working with.
2008-09-15(svn r14334) -Feature: ability to reset name to default/automatic value (for ↵smatz
vehicles, engines, towns, groups, stations, waypoints, managers and companies)
2008-09-15(svn r14331) -Codechange: use an enum as additional parameter for ↵smatz
ShowQueryString()
2008-09-03(svn r14239) -Fix [FS#2267]: The engine-purchase-list-sorter doubled ↵frosch
running-cost and halfed capacity of double-headed engines.
2008-08-24(svn r14157) -Codechange: Add and use string properties for rail types ↵peter1138
instead of relying on consecutive string IDs.
2008-08-15(svn r14078) -Codechange: Rename *VehicleInfo::base_cost to cost_factor, ↵peter1138
indicating what it actually is.
2008-08-13(svn r14063) -Codechange: replace some "magic" constants with enumified ↵rubidium
constants.
2008-07-31(svn r13887) -Codechange: Replace numbers with Colours enum on autoreplace, ↵belugas
build_vehicle, cheat, depot and dock guis. The fact that it goes alphabetically is pure coincidence.
2008-07-22(svn r13784) -Codechange: Truncate vehicle names in purchase list to width ↵peter1138
of window.
2008-07-20(svn r13760) -Codechange: With multiple NewGRF engine sets, engine IDs may ↵peter1138
not be allocated in the order expected by GRF authors, so sort by 'list position' instead of engine ID for all vehicle types.
2008-07-13(svn r13696) -Fix[GUI]: The Build button of the vehicle list is now hidden, ↵belugas
instead of just disabled. It will be only visible when called from the Depot Building Window. Less confusion, hopefully. Suggested by Eddi.
2008-07-12(svn r13694) -Change: make it more explicit that you've opened the available ↵rubidium
train/ship/etc. list instead of the one where you can actually build vehicles by setting the appropriate title for the window.
2008-05-29(svn r13325) -Codechange: split the client-side only settings from the ↵rubidium
settings stored in the savegame so there is no need to have a duplicate copy of it for new games.
2008-05-28(svn r13314) -Codechange: Switch EngineList from std::vector to GUIListpeter1138
2008-05-28(svn r13306) -Fix (r8362): Pass engine list by pointer instead of making a ↵peter1138
copy of it.