Commit Graph

272 Commits (dd84952d1543b47dcecd4db97bbfedce4441c6f6)

Author SHA1 Message Date
frosch c18839704b (svn r20286) -Codechange: Unify end of doxygen comments. 14 years ago
frosch 5b86c79fce (svn r20283) -Codechange: Unify start of doygen comments. 14 years ago
alberth a50578c3ad (svn r20223) -Codechange: Replace scrolled row calculations by a call to GetScrolledRowFromWidget(). 14 years ago
alberth c2a871d10b (svn r20043) -Codechange: Introduce vertical alignment for DrawStringMultiLine(). 14 years ago
rubidium f5e479e5bc (svn r19997) -Codechange: Unify order of ship and plane icon in stationlist and stationsigns with the rest of the game (frosch) 14 years ago
smatz 409c4d3342 (svn r19969) -Change: swap 'list of ships' and 'list of aircraft' buttons in the Station View window 14 years ago
smatz dbe69c2350 (svn r19955) -Fix: close list of vehicles with given buoy/oil rig in orders when switching company 14 years ago
rubidium fa7c8be0b8 (svn r19790) -Change: use the typed FOR_EACH_SET_BIT for CargoIDs (adf88) 14 years ago
rubidium ee02599bbf (svn r19788) -Codechange: make FOR_EACH_SET_BIT not change the value of the passed bit variable, i.e. allow expressions as parameter 14 years ago
frosch a4413f4cf6 (svn r19670) -Codechange: Add CeilDiv() and RoundDiv() to simplify integer divisions with rounding. 14 years ago
smatz 64aadd8e33 (svn r19581) -Codechange: auto-raise 'All facilities/cargos' buttons in the Station list window 14 years ago
terkhen 1fbde179d9 (svn r19573) -Fix (r19541): Special cargos did not appear at the refit list. 14 years ago
terkhen 3a7689ae8a (svn r19540) -Feature: Sort the ratings of a station by cargo class / name. 14 years ago
alberth beb46d1a7f (svn r19350) -Codechange: StationRect::BeforeAddRect() returns a CommandCost. 15 years ago
alberth ead01e1dd3 (svn r19129) -Fix [FS#3623] (r19122): Don't draw cargo ratings/acceptance when the window is shaded. 15 years ago
alberth 0052f2667f (svn r19123) -Fix [FS#3617]: Resize station cargo widget when needed to display all accepted cargo types. 15 years ago
alberth e095cfb016 (svn r19122) -Codechange: Move cargo drawing to StationViewWindow::OnPaint(). 15 years ago
alberth 02c2b55a20 (svn r19121) -Codechange: Introduce a variable for the height of the ratings and accepted cargo widgets. 15 years ago
rubidium 39ea18dca6 (svn r19111) -Fix (r19070): the station view didn't show acceptance anymore 15 years ago
rubidium 1c468db7d5 (svn r19087) -Codechange: some typos in StringIDs 15 years ago
rubidium f8259205bd (svn r19070) -Fix [FS#3607]: the station coverage text was not RTL language aware (sbr) 15 years ago
frosch 94a5c917a5 (svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick(). 15 years ago
rubidium f618acfb7d (svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) wrapper functions 15 years ago
rubidium 9467b7c6d6 (svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header 15 years ago
rubidium 988d09b8c1 (svn r18731) -Codechange: move the DrawStationCoverage stuff from misc_gui.cpp to station_gui.cpp 15 years ago
rubidium e48416ad4e (svn r18718) -Codechange: make a wrapper macro for looping TileAreas 15 years ago
rubidium ee473d6700 (svn r18713) -Fix [FS#3476]: the join station window didn't account for scrolling, so if you did scroll the station was not joined with the selected station 15 years ago
alberth 0e9dac92d2 (svn r18588) -Feature [FS#2943]: Add shading and unshading of windows. 15 years ago
alberth f20e477a02 (svn r18580) -Codechange: Use widget information only for setting scrollbar capacity. 15 years ago
alberth be29ee40a1 (svn r18539) -Codechange: Re-use cargolist drawing in StationViewWindow::DrawAcceptedCargo() 15 years ago
alberth 466a0841a9 (svn r18410) -Codechange: Move GetCargoSprite() to CargoSpec::GetCargoIcon(). 15 years ago
alberth 94f1f51943 (svn r18333) -Fix (r18127): Station view window did not resize properly when toggling between ratings and acceptance view. 15 years ago
rubidium 45eb0be570 (svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice. 15 years ago
rubidium ab417c6c06 (svn r18280) -Codechange: remove widget indices that are not needed for custom drawing/handling input 15 years ago
rubidium 50359b2d08 (svn r18277) -Codechange: remove unneeded widget indices for close, resize and sticky boxes and for window captions 15 years ago
rubidium f8b79068e6 (svn r18274) -Codechange: remove the unused WDF flags 15 years ago
rubidium 8b67964172 (svn r18260) -Codechange: make the company station view big font aware 15 years ago
alberth 5bee09c924 (svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize(). 15 years ago
alberth 18b33fde83 (svn r18229) -Codechange: Make fill_x, fill_y a number instead of a bool. 15 years ago
rubidium e079cacf28 (svn r18225) -Codechange: make the select station window behave better with big fonts 15 years ago
rubidium ef4e936acb (svn r18211) -Cleanup: remove unneeded tooltip, size and fill 'parameters' from WWT_RESIZEBOX instances 15 years ago
rubidium 3f01fc43f3 (svn r18170) -Codechange: make the station view RTL aware 15 years ago
rubidium 8e11cd3a42 (svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets 15 years ago
peter1138 bec3e0424c (svn r18137) -Codechange: Make station rating graphics in station list scale to the small font size. 15 years ago
peter1138 0d5cc869f3 (svn r18127) -Codechange: Adjust station accept/rating list height by number of lines instead of pixels. 15 years ago
rubidium a13fd6ddce (svn r18126) -Codechange: remove duplicate (since r18119) scrollbar capacity/matrix initialisation 15 years ago
rubidium cae55e213f (svn r18116) -Change: make the station list support RTL when drawing the ratings 15 years ago
rubidium b01251092e (svn r18086) -Codechange: remove 'widget' from WindowDesc 15 years ago
alberth 71eaf2b320 (svn r18021) -Codechange: Have a widget for every cargo-type to eliminate searching. 15 years ago
alberth b4a514a1dc (svn r18020) -Codechange: Make the company station list window nested. 15 years ago
alberth aa5f72f614 (svn r18014) -Codechange: Station view window uses pure nested widgets. 15 years ago
alberth c08a37c114 (svn r18010) -Codechange: Split StationViewWindow::OnPaint in four functions. 15 years ago
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. 15 years ago
rubidium 51936e1903 (svn r17850) -Codechange: remove most usage of delta on OnResize 15 years ago
rubidium fe575367f9 (svn r17813) -Codechange: unify the CargoPacket related coding style 15 years ago
rubidium 756f813040 (svn r17808) -Codechange: remove write 'access' from all of CargoPacket's variables 15 years ago
rubidium e553983e39 (svn r17800) -Codechange: first steps into making CargoList a template 15 years ago
rubidium b72898c8a3 (svn r17786) -Fix [FS#3265]: graphical glitches (matrices/scrollbars with wrong 'size') upon reiniting windows 15 years ago
rubidium ec3a0dc064 (svn r17720) -Codechange: guard the CargoPacket variables that are cached in CargoLists so they cannot be written from outside the CargoList class (based on patch by fonsinchen) 15 years ago
rubidium 982b8ee5fc (svn r17693) -Cleanup: remove some unneeded includes 15 years ago
rubidium ed8788d581 (svn r17682) -Codechange: remove erroneous space before some commas 15 years ago
rubidium 209aa4a85f (svn r17625) -Codechange: make a nested window of the station joiner 15 years ago
rubidium a4ec7fcf8f (svn r17623) -Codechange: don't update the station's joiner scrollbar count in the drawing code 15 years ago
rubidium 310465da07 (svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos 15 years ago
frosch 0e36260337 (svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability. 15 years ago
rubidium e9e2ffade2 (svn r17373) -Codechange: make the timetable, station and subsidy GUIs use scrollbar wrappers 15 years ago
smatz a0d0206f2d (svn r17292) -Codechange: use unified ToPercent() function to convert fract numbers to percents 15 years ago
rubidium 99d46e0ad7 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
rubidium d61be2637e (svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives 15 years ago
rubidium 5fa2b6ed8a (svn r17002) -Change: also support distant join for waypoints 15 years ago
rubidium 30d9e54279 (svn r16966) -Codechange: BEGIN_TILE_LOOP and END_TILE_LOOP reworked into TILE_LOOP, which means no more duplication of parameters between BEGIN_TILE_LOOP and END_TILE_LOOP 15 years ago
rubidium 3321f45246 (svn r16965) -Codechange: use tile area instead of sets of variables for the station joiner code. 15 years ago
rubidium d827a78ab7 (svn r16959) -Codechange: make the station joiner a bit more aware of the difference between waypoints and stations. 15 years ago
rubidium 4874578e79 (svn r16930) -Codechange: more StringID name unification and grouping 15 years ago
rubidium 100cb17fa8 (svn r16909) -Fix [FS#2996]: NewGRF stations would be triggering assertions all over the place when using the more advanced station types.
-Change: make (rail) waypoints sub classes of 'base stations', make buoys waypoints and unify code between them where possible.
15 years ago
rubidium 39e6dbd5e3 (svn r16886) -Codechange: unify naming of some string IDs related to string codes and group them logically 15 years ago
smatz cb13cf2543 (svn r16852) -Codechange: use FOR_ALL_CARGOSPECS for iterating over all valid CargoSpecs 15 years ago
smatz 8718babe90 (svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get() 15 years ago
smatz a7d6ccbfb0 (svn r16728) -Fix (r14919): the Join station window didn't show all stations nearby in some cases 15 years ago
smatz f6a4d61cca (svn r16643) -Codechange: replace GetStationByTile() by Station::GetByTile() 15 years ago
smatz 0c10daa243 (svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index) 15 years ago
smatz d495dc5dbc (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 15 years ago
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
15 years ago
alberth 5801377b31 (svn r16212) -Codechange: Added nested widgets for all station_gui windows. 15 years ago
alberth 0949488c60 (svn r16211) -Codechange: Moving StationListWidgets out of the window class, completing StationViewWidgets. 15 years ago
alberth 745e920547 (svn r16210) -Codechange: Make panels non-overlapping in company stations window. 15 years ago
alberth 31822a4a0b (svn r16209) -Codechange: Removed bottom panel from join station window. 15 years ago
rubidium 650cb3694e (svn r16160) -Codechange: remove the need for explicit TC_FROMSTRING for DrawString. 15 years ago
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. 15 years ago
rubidium 7118349e8c (svn r16046) -Change: when sorting on cargo ratings only take a look at the ratings of the cargoes that are 'selected'. 15 years ago
rubidium 2def99e2be (svn r16045) -Feature [FS#597]: allow sorting stations by the lowest cargo rating instead of only by the highest cargo rating (based on the idea of KeeperOfTheSoul) 15 years ago
rubidium 20a290cefe (svn r16025) -Fix [FS#2818]: "build separate station" in the station picker would reuse deleted stations. 15 years ago
alberth bbd546b792 (svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback 15 years ago
rubidium 8d7635616d (svn r15837) -Codechange: support SETX(Y) with RTL text, swap alignment for RTL text. 15 years ago
rubidium c1e0368f19 (svn r15836) -Fix [FS#2762]: acceptance not shown in the station window (swapping top and bottom isn't a great idea) 15 years ago
rubidium 6d3745a924 (svn r15813) -Codechange: remove the last remnants of the old text drawing API. 15 years ago
rubidium dcd5ad8b19 (svn r15797) -Codechange: make users of the old DrawStringMultiLine use the new one. 15 years ago
rubidium 2a422e3e95 (svn r15791) -Codechange: remove the *RightAligned part of the old text drawing API. 15 years ago
rubidium 89d614deea (svn r15790) -Codechange: remove the *Centered part of the old text drawing API. 15 years ago
rubidium c1aabd9842 (svn r15785) -Codechange: remove the *Truncated part of the old text drawing API. 15 years ago