Michał Janiszewski
a6d0e6916e
Fix function definitions to match their declarations
...
This makes sure every function is properly declared, which includes
proper `extern` wrappers.
2016-07-14 14:11:49 +02:00
Marijn van der Werf
5204fb0ce9
Clean up string and sprite ID's ( #3977 )
2016-07-14 14:07:49 +02:00
Sijmen Schoon
fb456a86ea
Fix #4061 : Wrong error message when opening all rides with unfinished rides
...
Show the proper error when opening all rides goes wrong.
2016-07-14 11:26:12 +01:00
Ted John
04340021f6
Fix #4071 : Guests paid when free entry park flag
...
Make most usages of park entrance fee use a common function which does the necessary checks.
2016-07-13 19:48:42 +01:00
Ted John
dca816cfd3
Merge pull request #4024 from IntelOrca/refactor/object-list
...
Refactor and improve the object system:
- Objects are now exported to user directory under 'object'.
- Object directories are scanned recursively.
- Improves reliability of object loading and handling of bad objects.
- Improve performance of object scanning.
- Only load new objects when loading a new game.
- Improve changing language experience.
2016-07-11 23:45:45 +01:00
Ted John
edb4a4a822
fix get capacity string for vehicles
2016-07-11 22:50:55 +01:00
Ted John
4bf9748143
fix drawing of object preview
...
We can't use dpi->width and dpi->height as they only define the clip region, not the viewport
2016-07-11 22:09:15 +01:00
Sijmen Schoon
38f402f156
Remove variable that became unused because of 06de7b
2016-07-11 19:26:25 +02:00
Sijmen Schoon
06de7bc1e1
Set default track folder to user track directory
...
Fixes #4019
2016-07-11 19:13:30 +02:00
Sijmen Schoon
773c7e04ef
Remove stray space
2016-07-11 19:13:30 +02:00
Sijmen Schoon
d8bc890d0a
Exit scenery selection mode when done saving
2016-07-11 19:13:30 +02:00
Sijmen Schoon
79a85cd659
Save track designs as td6 file
2016-07-11 19:13:30 +02:00
Sijmen Schoon
9d1ae9b576
Fix track save system dialog crash
2016-07-11 19:13:30 +02:00
Sijmen Schoon
a194c91997
Use OpenRCT2 dialog for saving tracks
2016-07-11 19:13:30 +02:00
Ted John
f5391a366f
Merge pull request #4048 from Goddesen/fix_4037_utf8_cursor
...
Use UTF-8 to measure cursor size in text input.
2016-07-11 18:00:17 +01:00
Ted John
7ae7c4f498
Merge pull request #4020 from duncanspumpkin/rate_input
...
Allow rate input by text box
2016-07-11 17:58:38 +01:00
Josue Acevedo
cc2d91a642
Fix #4042 : Park name isn't shown in objective selection
2016-07-11 09:54:37 +01:00
Josue Acevedo
c17a89707c
Fix #4031 : Costs of land rights not displayed when hovering a tile
2016-07-11 09:31:42 +01:00
Goddesen
555eb227a8
Remove uint32 cast - size_t can be safely compared to size_t.
2016-07-11 02:15:15 +02:00
Goddesen
23e4fe63d0
Use utf8 to measure cursor size in text input.
2016-07-11 02:15:15 +02:00
duncanspumpkin
50c2e52b57
Use better text descriptions. Holding down rate buttons now increase/decrease
2016-07-10 09:26:23 +01:00
Ted John
3d824142ee
clean up init_scenery a bit
2016-07-09 21:06:54 +01:00
duncanspumpkin
1d4fb5cb6f
Allow rate input by text box
2016-07-09 08:39:45 +01:00
Ted John
5785020b07
fix clip size of preview
2016-07-09 01:28:57 +01:00
Ted John
78c6b6a251
remove all unnecessary object resets
2016-07-08 22:58:38 +01:00
Ted John
60098aeef0
remove last use of object_load_chunk
2016-07-08 22:58:38 +01:00
Ted John
9801e92d79
fix track manager object filtering
2016-07-08 22:58:38 +01:00
Ted John
d7e1933f12
fix track manager preview
2016-07-08 22:58:38 +01:00
Ted John
f59d6b7a00
implement unloading arbitrary objects
2016-07-08 22:58:38 +01:00
Ted John
488da7942c
use object_manager_get_loaded_object instead
2016-07-08 22:58:38 +01:00
Ted John
42ad4ddfd1
fix minor errors
2016-07-08 22:58:38 +01:00
Ted John
e8635c1307
prepare for better object loading
2016-07-08 22:58:38 +01:00
Ted John
faf1f08b7f
fix loading object via console
2016-07-08 22:58:38 +01:00
Ted John
8d168fb2ce
remove more old object code
2016-07-08 22:58:38 +01:00
Ted John
a47c039f22
remove lots of old object code
2016-07-08 22:58:38 +01:00
Ted John
7e1f948e19
remove required flag (unused) and fix scenery selection
2016-07-08 22:58:38 +01:00
Ted John
4bed693344
fix basic object selection
2016-07-08 22:58:38 +01:00
Ted John
ebcbb085d2
add ride previews
2016-07-08 22:58:38 +01:00
Ted John
52c11267bc
add small scenery preview
2016-07-08 22:58:38 +01:00
Ted John
13a560fb1d
fix ride type sorting and add water preview
2016-07-08 22:58:38 +01:00
Ted John
f6d6d93580
fix highlight object in object selection
2016-07-08 22:58:38 +01:00
Ted John
554d445db4
migrate more of object selection
2016-07-08 22:58:38 +01:00
Ted John
343623c815
move more code from old object list to new repository
2016-07-08 22:58:38 +01:00
Ted John
db304cdfcb
fix filtering on object selection
2016-07-08 22:58:38 +01:00
Ted John
76b2621a51
Merge pull request #4000 from SijmenSchoon/develop
...
Add a "default" button to the loadsave window
2016-07-08 22:58:07 +01:00
Josue Acevedo
bfce74f905
Minor fix: guest list not contain any guest. ( #4016 )
...
Mistake that I made accidentally in #4006 , caused because selected page takes the -1 value if the num of pages is 0 (it only happens if the num of guests is 0).
2016-07-08 23:57:26 +02:00
Josue Acevedo
68794c8ab8
Fix: page dropdown doesn't appear in guest list window. ( #4006 )
2016-07-08 20:17:56 +02:00
Sijmen Schoon
66628e5131
Remove unused variable
2016-07-08 11:32:34 +02:00
Sijmen Schoon
662d92be74
Fix track load/save last-dir storing
...
Doesn't really belong to this PR, but it's needed anyway
2016-07-08 11:29:45 +02:00
Sijmen Schoon
47d69998e7
Straighten up window_loadsave_widgets
2016-07-07 11:50:06 +02:00