Commit Graph

233 Commits

Author SHA1 Message Date
Marijn van der Werf 31e8b510ec Use constants for maze construction 2017-05-03 16:09:21 +02:00
Marijn van der Werf 927190103b Use enum for tools 2017-05-03 16:09:21 +02:00
Marijn van der Werf 2b54032b8e Replace magic numbers in windows with constants 2017-05-02 14:41:53 +02:00
Marijn van der Werf 3cf725745d Add compile-time checked constants for widget ids 2017-05-02 09:58:25 +02:00
Ted John 4288e13947 Change mute widget index to its more logical position 2017-04-30 22:35:47 +01:00
Ted John ae8aa2d466 Fix top toolbar tool switching
Moved tool active checks to top toolbar so that it can use constants.
2017-04-30 22:33:19 +01:00
Ted John 75e0c94082 Fix mute / unmute logic 2017-04-30 18:03:25 +01:00
Ted John 21bf897bda Adjust group box on interface options page 2017-04-30 17:46:23 +01:00
Pulkit 970614bd51 WIDX_MUTE Improvements 2017-04-30 17:36:38 +01:00
Pulkit 89baa54633 Fixed the whitespaces 2017-04-30 17:33:26 +01:00
Pulkit dff1d724a0 Updated the location of the mute button 2017-04-30 17:33:26 +01:00
Pulkit daf968161e Added the mute option in the toolbar 2017-04-30 17:33:26 +01:00
Pulkit f7d01e3983 Modified the Mute button Like the Cheat
I implemented the Mute button but for some reason I am unable to enable
the checkbox. Could someone kindly look into it
2017-04-30 17:33:26 +01:00
Pulkit 0ca023a459 Few Corrections, in the code. 2017-04-30 17:33:26 +01:00
Pulkit a0f6a3b61b Updated Position of the Mute Button 2017-04-30 17:33:25 +01:00
Pulkit ffa3896b24 Mute Button Implemented like in RCT1
Added the Mute button, like requested in the Issue #1421.
2017-04-30 17:33:21 +01:00
CraigCraig e0b875398b Tons of spelling fixes (#5413)
[ci skip]
2017-04-30 06:39:24 +02:00
Michael Steenbeek 92e110195e Define native file dialog strings when loading heightmap, to avoid crashes
Thanks to @wolfreak99 for the fix.
2017-04-27 16:02:35 +02:00
Michał Janiszewski dcb1b8651b Fix scenery eye dropper checks 2017-04-24 23:25:21 +02:00
Broxzier b456fe2a4d Copy argument to buffer since it may be freed, add missing break 2017-04-24 23:19:51 +02:00
Broxzier 52ef6c8e34 Pass arguments with correct type for {COMMA16} 2017-04-24 23:19:51 +02:00
Broxzier 2cd4a686f6 Disable page widgets until a map is loaded
A few strings have their {WINDOW_COLOUR_2} setting removed, since this
prevented strings from being market as inset. All uses of these strings
have been checked.
2017-04-24 23:19:51 +02:00
Broxzier 03bfc68250 Loading height map into memory 2017-04-24 23:19:51 +02:00
Broxzier 0d07ea69f8 Add support for loading PNG files
This needs to be refactored
2017-04-24 23:19:51 +02:00
Broxzier 624f3e3298 Fix smooth-tiles checkbox not being invalidated; updated default height values 2017-04-24 23:19:51 +02:00
Broxzier 810103b90f Use loadsave window for selecting the heightmap 2017-04-24 23:19:51 +02:00
Broxzier 6edea503b2 Refactored mapgen window file
- Removed duplicated code
- Moved shared widgets to define
- Moved shared widget handling code to function
2017-04-24 23:19:51 +02:00
Broxzier c6e3ecd5ed Better widget behaviour and fixes
- Inset text for disabled labels and values
- Spinners can be held down

Other fixes:

- Use correct types for widget indices
- Use WINDOW_MAPGEN_PAGE_COUNT for arrays (when a new page is added in the
  future, the compiler will warn about all the arrays having an invalid
  size)
- Sort code so that related arrays are placed near each other
2017-04-24 23:19:51 +02:00
Broxzier 55c1787a13 Add heightmap smoothing
Fixed underflow error that was visible for non-tilable maps.
Reordered widgets to reflect the same order of the algorithm.
Always regenerate the map when a setting is changed.
2017-04-24 23:19:51 +02:00
Broxzier 26989ea8f6 Add smoothing height map option 2017-04-24 23:19:51 +02:00
Broxzier edfe997e78 Add option to normalize height map 2017-04-24 23:19:51 +02:00
Broxzier fda415cd44 Add settings to heightmap tab 2017-04-24 23:19:51 +02:00
Broxzier 702d99e1e3 Initial prototype of loading heightmaps
Adds new strings and string ids for some future commits too.
2017-04-24 23:19:51 +02:00
Michał Janiszewski f4b1c010e1 Fix uninitialised variable 2017-04-24 21:59:01 +02:00
Michał Janiszewski ea26ae9866 Explicitly initialise globals in entrance.cpp 2017-04-24 21:47:33 +02:00
Hielke Morsink 9314b8b793 Fix #5375: Use mask for fetching large scenery id, fix picking banner elements 2017-04-19 07:56:46 +02:00
Michał Janiszewski d53f276207 Fix scenery eye dropper interaction with footpaths 2017-04-18 22:49:33 +02:00
siomy11 7cf64d0bfe Display "No mechanics are hired!" instead of "Calling mechanic..." when no mechanics are hired (#5368) 2017-04-16 22:38:02 +02:00
Ted John d06208a521 Fix scenery window height and list calculation 2017-04-14 18:59:21 +01:00
Michał Janiszewski b87a8095d1 Make input buffers' sizes consistent 2017-04-14 19:17:38 +02:00
Michael Steenbeek 400a2cc9c7 Merge pull request #5354 from rwjuk/fix5350
Make boosters on Twister and Giga Coaster more practical (#5350)
2017-04-13 22:19:25 +02:00
Richard Jenkins 194afc7b49 Halve Junior RC booster values, and update construction window to match 2017-04-13 21:05:52 +01:00
Gymnasiast 18aa462f9a Fix booster speed when right-clicking a part 2017-04-13 21:37:14 +02:00
Richard Jenkins 2ca500ad1e Adjust track build window for Giga Coaster to reflect doubled boost speed 2017-04-13 20:16:36 +01:00
Ted John ff350f3769 Fix #5338: Scenery eyedropper hides the third colour picker 2017-04-13 17:01:44 +01:00
Gymnasiast c8ecd98737 Check for both csg1.1 and csg1.dat when looking for RCT1 graphics 2017-04-12 20:08:31 +02:00
wolfreak99 fcafd9576a Replace FALSE/TRUE with 0/1 2017-04-11 14:26:36 +02:00
wolfreak99 d22ad8abb5 Sync "Set guest generation higher difficult level" 2017-04-11 14:26:35 +02:00
wolfreak99 d6dfb3e079 Sync "Set park rating higher difficult level" 2017-04-11 14:26:35 +02:00
wolfreak99 8f56f60841 Sync "Set forbid high construction" 2017-04-11 14:26:35 +02:00