Commit Graph

56 Commits

Author SHA1 Message Date
Marijn van der Werf a53a7ab706 Convert remaining dialogs 2017-08-10 13:42:27 +02:00
Marijn van der Werf dc7f4bcf89 Convert most dialogs to C++ 2017-08-10 13:42:27 +02:00
Michael Steenbeek 46de90df86 Create map_get_water_height() 2017-07-27 17:15:56 +02:00
Michael Steenbeek 41b5e8bbca Remove direct usage of map element track sequence field 2017-07-27 16:19:01 +02:00
Gymnasiast 894d010439 Name map element track sequence flags and use them 2017-07-26 14:41:04 +02:00
Duncan 9a49490a0a Refactor of scenery elements (#5308)
Label scenery flags, vars and refactor small scenery into cpp file.
2017-07-25 22:26:43 +01:00
wolfreak99 e7bacc6d84 Apply new mousedown event parameters to windows 2017-07-13 10:15:34 +02:00
Michał Janiszewski 61d38511bc Expand tabs to spaces
This commit expands tabs to spaces (ts=4) in all the files under src/
and test/.

Until now we had two wildly different code styles with C using tabs and
new C++ using spaces. It is painful to maintain as none of the commonly
used tools support this kind of setup and in reality is needless, as we
can simply convert all the sources to spaces and have opened PRs do the
same, where needed.

Additionally, trailing whitespace has been removed.
2017-06-06 23:46:14 +02:00
wolfreak99 8006bbb9d5 Select previous element after removing in tile inspector 2017-06-05 22:59:15 +02:00
Michał Janiszewski 79d76759bb Fix #5516: Update copyrights for 2017
Not all files were necessarily _changed_, but all were touched, see
https://github.com/OpenRCT2/OpenRCT2/pull/4932
2017-06-01 21:55:10 +02:00
Marijn van der Werf eaf93430d5 Remove some string additions 2017-05-28 19:49:32 +02:00
Hielke Morsink bfa03583fa Apply window themes only when created or when the selected theme is changed 2017-05-17 13:19:42 +02:00
Marijn van der Werf a0259b79d4 Use rct_widgetindex type 2017-05-03 22:43:33 +02:00
Marijn van der Werf 927190103b Use enum for tools 2017-05-03 16:09:21 +02:00
duncanspumpkin 60fb821675 More refactoring 2017-03-13 17:33:50 +00:00
duncanspumpkin 69af723972 Remove more fences 2017-02-21 20:22:03 +00:00
duncanspumpkin 810bf301f3 Rename map element fence to wall 2017-02-20 21:10:49 +00:00
duncanspumpkin f54c71b61c Rename functions to wall. Refactor game commands 2017-02-20 21:02:19 +00:00
duncanspumpkin 133266deb0 Label fence offsets 2017-02-19 11:03:05 +00:00
duncanspumpkin 260a6200b9 Fix dropdown custom height code. Use flags for filters.
Note dropdown custom height code is not used in any function at present.
2017-02-16 18:35:59 +00:00
Michał Janiszewski a78e922a14 Fix edge conditions 2017-02-14 22:34:13 +01:00
Broxzier 2fb49013bc Apply coding style to tile inspector source files 2017-02-12 23:02:19 +01:00
Broxzier 22cfb3da2c Fix Travis warning 2017-02-12 23:02:19 +01:00
Broxzier bc93ecaf30 Add banner toggle for blocking paths to MP 2017-02-12 23:02:19 +01:00
Broxzier f44a78ff8a Add clamp corrupt element to MP 2017-02-12 23:02:18 +01:00
Broxzier cc2fae2f6a Add setting quadrant collision for small scenery to MP 2017-02-12 23:02:18 +01:00
Broxzier 2682639393 Add setting small scenery quadrant location to MP 2017-02-12 23:02:18 +01:00
Broxzier 1cbf2e6589 Remove no longer needed definitions 2017-02-12 23:01:51 +01:00
Broxzier d5291cfd0a Add raising and setting chain for track blocks to MP 2017-02-12 23:01:51 +01:00
Broxzier 96a1192445 Replaced asserts with openrct2_asserts 2017-02-12 23:01:51 +01:00
Broxzier 9400b292cf Add toggling footpath slope to MP 2017-02-12 23:01:51 +01:00
Broxzier 7ffcc61bf2 Add toggling footpath slope to the tile inspector. 2017-02-12 23:01:49 +01:00
Broxzier 1a611bc5be Add setting slope for fences to MP 2017-02-12 23:00:07 +01:00
Broxzier 31aa7f045a Add path edges and corner toggle to MP 2017-02-12 23:00:07 +01:00
Broxzier 577d1d1128 Add diagonal toggle to MP 2017-02-12 23:00:07 +01:00
Broxzier 7349177c2d Add toggle surface corner to MP 2017-02-12 23:00:07 +01:00
Broxzier c38f4b7171 Add show/restore park fences to MP 2017-02-12 23:00:07 +01:00
Broxzier 044f9c60a9 Better code for readiblity and consistency 2017-02-12 23:00:07 +01:00
Broxzier efd9fce064 Change base height 2017-02-12 23:00:07 +01:00
Broxzier 83dbb52976 Sorting tile 2017-02-12 23:00:07 +01:00
Michał Janiszewski fc42dce87e Use our own assert_struct_size macro for static assert 2017-02-12 23:00:07 +01:00
Broxzier be97031bb9 Add compiletime asserts to verify size hasn't changed. 2017-02-12 23:00:07 +01:00
Broxzier ff1e5c7675 Use memcpy instead of copying data manually 2017-02-12 23:00:07 +01:00
Broxzier f7ae3065f9 Made pasting of map elements work in MP 2017-02-12 23:00:07 +01:00
Broxzier ab62d3505a Made rotate button work in MP 2017-02-12 23:00:06 +01:00
Broxzier 87216cf8a6 Add moving of elements
This also simplifies the logic in map.c a little bit, as elements are not
important for modifying a tile.
2017-02-12 23:00:06 +01:00
Broxzier b774c1db2b Check on clients if the same tile was selected 2017-02-12 23:00:06 +01:00
Broxzier 8a8e2c1cd6 Remove button works in MP
This moves the logic from the window file to the file in world/.
It updates the window on all clients correctly.
2017-02-12 23:00:06 +01:00
Broxzier 88a0bb4270 Add support for inserting corrupt elements in MP
This PR adds three new files, one to expose some of the funcitons for the
tile inspector window, and two completely new ones for the tile inspector
logic, which handles what happens.

This commit adds the logic for inserting corrupt elements, while keeping
the list on both server and client correct (e.g. client has the same tile
selected, and keeps the same element in focus when the tiles gets changed)
2017-02-12 23:00:06 +01:00
Broxzier 5fef1a5d0b fix paste button becomes active after sorting tile
Remove unneeded call to window_tileinspector_set_page
2017-02-03 21:10:20 +01:00