rubidium
8560c8f16f
(svn r13182) -Doc: add documentation to mostly rail_gui related functions. Patch by Alberth.
2008-05-19 09:24:03 +00:00
rubidium
d60d22f45f
(svn r13171) -Codechange: make a class of the Build[Air|Rail|Road|Dock]ToolbarWindows.
2008-05-18 21:34:35 +00:00
rubidium
4d5b9e38d6
(svn r13160) -Codechange: prepare GUIPlaceProcDragXY for the removal of WindowEvent.
2008-05-18 12:40:38 +00:00
smatz
acd36adf0b
(svn r13143) -Fix (r13142): the Build Waypoint window wasn't resized when it was opened
2008-05-17 16:59:12 +00:00
glx
f9935785f7
(svn r13142) -Codechange: make classes of the Build[RailDepot|RailStation|RailWaypoint|Signal]Window
2008-05-17 16:27:36 +00:00
rubidium
a89b5721a8
(svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming.
2008-05-17 12:48:06 +00:00
rubidium
6d880ada7f
(svn r13104) -Codechange: make ResetObjectToPlace safe to be called recursively via the OnPlaceObjectAbort callback and use this knowledge to simplify closing some windows.
2008-05-15 14:41:56 +00:00
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.
2008-05-09 09:29:27 +00:00
rubidium
2c5db97704
(svn r13011) -Codechange: move PlaceProc_BuyLand out of rail_gui.cpp to the place where it is used and remove some unneeded globalisations of some other PlaceProc functions.
2008-05-08 13:30:50 +00:00
rubidium
92aac531c2
(svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window.
2008-05-08 11:50:34 +00:00
rubidium
51cda2252c
(svn r13004) -Codechange: replace AllocateWindow and AllocateWindowDesc with a Window constructor.
2008-05-08 11:31:41 +00:00
rubidium
c28ce39e3c
(svn r12987) -Codechange: split viewport and tile selection.
2008-05-07 13:10:15 +00:00
rubidium
9db77e3808
(svn r12976) -Codechange: use w->SetDirty() instead of SetWindowDirty(w) when it's certain that w != NULL.
2008-05-06 22:08:18 +00:00
rubidium
8796331d83
(svn r12975) -Codechange: replace DeleteWindow(w) with delete w.
2008-05-06 21:28:30 +00:00
rubidium
b35100e2a9
(svn r12939) -Codechange: do not use the window proc to determine whether a toolbar is a rail toolbar, but use the window number.
2008-05-04 09:39:16 +00:00
rubidium
e947fde701
(svn r12819) -Codechange: handle more NewGRFs in the same way as TTDP does it, i.e. testing the low bits for 0xFF or 0 instead of all bits.
2008-04-21 14:33:33 +00:00
rubidium
d46d8d9c9d
(svn r12765) -Codechange: move some stuff out of variables.h that required including other headers in variables.h.
2008-04-18 10:16:51 +00:00
rubidium
bd432258cb
(svn r12596) -Feature: show what cargos a station could be supplied with. Patch by Roujin.
2008-04-06 22:32:20 +00:00
smatz
c830c4a369
(svn r12577) -Fix (r11547): the convert signal button disallowed signal dragging when the signal GUI was closed
2008-04-05 11:35:32 +00:00
smatz
cc775d809c
(svn r12553) -Fix (r11547): redraw the signal GUI when the signal drag density changes in the patch settings and vice versa
2008-04-03 22:31:57 +00:00
smatz
8ed3f5fd5e
(svn r12550) -Change: the signal GUI is now persistent - has the same data when it is reopened
2008-04-03 21:54:31 +00:00
smatz
4caeac0cb8
(svn r12549) -Fix [FS#1900](r11547): respect type of selected signal when building more signals using the GUI
...
-Fix: do not check patch settings but check if the Signal GUI window is open instead
2008-04-03 21:01:01 +00:00
rubidium
c51b81c247
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
2008-03-31 00:06:17 +00:00
frosch
7f3d56041b
(svn r12199) -Codechange: Remove magic around the results of GetTileTrackStatus().
2008-02-20 17:49:50 +00:00
smatz
3d5462f103
(svn r12168) -Fix: behave a bit better when 'R' is pressed during rail station dragging
2008-02-17 18:19:33 +00:00
smatz
d3d126f999
(svn r12167) -Feature(tte): change colour of autorail and autoroad selection when Ctrl is pressed
2008-02-17 17:00:43 +00:00
glx
a148985087
(svn r12154) -Codechange: removed a magic number
2008-02-15 23:57:03 +00:00
belugas
81b47a628f
(svn r12135) -Codechange: Road and rail bridge selection windows were identical apart the caption. So remove one window definition and set manually the caption accordingly.
...
-Codechange: prepare the "type" of bridge parameter only once, at the beginning of the selection process. Makes less magic around.
2008-02-14 02:57:38 +00:00
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.
2008-01-27 17:32:12 +00:00
peter1138
ec1d547889
(svn r11993) -Fix: Resize station/roadstop/dock/airport construction windows if cargo acceptance list is too long.
2008-01-27 11:01:10 +00:00
peter1138
1182a940cf
(svn r11912) -Codechange: use dropdown widget for autoreplace, station builder and (second?) vehicle list windows
2008-01-17 21:57:20 +00:00
peter1138
b4d476b7d1
(svn r11859) -Codechange: Update newgrf station class dropdown to use new method of generating list.
2008-01-15 10:36:51 +00:00
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.
2008-01-14 16:10:58 +00:00
rubidium
9c0c798dd8
(svn r11834) -Codechange: only include settings_type.h if needed.
2008-01-13 14:37:30 +00:00
rubidium
90acd52f22
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
2008-01-13 01:21:35 +00:00
rubidium
2fc62eab05
(svn r11818) -Codechange: split player.h into smaller pieces.
2008-01-12 14:10:35 +00:00
rubidium
c004cc1fd9
(svn r11801) -Codechange: remove some unneeded includes from some header files.
2008-01-09 21:27:39 +00:00
rubidium
2d2e1e3863
(svn r11800) -Codechange: move some functions to a more logical location + some type safety.
2008-01-09 21:05:03 +00:00
rubidium
64d691bacc
(svn r11787) -Codechange: more header rewrites. This time related to viewport.h.
2008-01-09 09:45:45 +00:00
rubidium
84606b5212
(svn r11768) -Codechange: move some terraform related gui stuff from main_gui.cpp to terraform_gui.cpp (and introduce terraform_gui.h). Based on a patch by Roujin.
2008-01-06 18:56:43 +00:00
rubidium
445a733eb6
(svn r11719) -Codechange: split sound.h in a header with types and one with functions.
2007-12-29 09:24:26 +00:00
rubidium
722613f7f3
(svn r11706) -Codechange: split vehicle.h and remove another bunch of useless includes.
2007-12-27 13:35:39 +00:00
rubidium
db73addb43
(svn r11702) -Codechange: move all date related stuff to date*.
2007-12-26 13:50:40 +00:00
rubidium
f82aeb82c5
(svn r11701) -Codechange: removal unnecessary inclusions of map.h (and split map.h).
2007-12-26 11:45:43 +00:00
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'
2007-12-25 11:26:07 +00:00
smatz
9060dbdb04
(svn r11689) -Fix: compilation error and most of warnings for gcc 4.3
2007-12-23 21:02:40 +00:00
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.
2007-12-22 23:30:28 +00:00
rubidium
3074bca136
(svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
2007-12-21 22:50:51 +00:00
rubidium
766551b0bc
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
2007-12-21 21:50:46 +00:00
rubidium
8427b8bad2
(svn r11675) -Codechange: split the string types from the string functions.
2007-12-21 19:49:27 +00:00
rubidium
be923601bf
(svn r11669) -Codechange: refactor tile.h -> tile_type.h and tile_map.h
2007-12-19 23:26:02 +00:00
rubidium
2cf7d5b2cb
(svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
2007-12-19 20:45:46 +00:00
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.
2007-12-19 19:44:29 +00:00
smatz
d56a690ba4
(svn r11649) -Codechange: some code can be simplified thanks to changes in r11642
2007-12-16 19:30:42 +00:00
smatz
926fe5c9e9
(svn r11644) -Codechange: merge some functions from tunnel_map.h and bridge_map.h into tunnelbridge_map.h
2007-12-16 15:38:51 +00:00
belugas
544325590c
(svn r11592) -Codechange: Use the Window member RaiseButtons and remove the now useless RaiseWindowButtons function
2007-12-08 01:20:47 +00:00
glx
b00f621239
(svn r11588) -Codechange: use the new member introduced in r11551
2007-12-07 18:05:49 +00:00
rubidium
92cb0e45ca
(svn r11555) -Codechange: use the new members introduced in r11551.
2007-12-02 14:29:48 +00:00
rubidium
99dbfd3866
(svn r11547) -Add: signal selection GUI for the ones that really like to use that over CTRL. Patch by BigBB.
2007-12-01 21:40:18 +00:00
rubidium
121069b5e1
(svn r11511) -Revert parts of r11505: forgot that CTRL might be used for other features, like adjacent stations or signals.
2007-11-24 12:36:52 +00:00
rubidium
7562d21e50
(svn r11505) -Fix/Feature: make CTRL work on all road/rail construction options that 'work' with the 'Bulldozer' button instead of only a few.
2007-11-24 08:56:29 +00:00
skidd13
c0a2c0c23e
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
2007-11-19 21:02:30 +00:00
skidd13
98f66552be
(svn r11475) -Codechange: rename clamp and clampu to Clamp and ClampU to fit with the coding style
2007-11-19 18:38:10 +00:00
rubidium
3c020cfd68
(svn r11455) -Codechange: make autoroad, 'normal' road building and 'normal' rail building all react the same on CTRL as autorail.
2007-11-18 08:03:48 +00:00
rubidium
ecdb16de42
(svn r11440) -Codechange: replace magic numbers with enumified WindowHighlightMode constants. Patch by SmatZ.
2007-11-15 18:28:00 +00:00
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)
2007-11-04 00:08:57 +00:00
rubidium
305d383e99
(svn r11322) -Codechange: select an allowed station size when drag&drop is disabled. Patch by Wolf01.
2007-10-21 09:59:10 +00:00
rubidium
85b56a9c15
(svn r11264) -Codechange: replace a lot of magic numbers with enums for the rail and road GUIs. Patch by skidd13.
2007-10-14 20:24:42 +00:00
rubidium
bd7483ba3c
(svn r11040) -Fix [FS#1179]: removing CMD_AUTO from some commands could remotely trigger an assertion.
2007-09-04 11:58:27 +00:00
rubidium
13ab17bca8
(svn r10704) -Codechange: provide an infrastructure to have resizable windows that are smaller than the default window size.
2007-07-27 12:49:04 +00:00
rubidium
45b0b7755d
(svn r10601) -Codechange: store (and use) the type of stations instead of hardcoding station types by graphics IDs.
2007-07-16 23:55:22 +00:00
rubidium
df009178d4
(svn r10587) -Codechange: move the string/dparam related stuff from variables.h to strings.h
2007-07-16 09:16:58 +00:00
rubidium
690a27f8ce
(svn r10522) -Fix: the "build truck station" GUI showed that it would accept tourists when it does not, whereas the "build bus station" GUI did not show them when it did accept them.
2007-07-12 13:40:24 +00:00
peter1138
30de2a0984
(svn r10437) -Feature: Automatic signal completion, enabled by pressing ctrl when dragging signals. Signals will continue following track until an existing signal, junction or station are reached. This currently replaces the existing use of ctrl-drag for changing existing signal type.
2007-07-04 17:21:28 +00:00
rubidium
b6b78a3f21
(svn r10405) -Fix [FS#972]: do not try to determine the default railtype in the scenario editor.
2007-07-01 17:11:24 +00:00
rubidium
f40646bf82
(svn r10329) -Feature [FS#812]: (patch) option to select the "default" rail type when you start a new game or load a game. This is done either static, i.e. rail, electrified rail, monorail and maglev, or dynamic which takes either the first or last available railtype or the railtype that is used most on the map.
2007-06-25 19:13:55 +00:00
maedhros
1dac46595d
(svn r10103) -Fix (r10086): TrackBitsToTrack doesn't cope well with TRACK_BIT_NONE (e.g. non-rail tiles), so use FindFirstTrack instead.
2007-06-11 16:41:34 +00:00
maedhros
c33e651393
(svn r10086) -Codechange: Use more sensible types and functions in GenericPlaceSignals.
2007-06-10 21:28:20 +00:00
rubidium
821e58ac95
(svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple road types on a single tile.
2007-05-24 22:41:50 +00:00
rubidium
29123cf275
(svn r9908) -Codechange: prepare the station picker for more road types.
2007-05-24 08:52:28 +00:00
maedhros
1242bb9a03
(svn r9905) -Feature: Allow building new stations adjacent to existing stations by holding down control. Based on a patch by Wolf01.
2007-05-23 17:33:03 +00:00
maedhros
3b2a1c1c69
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
2007-05-23 13:52:10 +00:00
maedhros
1a9d43ff40
(svn r9900) -Codechange: Separate the variables for how to highlight a land area and what to do with it afterwards.
2007-05-23 12:45:56 +00:00
peter1138
1f552686d8
(svn r9810) -Feature: Add drag and drop removal of station tiles (Wolf01)
2007-05-07 17:10:30 +00:00
maedhros
3d81de8d7e
(svn r9609) -Codechange: Move some function prototypes out of functions.h and into landscape.h, and add a few where they didn't exist.
2007-04-12 13:07:15 +00:00
rubidium
4169bfba06
(svn r9050) -Codechange: Foo(void) -> Foo()
2007-03-07 11:47:46 +00:00
rubidium
62927d481f
(svn r8999) -Fix [FS#450]: do not select a disabled platform length/number of track count when going out of drag-drop mode.
2007-03-03 20:43:50 +00:00
belugas
b1b5aecae9
(svn r8853) -Cleanup: doxygen changes. Correct forgotten c files to cpp files with the @file tag as well as a few general comments style
2007-02-23 01:48:53 +00:00
tron
053e2ddda5
(svn r8841) -Fix
...
Remove {,u}intswap() and replace them by Swap()
2007-02-22 08:43:02 +00:00
rubidium
2a9851a3ad
(svn r8511) -Codechange: make WindowClass an enumerated value.
2007-02-01 15:49:12 +00:00
tron
5052c6609d
(svn r8436) -Fix
...
-Feature: When linking the terraform toolbar to the build toolbars place them side by side instead of on top of each other
2007-01-28 10:09:40 +00:00
Darkvater
7201689a17
(svn r8279) -Regression (r8274): Removing signals could fail under certain circumstances (not the proper bits of p1/p2 were set to trackbits). Moved trackbits back to bits 0..2, ctrl to 3, semaphore to 4. Also lower the decision of the ctrl-override of signal/semaphore from the GUI into the cmd function since we are passing the ctrl-bit anyways. Bug(s) found by Frostregen; thanks
2007-01-19 17:44:11 +00:00
Darkvater
53457d1acb
(svn r8274) -Codechange (r8151): Move the automatic semaphore/signal checks inside the CMD_ functions where they are supposed to be. Achieve this by adding a seperate bit to p1/p2 to hold the CTRL-modifier. While here, use proper types, and 'unify' the parameter bit-meanings. 0 - ctrl-pressed, 1 - signal/semaphore, 2-4 - trackbits, 5 - remove (internal), 24-31 - drag density.
2007-01-19 00:01:52 +00:00
maedhros
1770db53ca
(svn r8160) -Fix (r8151): Do not use HasSignals on tiles without railways.
2007-01-16 17:44:59 +00:00
maedhros
e91bbdd491
(svn r8151) -Feature: Automatically build semaphores before a configurable date, which can be set by each network player seperately.
2007-01-15 22:18:35 +00:00
tron
f8c650fa3a
(svn r8143) Remove the landscaping button from the build toolbars.
...
The landscaping toolbar can be reached at least as easy directly from the main toolbar.
Further two of the four toolbars uses 'l' as keyboard shortcut for this button, which plain does not work (The letter has to be uppercase).
This was covered by the fact there is a global shortcut 'L' to open the landscaping toolbar, so the individual checks in the four build toolbars were redundant anyway.
2007-01-15 07:38:36 +00:00
peter1138
ca9843424b
(svn r8128) -Codechange: Split sprite and palette remap into separate 32 bit values.
...
This lets us increase the sprite width from 14 to up to 29 bits,
effectively nulling the old sprite limit. Table changes in next commit.
2007-01-14 19:57:49 +00:00
rubidium
a7d0cdf95f
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
2007-01-10 18:56:51 +00:00
KUDr
07c30785ab
(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
2007-01-10 18:12:09 +00:00