Commit Graph

352 Commits (df400ef84a4fb71c4a8491393335ca57283098c9)

Author SHA1 Message Date
frosch 477a09d13e (svn r24205) -Feature [FS#5178-ish]: Show a hint in the supplies tab of station windows, if the station is affected by exclusive transport rights. 12 years ago
michi_cc aa47d6c7f2 (svn r24127) -Feature [FS#1497]: Allow closing airports for incoming aircraft. (Based on patch by cirdan) 12 years ago
rubidium bf6434abaf (svn r24023) -Fix [FS#5090]: pass cases down into the list of cargos 12 years ago
truebrain bcf00dbb8f (svn r23553) -Fix: avoid naming conflict in widget enums 13 years ago
truebrain 9266bde593 (svn r23546) -Codechange: document and rename widgets to be consistent and understandable 13 years ago
truebrain 2aa774e831 (svn r23528) -Codechange: move widget enums to widgets/NNN_type.h 13 years ago
rubidium 3d88c74389 (svn r23526) -Codechange: unify cargos vs cargoes 13 years ago
truebrain df0afdf0dc (svn r23525) -Codechange: make Window::flags4 WindowFlags instead of uint16, with only values known in WindowFlags (and move out 2 timers to their own variable)
-Codechange: rename Window::flags4 to Window::flags
-Codechange: move some non-inline functions from .hpp to .cpp
13 years ago
yexo 87e59dce5a (svn r22595) -Fix [FS#4560] (r22593): build railstation gui was broken with newgrf stations 13 years ago
yexo 1a0d25dab1 (svn r22593) -Fix [FS#4647]: don't show cargo accepted/produced in the new station window when no tiles are selected (mouse hovering a window or toolbar) 13 years ago
terkhen 5bb79b1f46 (svn r22540) -Codechange: Rename AcceptancePickup to GoodsEntryStatus. 13 years ago
frosch 5e449b8fae (svn r22429) -Add: some constants for specific palette colours used in the GUI. 13 years ago
terkhen 10caf391a1 (svn r22343) -Change: Remove pixel limiter for query strings. 13 years ago
frosch 652c9cb663 (svn r22247) -Codechange: Update comments wrt. ForceRebuild() in command-scope. 13 years ago
frosch ec9540a12a (svn r22241) -Codechange: Add additional to-be-used parameter to OnInvalidateData(). 13 years ago
frosch 77d1dcb926 (svn r22228) -Fix (r22135)[FS#4546]: Do not resort town, industry and signs list directly in OnInvalidateData(). There might be a scheduled rebuild which needs execution first. So, only set a trigger for resorting. 14 years ago
rubidium 89a135293a (svn r21864) -Fix [FS#4430]: distant-join station would build at the wrong location when having persistent building turned on and selecting a "second" location for the station tile 14 years ago
rubidium 44d1c55347 (svn r21415) -Codechange: limit station/waypoint name by amount of characters, not bytes 14 years ago
alberth f5c6fd1a25 (svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint(). 14 years ago
rubidium 30637a8340 (svn r21157) -Codechange: remove information about the text direction out of the language "list" 14 years ago
rubidium e745bd9815 (svn r21144) -Change [FS#4206]: filter stations by cargo they have a rating for instead of having cargo waiting 14 years ago
planetmaker c2a7b82a9f (svn r20997) -Fix: Size of sort buttons for order and vehicle list gui could be too small 14 years ago
rubidium e63d975d6e (svn r20785) -Fix: crash when closing the station view of oilrigs (similar to r20774) 14 years ago
rubidium f5128695c5 (svn r20772) -Codechange: use packed VehicleListIdentifiers as window numbers 14 years ago
rubidium 30f2afac9b (svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers 14 years ago
frosch 03ab158935 (svn r20579) -Change (r1579): Allow removing of buoys if they are only used by own vehicles. 14 years ago
alberth 35fec79700 (svn r20499) -Doc: Spelling fixes, and one doxygen comment addition. 14 years ago
frosch 9e538acc03 (svn r20461) -Codechange: Replace WWT_HSCROLLBAR, WWT_SCROLLBAR and WWT_SCROLL2BAR with NWID_HSCROLLBAR and NWID_VSCROLLBAR. 14 years ago
frosch 71ca58c2bb (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.
14 years ago
frosch 10339c60c0 (svn r20452) -Codechange: Remove NWidgetCore::FindScrollbar() and associate scrollbar explicitly using a NWidgetPart via SetScrollbar(). 14 years ago
frosch 4bd32799f1 (svn r20286) -Codechange: Unify end of doxygen comments. 14 years ago
frosch ed4f806f1d (svn r20283) -Codechange: Unify start of doygen comments. 14 years ago
alberth 4203e641f8 (svn r20223) -Codechange: Replace scrolled row calculations by a call to GetScrolledRowFromWidget(). 14 years ago
alberth 22b9bc5157 (svn r20043) -Codechange: Introduce vertical alignment for DrawStringMultiLine(). 14 years ago
rubidium 3e35018f97 (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 55a684efc1 (svn r19969) -Change: swap 'list of ships' and 'list of aircraft' buttons in the Station View window 14 years ago
smatz 830e40af19 (svn r19955) -Fix: close list of vehicles with given buoy/oil rig in orders when switching company 14 years ago
rubidium d2364c32ed (svn r19790) -Change: use the typed FOR_EACH_SET_BIT for CargoIDs (adf88) 14 years ago
rubidium be504a6ef0 (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 2e90f7f8b9 (svn r19670) -Codechange: Add CeilDiv() and RoundDiv() to simplify integer divisions with rounding. 14 years ago
smatz 7f531267dc (svn r19581) -Codechange: auto-raise 'All facilities/cargos' buttons in the Station list window 14 years ago
terkhen 869fac9964 (svn r19573) -Fix (r19541): Special cargos did not appear at the refit list. 14 years ago
terkhen fdc146b3c1 (svn r19540) -Feature: Sort the ratings of a station by cargo class / name. 14 years ago
alberth 6a3dbaf99a (svn r19350) -Codechange: StationRect::BeforeAddRect() returns a CommandCost. 15 years ago
alberth 8641f08df3 (svn r19129) -Fix [FS#3623] (r19122): Don't draw cargo ratings/acceptance when the window is shaded. 15 years ago
alberth 09327c2e69 (svn r19123) -Fix [FS#3617]: Resize station cargo widget when needed to display all accepted cargo types. 15 years ago
alberth 1737292d07 (svn r19122) -Codechange: Move cargo drawing to StationViewWindow::OnPaint(). 15 years ago
alberth df920582af (svn r19121) -Codechange: Introduce a variable for the height of the ratings and accepted cargo widgets. 15 years ago
rubidium 171dbb7831 (svn r19111) -Fix (r19070): the station view didn't show acceptance anymore 15 years ago
rubidium 0072503496 (svn r19087) -Codechange: some typos in StringIDs 15 years ago
rubidium 29ce905bc2 (svn r19070) -Fix [FS#3607]: the station coverage text was not RTL language aware (sbr) 15 years ago
frosch 88019e64e1 (svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick(). 15 years ago
rubidium 4d93b704d9 (svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) wrapper functions 15 years ago
rubidium 82fc28f77f (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 f348afb5aa (svn r18731) -Codechange: move the DrawStationCoverage stuff from misc_gui.cpp to station_gui.cpp 15 years ago
rubidium 3e131e2fec (svn r18718) -Codechange: make a wrapper macro for looping TileAreas 15 years ago
rubidium 02a297669a (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 91872aca48 (svn r18588) -Feature [FS#2943]: Add shading and unshading of windows. 15 years ago
alberth 5a083f183e (svn r18580) -Codechange: Use widget information only for setting scrollbar capacity. 15 years ago
alberth 07a2c21d24 (svn r18539) -Codechange: Re-use cargolist drawing in StationViewWindow::DrawAcceptedCargo() 15 years ago
alberth c38f3ce380 (svn r18410) -Codechange: Move GetCargoSprite() to CargoSpec::GetCargoIcon(). 15 years ago
alberth c0dfaec34d (svn r18333) -Fix (r18127): Station view window did not resize properly when toggling between ratings and acceptance view. 15 years ago
rubidium 293dfd7c3e (svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice. 15 years ago
rubidium 8d6e323ef8 (svn r18280) -Codechange: remove widget indices that are not needed for custom drawing/handling input 15 years ago
rubidium 14300d309c (svn r18277) -Codechange: remove unneeded widget indices for close, resize and sticky boxes and for window captions 15 years ago
rubidium 69b6d9309a (svn r18274) -Codechange: remove the unused WDF flags 15 years ago
rubidium b351de15d9 (svn r18260) -Codechange: make the company station view big font aware 15 years ago
alberth 450e40b997 (svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize(). 15 years ago
alberth 2b6f792513 (svn r18229) -Codechange: Make fill_x, fill_y a number instead of a bool. 15 years ago
rubidium c99d15bf74 (svn r18225) -Codechange: make the select station window behave better with big fonts 15 years ago
rubidium e9b6e73333 (svn r18211) -Cleanup: remove unneeded tooltip, size and fill 'parameters' from WWT_RESIZEBOX instances 15 years ago
rubidium cee67acfba (svn r18170) -Codechange: make the station view RTL aware 15 years ago
rubidium 5f2ddfbc5a (svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets 15 years ago
peter1138 f14cd93ec8 (svn r18137) -Codechange: Make station rating graphics in station list scale to the small font size. 15 years ago
peter1138 2e54ff1aa2 (svn r18127) -Codechange: Adjust station accept/rating list height by number of lines instead of pixels. 15 years ago
rubidium 626de6b128 (svn r18126) -Codechange: remove duplicate (since r18119) scrollbar capacity/matrix initialisation 15 years ago
rubidium ae799e7b1b (svn r18116) -Change: make the station list support RTL when drawing the ratings 15 years ago
rubidium 3d2d7af88f (svn r18086) -Codechange: remove 'widget' from WindowDesc 15 years ago
alberth efbdba72b3 (svn r18021) -Codechange: Have a widget for every cargo-type to eliminate searching. 15 years ago
alberth 7f1f105afa (svn r18020) -Codechange: Make the company station list window nested. 15 years ago
alberth 71c207048f (svn r18014) -Codechange: Station view window uses pure nested widgets. 15 years ago
alberth cc320dc4d0 (svn r18010) -Codechange: Split StationViewWindow::OnPaint in four functions. 15 years ago
rubidium ca0521f89f (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 2f41c0411c (svn r17850) -Codechange: remove most usage of delta on OnResize 15 years ago
rubidium 08ac51fada (svn r17813) -Codechange: unify the CargoPacket related coding style 15 years ago
rubidium e613107e02 (svn r17808) -Codechange: remove write 'access' from all of CargoPacket's variables 15 years ago
rubidium 138e7233bc (svn r17800) -Codechange: first steps into making CargoList a template 15 years ago
rubidium d1d35b95b6 (svn r17786) -Fix [FS#3265]: graphical glitches (matrices/scrollbars with wrong 'size') upon reiniting windows 15 years ago
rubidium 5f59d0c5b4 (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 d6cded5380 (svn r17693) -Cleanup: remove some unneeded includes 15 years ago
rubidium e9624fe0cc (svn r17682) -Codechange: remove erroneous space before some commas 15 years ago
rubidium 4b7e2ff704 (svn r17625) -Codechange: make a nested window of the station joiner 15 years ago
rubidium 2d03e0af5d (svn r17623) -Codechange: don't update the station's joiner scrollbar count in the drawing code 15 years ago
rubidium e8ddf001c8 (svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos 15 years ago
frosch ebd916be3d (svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability. 15 years ago
rubidium 7aa9f8e3fb (svn r17373) -Codechange: make the timetable, station and subsidy GUIs use scrollbar wrappers 15 years ago
smatz 100ae8efcc (svn r17292) -Codechange: use unified ToPercent() function to convert fract numbers to percents 15 years ago
rubidium 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
rubidium 1fe3ad3288 (svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives 15 years ago
rubidium a148a991bb (svn r17002) -Change: also support distant join for waypoints 15 years ago
rubidium 2ec12a3f58 (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 47a37b6093 (svn r16965) -Codechange: use tile area instead of sets of variables for the station joiner code. 15 years ago
rubidium 5b576e6e7a (svn r16959) -Codechange: make the station joiner a bit more aware of the difference between waypoints and stations. 15 years ago
rubidium e9bc557b2a (svn r16930) -Codechange: more StringID name unification and grouping 15 years ago
rubidium 68ead6b84f (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 e3053660c6 (svn r16886) -Codechange: unify naming of some string IDs related to string codes and group them logically 15 years ago
smatz 77d13eae61 (svn r16852) -Codechange: use FOR_ALL_CARGOSPECS for iterating over all valid CargoSpecs 15 years ago
smatz 1f29e38b83 (svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get() 15 years ago
smatz e7be1c74cf (svn r16728) -Fix (r14919): the Join station window didn't show all stations nearby in some cases 15 years ago
smatz 8343340acb (svn r16643) -Codechange: replace GetStationByTile() by Station::GetByTile() 15 years ago
smatz 871107f529 (svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index) 15 years ago
smatz 6221d74644 (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 15 years ago
rubidium 2664f2a2d9 (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 f52abe53eb (svn r16212) -Codechange: Added nested widgets for all station_gui windows. 15 years ago
alberth 58a2d5aa94 (svn r16211) -Codechange: Moving StationListWidgets out of the window class, completing StationViewWidgets. 15 years ago
alberth 99ce97b7f3 (svn r16210) -Codechange: Make panels non-overlapping in company stations window. 15 years ago
alberth 9d81a3d262 (svn r16209) -Codechange: Removed bottom panel from join station window. 15 years ago
rubidium 53887e07bb (svn r16160) -Codechange: remove the need for explicit TC_FROMSTRING for DrawString. 15 years ago
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 118a9bdaf1 (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 ae3ebe6834 (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 f16aa9f509 (svn r16025) -Fix [FS#2818]: "build separate station" in the station picker would reuse deleted stations. 15 years ago
alberth 9d2738b9c4 (svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback 15 years ago
rubidium 5c44bb6b63 (svn r15837) -Codechange: support SETX(Y) with RTL text, swap alignment for RTL text. 15 years ago
rubidium 8cba245791 (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 e75e1e62cb (svn r15813) -Codechange: remove the last remnants of the old text drawing API. 15 years ago
rubidium d837fc4d03 (svn r15797) -Codechange: make users of the old DrawStringMultiLine use the new one. 15 years ago
rubidium 69decac406 (svn r15791) -Codechange: remove the *RightAligned part of the old text drawing API. 15 years ago
rubidium 9003641095 (svn r15790) -Codechange: remove the *Centered part of the old text drawing API. 15 years ago
rubidium 45f189fdca (svn r15785) -Codechange: remove the *Truncated part of the old text drawing API. 15 years ago
smatz 8585aa71ed (svn r15726) -Codechange: unify coding style for const pointers 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
rubidium 9907742a0f (svn r15423) -Codechange: split widget related types to their own header and add a bit of type strictness. 16 years ago
rubidium 856f26e35b (svn r15413) -Fix [FS#2529/2533]: inconsistencies between station and bridge building w.r.t. tile selection and when the window should be closed. 16 years ago
rubidium ac7757324e (svn r15338) -Fix [FS#2598]: close all construction related windows whenever changing company. 16 years ago
rubidium 7da743a0dc (svn r15336) -Fix: do not use _current_company in the GUI as there are no guarantees that _current_company is the same as _local_company. 16 years ago
smatz 0d3f5e6e74 (svn r15299) -Cleanup: remove many redundant includes 16 years ago
Yexo 0e42a7bac7 (svn r15291) -Cleanup: Move the station list widgets to their class from station_gui.h
-Fix: comment for ReallocT was wrong, the memory is not zeroed.
16 years ago
frosch dab9de2e61 (svn r15072) -Fix (r14919): Distant-join search-area was determined inconsistently. 16 years ago
frosch 9ca1e15f51 (svn r15069) -Change (r14919): Make distant-join less intelligent but more transparent to the user by always showing the selection window, even if there is only one option to choose from. (PhilSophus) 16 years ago
frosch 4780c73224 (svn r15065) -Change (r14919): Allow to select a new station location by ctrl-clicking while distant-join window is open. (PhilSophus) 16 years ago
frosch 9a80c0b1de (svn r15015) -Fix (r14919): Distant-join always failed for docks. Based on patch by PhilSophus. 16 years ago
rubidium 11da45ee55 (svn r14949) -Cleanup: pointer coding style 16 years ago
rubidium c8c61e36bd (svn r14919) -Feature: distant joining of stations (Frostregen and PhilSophus) 16 years ago
rubidium 2a47aaf4a8 (svn r14822) -Change: save 'build station' settings in the config file, like drag'n'drop and and show coverage area (Rexxars) 16 years ago
rubidium b3f2f40db7 (svn r14785) -Fix [FS#2132]: vehicle list for station gets closed when station view is closed even when the vehicle list is stickied. Other vehicle lists are not deleted when their 'opening' window gets closed so do the same with the station view. 16 years ago
rubidium 87e5a8b52b (svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter. 16 years ago
smatz 419f6e099f (svn r14743) -Codechange: use INVALID_TILE to indicate station doesn't have queried facility (or station/roadstop is invalid) instead of 0 (Yexo) 16 years ago