Michael Steenbeek
037b236d8f
Add the RCT1 edge styles
2018-01-13 15:39:22 +01:00
deurklink
c1c6413337
Fix #7011 : Swinging and bobsleigh cars going backwards swing in the wrong direction
...
This fix will make swinging rides like the suspended swinging coaster and the bobsleigh coaster back to the outside of corners when moving backwards (For example during a rollback). This was an original bug in RCT2.
2018-01-13 15:28:07 +01:00
Aaron van Geffen
c581656693
Add extra padding to label text in track install window.
...
Also fixes the window height, not just to accommodate the extra padding,
but also to accommodate the 'space required' field.
2018-01-12 22:29:32 +01:00
Richard Jenkins
8fb5f5c2be
Fix #6993 : Inverting track design causes a crash
2018-01-12 15:42:02 +00:00
ZehMatt
84f2917f59
Use const and constexpr whenever possible.
2018-01-11 22:29:08 +01:00
Aaron van Geffen
81398d9225
Reset resize widget's top position properly when invalidating.
2018-01-11 20:27:40 +01:00
Aaron van Geffen
4d219c3abe
Refactor name and path into std::string, too.
2018-01-11 20:27:40 +01:00
Aaron van Geffen
eb0ad92e6d
Use std::vector as LoadSaveListItem container.
2018-01-11 20:27:40 +01:00
Aaron van Geffen
fce2996a73
Format braces in LoadSave.cpp.
2018-01-11 20:27:40 +01:00
Aaron van Geffen
6a404eb5dc
Make MINGW happy, too.
2018-01-11 20:27:40 +01:00
Richard Jenkins
4a4aa80f31
Fix Windows implementation
2018-01-11 20:27:40 +01:00
Aaron van Geffen
aa82df2647
Experimental: use system date/time settings on Windows.
2018-01-11 20:27:40 +01:00
Aaron van Geffen
ada31ede29
Change header/sort button appearance.
2018-01-11 20:27:40 +01:00
Aaron van Geffen
9d96377e9b
Infer optimal date width when opening load/save window.
...
In order to accomodate MSVC, we're not using strptime.
2018-01-11 20:27:40 +01:00
Aaron van Geffen
004e60ccc6
Use virtual columns to align date and time.
...
This also makes the date column use a fixed width. Useful when resizing.
2018-01-11 20:27:40 +01:00
Aaron van Geffen
ca172b46c1
Make load/save window resizeable.
2018-01-11 20:27:40 +01:00
Aaron van Geffen
c77b00898d
Show formatted dates in load/save window.
2018-01-11 20:27:40 +01:00
Michael Steenbeek
1787af8084
Fix #7003 : Building sloped paths trough flat ones causes glitches
2018-01-11 16:30:11 +01:00
Michael Steenbeek
47a23603ae
Remove unused functions
2018-01-11 13:25:09 +01:00
Michael Steenbeek
a0d43d2bd3
Fix Math::Clamp calls
2018-01-11 13:25:09 +01:00
Michael Steenbeek
cd5a1ba888
Compile files in world folder as C++
2018-01-11 13:25:09 +01:00
Aaron van Geffen
1d7bec8a11
Make the virtual floor optional, on by default.
2018-01-11 10:37:40 +01:00
Aaron van Geffen
0527f50c7f
Take previous virtual floor area into account when invalidating.
2018-01-11 10:37:40 +01:00
Aaron van Geffen
87ad60be31
Adjust virtual floor height by path construction direction.
2018-01-11 10:37:40 +01:00
Richard Jenkins
9e5502afe3
Enable virtual floor for paths
2018-01-11 10:37:40 +01:00
Aaron van Geffen
cccaab37fe
Fix track height computation for non-track rides.
2018-01-11 10:37:40 +01:00
Michael Steenbeek
a410872fec
Move VirtualFloor.cpp to the paint folder and fix Xcode project
2018-01-11 10:37:40 +01:00
Aaron van Geffen
c835832e79
Compile the virtual floor code as C++.
...
Add a proper header file for the virtual floor in the process.
2018-01-11 10:37:40 +01:00
Aaron van Geffen
84026529b4
Introduce new variable gMapVirtualFloorVisible to determine visibility.
...
This addresses compilation issues for projects that contain no UI code.
Also working towards better invalidation for the software renderer.
2018-01-11 10:37:40 +01:00
Aaron van Geffen
4246b84130
Invalidate virtual floor once selection has changed.
...
Cache the position of the last invalidate call to prevent a big dip in performance.
2018-01-11 10:37:40 +01:00
Jeroen D Stout
fb745d1575
Implement invalidate virtual floor tiles function
2018-01-11 10:37:40 +01:00
Jeroen D Stout
dd2e69cf7a
Place virtual floor at the effective z-position when placing track pieces
2018-01-11 10:37:40 +01:00
Michał Janiszewski
c031f6c5fa
Don't reference virtual floor from testpaint
2018-01-11 10:37:40 +01:00
Jeroen D Stout
ea37c599e3
Let virtual floor set height function take visibility into account
2018-01-11 10:37:40 +01:00
Jeroen D Stout
3516cb944c
Correct check for virtual floor in map
2018-01-11 10:37:40 +01:00
Jeroen D Stout
c8785bac55
Add virtual floor removal check to input
2018-01-11 10:37:40 +01:00
Jeroen D Stout
4354aae958
Correct the handling of edges
2018-01-11 10:37:40 +01:00
Jeroen D Stout
e4b53dc68a
Add more generic virtual floor tile check
2018-01-11 10:37:40 +01:00
Jeroen D Stout
d31a911725
Add remove virtual function and clarify invalidate todo
2018-01-11 10:37:40 +01:00
Jeroen D Stout
c8e63de802
Refactor tile property checks and code conventions
2018-01-11 10:37:40 +01:00
Jeroen D Stout
8e8dc89068
Improve floor visuals with glassy transparent surface
2018-01-11 10:37:40 +01:00
Jeroen D Stout
b9faed7437
Mark being inside a piece of sloped terrain as being occupied
2018-01-11 10:37:40 +01:00
Jeroen D Stout
cee9129601
Improve visual quality of virtual floor
2018-01-11 10:37:40 +01:00
Jeroen D Stout
0268be92cb
Prevent ride construction from setting tiles when scenery tool is active
2018-01-11 10:37:40 +01:00
Jeroen D Stout
58321ec2cd
Fix underground check for sloped surfaces / clipping improvement
2018-01-11 10:37:40 +01:00
Jeroen D Stout
79fa16138a
Move virtual_floor_paint to own file / add edge highlighting
2018-01-11 10:37:40 +01:00
Jeroen D Stout
d67aba09ad
Make placing scenery set virtual floor height
2018-01-11 10:37:40 +01:00
Jeroen D Stout
2849561eb6
Make ride editing set virtual floor height
2018-01-11 10:37:40 +01:00
Jeroen D Stout
128cff60db
Add virtual floor painting functions.
2018-01-11 10:37:40 +01:00
Michał Janiszewski
19d35e6898
MSVC fixes pt 5
2018-01-11 09:30:09 +01:00