Commit Graph

280 Commits

Author SHA1 Message Date
rubidium
035d0ef16b (svn r20187) -Codechange: move _tileh_to_sprite into a function in a more logical place and with a more descriptive name 2010-07-19 17:00:54 +00:00
terkhen
086a424b7a (svn r20119) -Add: Tooltips can be removed if the user stops hovering the mouse. 2010-07-11 10:55:57 +00:00
alberth
c2a871d10b (svn r20043) -Codechange: Introduce vertical alignment for DrawStringMultiLine(). 2010-07-02 13:53:05 +00:00
frosch
58d6367efb (svn r19942) -Fix [FS#3871](r19816): Vertical dragging of rail was broken. 2010-06-07 19:43:40 +00:00
frosch
39e941a414 (svn r19911) -Codechange: Simplify text drawing by eliminating global variables and side effects. This also fixes the 'colour' parameter of DrawStringMultiLine(). 2010-05-30 15:32:37 +00:00
alberth
29fd6ce0e4 (svn r19909) -Doc: Typo fixes, small doxygen improvements. 2010-05-30 13:05:36 +00:00
alberth
ee390ab713 (svn r19905) -Codechange: Use EventState for mouse handling routines. 2010-05-30 12:15:28 +00:00
smatz
d012953528 (svn r19870) -Codechange: silence some of GCC 3.3 warnings 2010-05-21 05:42:41 +00:00
rubidium
ec3c6484a9 (svn r19817) -Fix: MSVC compile warnings 2010-05-13 12:42:56 +00:00
rubidium
f2d86acbd9 (svn r19816) -Codechange: use static const uint for the unnamed 'tile consts' enum as well 2010-05-13 11:19:30 +00:00
alberth
14d545e902 (svn r19767) -Fix [FS#3808]: Height in smallmap was different from measured heights (ChillCore). 2010-05-07 20:39:00 +00:00
alberth
1127fd1123 (svn r19765) -Codechange: Apply a bit of code style and a bit of comment shuffling to CalcHeightdiff. 2010-05-07 20:20:03 +00:00
frosch
43d4022362 (svn r19745) -Fix: The GUI is controlled by _local_company, not _current_company. 2010-05-01 14:20:56 +00:00
smatz
691261674a (svn r19714) -Feature: ctrl+click on a vehicle to start/stop it 2010-04-24 20:55:51 +00:00
frosch
a4413f4cf6 (svn r19670) -Codechange: Add CeilDiv() and RoundDiv() to simplify integer divisions with rounding. 2010-04-18 14:56:05 +00:00
smatz
258b128a56 (svn r19614) -Codechange: "it's" => "its" where appropriate 2010-04-12 14:12:47 +00:00
rubidium
6c1bebfa5d (svn r19005) -Codechange: make animated cursors have a bit set instead of using negative numbers that are passed as uints, then cast again to be compared as ints before being inverted to be actually used. Also fixes a couple of 'integer conversion resulted in truncation' warnings ICC spewed. 2010-02-04 15:42:38 +00:00
terkhen
deac92cdd4 (svn r18984) -Add: Viewport place methods for dragging a line with limited size. 2010-02-01 23:13:15 +00:00
rubidium
7127338414 (svn r18872) -Codechange: introduce PaletteID and use it 2010-01-21 01:38:13 +00:00
rubidium
9467b7c6d6 (svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header 2010-01-15 16:41:15 +00:00
frosch
bf3fa7522b (svn r18702) -Fix [FS#3467]: Enable DrawGroundSpriteAt() to deal with foundations as DrawGroundSprite() does, and use this for drawing one-way-road-signs and clear-land-fences. 2010-01-03 20:55:00 +00:00
rubidium
3de085a143 (svn r18683) -Fix: it's not an other 2010-01-01 18:45:40 +00:00
smatz
51b5b98632 (svn r18614) -Fix [FS#3412](r18602): too many signs were drawn, causing slowdowns 2009-12-23 17:59:34 +00:00
rubidium
dc58b1dfee (svn r18602) -Codechange: unify the viewport sign and text effect drawing
-Fix [FS#3394]: signs could occasionally glitch
2009-12-22 12:50:41 +00:00
rubidium
a32968e17e (svn r18351) -Fix [FS#3333]: endianness issue with saving the zoom level 2009-11-30 11:29:52 +00:00
rubidium
506b3abdd6 (svn r18343) -Fix [FS#3336] (r18243): dark blue signs would be drawn transparent 2009-11-29 19:27:53 +00:00
frosch
7a881d5aa2 (svn r18246) -Codechange: Make signs and station/town names big font aware. 2009-11-22 20:56:39 +00:00
frosch
496e647ad2 (svn r18245) -Codechange: Deduplicate code wrt. clicking on signs and station/town names. 2009-11-22 20:38:06 +00:00
frosch
7eb257fbdf (svn r18243) -Codechange: Deduplicate code wrt. drawing signs and station/town names. 2009-11-22 19:53:49 +00:00
rubidium
318c2fad7c (svn r17963) -Codechange: some documentation style 2009-11-03 17:30:08 +00:00
rubidium
982b8ee5fc (svn r17693) -Cleanup: remove some unneeded includes 2009-10-04 17:16:41 +00:00
rubidium
ed8788d581 (svn r17682) -Codechange: remove erroneous space before some commas 2009-10-02 15:13:15 +00:00
frosch
0e36260337 (svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability. 2009-09-13 19:15:59 +00:00
rubidium
da2008ae23 (svn r17506) -Fix [FS#3191]: signs partly drawn out of the rectangle in 4/8x zoom out. 2009-09-11 22:21:54 +00:00
rubidium
99d46e0ad7 (svn r17248) -Fix: add GPL license notice where appropriate 2009-08-21 20:21:05 +00:00
alberth
0cc8cbd40d (svn r17171) -Doc: Additions and corrections of various doxygen strings. 2009-08-14 18:41:03 +00:00
rubidium
d61be2637e (svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives 2009-08-05 17:59:21 +00:00
frosch
a3384346c8 (svn r16984) -Codechange: Document and assertify (Start|End)SpriteCombine. 2009-07-29 20:27:24 +00:00
alberth
9caa2e941e (svn r16960) -Doc: Added some viewport and vehicle type doxygen strings. 2009-07-26 12:49:26 +00:00
rubidium
636acc3d7c (svn r16950) -Codechange: unduplicate waypoint + station sign drawing 2009-07-25 10:56:36 +00:00
rubidium
37cd0ef443 (svn r16949) -Codechange: unify the way the DisplayOption enums are written 2009-07-25 10:54:42 +00:00
rubidium
def31de3c1 (svn r16948) -Codechange: some code reductions and usage of wrapper functions 2009-07-25 10:39:58 +00:00
rubidium
7b07e93b89 (svn r16934) -Codechange: introduce a simple helper function to check whether a station is pending deletion or not 2009-07-24 07:38:10 +00:00
rubidium
6435dc89fe (svn r16912) -Codechange: split waypoint.h in waypoint_base.h and waypoint_func.h 2009-07-22 10:18:19 +00:00
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.
2009-07-22 08:59:57 +00:00
rubidium
5a38d8e007 (svn r16850) -Codechange: unify some naming of variables between waypoints and stations. 2009-07-16 20:15:28 +00:00
rubidium
873adde908 (svn r16825) -Codechange: unify dirtying when updating the viewport signs. 2009-07-13 23:15:13 +00:00
rubidium
770ad0c022 (svn r16765) -Codechange: give ViewportSign's width_1 and width_2 more self explaining names 2009-07-08 08:50:20 +00:00
rubidium
bb78e5bb14 (svn r16764) -Codechange: unify the way viewport signs are marked dirty 2009-07-08 08:30:35 +00:00
rubidium
4989b4afb9 (svn r16761) -Codechange: make UpdateViewportSignPos(ition) a class function of ViewportSign 2009-07-07 16:51:20 +00:00
frosch
6d54a1939e (svn r16536) -Fix (r16535): W != S 2009-06-08 15:44:11 +00:00
frosch
28f8c8b493 (svn r16535) -Fix (r16146): In one case a too small portion of the screen was marked dirty, when (un-)drawing selections. 2009-06-08 15:42:35 +00:00
frosch
69107b00cc (svn r16528) -Fix [FS#2959]: Draw PBS reservation as groundsprite resp. childsprite of foundation/bridgehead. 2009-06-07 13:25:21 +00:00
smatz
d495dc5dbc (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 2009-05-16 23:34:14 +00:00
smatz
88b8ac8ba7 (svn r16155) -Codechange: remove MarkTileDirty, use MarkTileDirtyByTile instead 2009-04-26 10:21:50 +00:00
smatz
3869fb798c (svn r16146) -Codechange: use faster algorithm in SetSelectionTilesDirty(). Up to 1000 times faster when large area is selected 2009-04-25 22:04:13 +00:00
rubidium
502a496870 (svn r16136) -Fix (r16095)[FS#2858]: sometimes autorail wouldn't work; seems to be primarily for OSX users though 2009-04-24 17:23:32 +00:00
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. 2009-04-21 23:40:56 +00:00
rubidium
4caeb3e2b4 (svn r16095) -Change/Feature-ish: make the first 4 rail building tools behave more like autorail 2009-04-19 21:26:06 +00:00
rubidium
e88cb7f70f (svn r16088) -Codechange: merge HighLightStyle and ViewportHighlightMode as they are basically the same thing 2009-04-19 10:31:30 +00:00
rubidium
5f98da2ece (svn r16086) -Codechange: magic numbers substitutes by enums and some type safety 2009-04-18 21:10:36 +00:00
rubidium
e2dfa4022e (svn r15908) -Fix: off-by-one in viewport strings/flags; left + width != right 2009-04-01 02:51:37 +00:00
rubidium
927c293bb1 (svn r15824) -Fix: determine the actual length of the strings to draw in the viewport 2009-03-22 23:54:36 +00:00
rubidium
06dda194e5 (svn r15804) -Fix (r15796): viewport strings weren't properly 'rendered'.
-Codechange: use the new string drawing API for the viewport.
2009-03-22 09:43:00 +00:00
smatz
d28895c88b (svn r15725) -Fix: centering on a vehicle didn't respect its z coordinate 2009-03-15 15:25:18 +00:00
rubidium
c3e87f345d (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 2009-03-15 00:32:18 +00:00
rubidium
f3e0fd7416 (svn r15711) -Codechange: lots of whitespace cleanup/fixes 2009-03-14 18:16:29 +00:00
yexo
9352acf271 (svn r15593) -Change: the background of the the waypoint sign is now in the company color. 2009-02-27 22:26:06 +00:00
rubidium
89e1afdaa0 (svn r15428) -Codechange: consistently use colour instead of having both color and colour. 2009-02-09 02:57:15 +00:00
rubidium
a7693c6059 (svn r15425) -Codechange: some color->colour changes and type safety. 2009-02-09 02:09:47 +00:00
rubidium
412f93b877 (svn r15413) -Fix [FS#2529/2533]: inconsistencies between station and bridge building w.r.t. tile selection and when the window should be closed. 2009-02-08 15:45:34 +00:00
smatz
9021c20b5e (svn r15299) -Cleanup: remove many redundant includes 2009-01-31 20:16:06 +00:00
Yexo
a7ff5d4aae (svn r15199) -Fix (r15190): The south point of the south-most tile wasn't highlighted during terraforming. 2009-01-21 22:35:07 +00:00
Yexo
e3c69b7c4e (svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map. 2009-01-21 02:31:55 +00:00
Yexo
bc5c4a2ae2 (svn r15151) -Fix: tile 0 can now be highlighted as error tile 2009-01-19 15:06:11 +00:00
Yexo
27507f91be (svn r15150) -Fix: Don't highlight tiles outside the visible map. 2009-01-19 13:50:56 +00:00
frosch
7014833641 (svn r15065) -Change (r14919): Allow to select a new station location by ctrl-clicking while distant-join window is open. (PhilSophus) 2009-01-13 17:28:11 +00:00
rubidium
28ea38ae55 (svn r14949) -Cleanup: pointer coding style 2009-01-10 00:31:47 +00:00
rubidium
66876e890f (svn r14947) -Fix [FS#2519]: vehicle following did not update the location from where to smooth scroll, thus any new viewport center would smooth scroll from the location where you were just before you started following the vehicle 2009-01-09 23:30:02 +00:00
rubidium
c0e7434f38 (svn r14944) -Cleanup: add spaces around some operators 2009-01-09 22:56:28 +00:00
rubidium
7a5798695d (svn r14919) -Feature: distant joining of stations (Frostregen and PhilSophus) 2009-01-08 16:35:45 +00:00
rubidium
7b4fba0f89 (svn r14905) -Fix (r14899): in some corner cases already freed memory could be read. 2009-01-07 18:59:46 +00:00
rubidium
567b262901 (svn r14899) -Feature: remove the window limit, but leave a configurable limit on the number of non-sticky non-vital windows.
-Fix [FS#2499]: crashes/misbehaviours when (almost) all windows are stickied.
2009-01-07 16:11:27 +00:00
smatz
a1d3c90af9 (svn r14884) -Codechange: simplify code responsible for opening vehicle view windows 2009-01-07 02:03:07 +00:00
rubidium
aa6c7e8574 (svn r14880) -Codechange: make it clear which way the FOR_ALL_WINDOWS goes (from back to front or vice versa) and make it iterate over the Window* instead of Window**. 2009-01-06 22:37:42 +00:00
smatz
91233ea596 (svn r14828) -Codechange: move most of save/load-specific code to separate files 2009-01-04 15:32:25 +00:00
smatz
7a2adef859 (svn r14806) -Fix: MarkAllViewportsDirty() didn't mark dirty whole area when zoomed out, visible by aircraft leaving trails sometimes 2009-01-03 15:03:28 +00:00
rubidium
d3144b6f04 (svn r14789) -Feature: allow scrolling with the left mouse button pressed (if enabled). Primarily useful for systems with touch screen (aapo) 2009-01-02 22:42:05 +00:00
rubidium
e7bb5c63a4 (svn r14466) -Doc: remove some obsolete parameters, fix a few parameter names in comments and add a little more doxygen documentation. 2008-10-14 19:27:08 +00:00
rubidium
3ee482ca1b (svn r14461) -Document: add some doxygen comments (Albert) 2008-10-13 03:26:48 +00:00
smatz
d26e500ef4 (svn r14439) -Fix (r12044)(r14139): centering on a plane at the SE border could cause crash 2008-10-04 10:25:12 +00:00
rubidium
e589c7e580 (svn r14422) -Codechange: also reflect the changes of r14421 in the filenames. 2008-09-30 20:51:04 +00:00
rubidium
f56e630e5c (svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with. 2008-09-30 20:39:50 +00:00
frosch
b588578bcc (svn r14409) -Codechange: Simplify a loop and correct a comment. 2008-09-28 12:38:56 +00:00
rubidium
c358955127 (svn r14223) -Codechange: make GetSprite aware of the 4 different types of sprites: fonts, recolour, mapgen and normal sprites. 2008-09-02 15:20:38 +00:00
smatz
2c58a87f4c (svn r14221) -Fix: signs (town name, station name, ...) could be too long for 8bit width in pixels 2008-09-02 14:46:28 +00:00
frosch
a7bc5f2d0d (svn r14139) -Fix (r12044): GetSlopeZ() gets a virtual coordinate, not a tile. 2008-08-23 16:09:06 +00:00
belugas
d096431936 (svn r14104) -Feature: Add a window for waypoints, allowing to view all the trains having the selected waypoint in their orders.
Changing its name is also supported from the same new window.
Gui based on work done by Satyap, on FS#2025.
2008-08-20 01:29:05 +00:00
smatz
d097276022 (svn r13991) -Codechange: draw text effects after all other signs 2008-08-04 14:40:50 +00:00
frosch
196268b7ff (svn r13922) -Codechange: Move measurement-tooltip related stuff out of the general tooltip window. 2008-08-02 11:26:25 +00:00