Duncan
482971710d
Apply code style to context functions
2022-11-06 21:49:07 +01:00
Michael Steenbeek
27f3a3a796
Create function to resize window frame
2022-11-06 10:29:40 +01:00
73
643d79b700
Changed ride vehicle list to have less padding ( #18350 )
...
Co-authored-by: Rik Smeets <30838294+rik-smeets@users.noreply.github.com>
2022-11-05 13:43:15 +01:00
Michał Janiszewski
afd0346d66
Fix #18481 : prevent misuse of moved-from object in WindowTooltipShow ( #18483 )
2022-11-02 00:19:43 +01:00
Tulio Leao
787acb903b
Close #13810 : Refactor TrackDesignManage window to class ( #18314 )
...
* Close #13810 : Refactor TrackDesignManage window to class
* Remove redundant condition on TrackDesignManageWindow::OnTextInput
* Make early exit ifs on TrackDesignManageWindow::OnTextInput else ifs
* Apply suggestions from code review
Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com>
Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com>
2022-10-29 17:34:39 -03:00
Tulio Leao
582863e50c
Merge pull request #18366 from Broxzier/refactor/consistent-integral-suffix
2022-10-29 12:26:43 -03:00
Hielke Morsink
31dd4bf604
Use lower-case u integral suffix
2022-10-29 16:33:05 +02:00
Tulio Leao
3656ddfb14
Fix #18442 : About window background is clickable ( #18446 )
2022-10-29 16:23:59 +02:00
Xixiang Chen
133f435350
Close #18317 : Refactor InstallTrack window to class ( #18412 )
...
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2022-10-29 09:33:40 -03:00
Raymond Zhao
0647d12de8
Close #18315 : Refactor Error window to class ( #18403 )
2022-10-29 09:25:20 -03:00
Raymond Zhao
f7364fe3db
Close #18319 : Refactor SavePrompt window to class ( #18335 )
2022-10-29 09:19:59 -03:00
Xixiang Chen
96b08ca801
Close #18325 : Refactor tooltip window to class ( #18399 )
2022-10-26 06:52:32 -03:00
Raymond Zhao
6319e8b7d2
Close #18323 : Refactor TitleMenu window to class ( #18395 )
2022-10-26 06:44:38 -03:00
Henry Cheng
cf9ec0bd4a
Fix no overwrite alert on Windows if there are capitalization differences ( #18375 )
2022-10-26 08:19:44 +02:00
Henry Cheng
93cdfbf26a
Fix #17657 : Grid disappears when buying land rights ( #17793 )
2022-10-25 19:46:31 +00:00
Haven Kim
5e3f1af161
Fix #17854 : InventionList reorder is inconsistent
...
beforeItem is a reference of an item in the vector. The List deletes the dragged item before adding it and it mutates the beforeItem pointer.
2022-10-24 22:58:11 +02:00
Raymond Zhao
a3342a5484
Close #18321 : Refactor TitleExit window to class ( #18337 )
2022-10-20 06:33:46 -03:00
Xixiang Chen
032b214ff6
Close #18320 : Refactor StaffFirePrompt window to class ( #18368 )
2022-10-20 06:24:31 -03:00
Gymnasiast
14f9a75e0a
Refactor FontSpriteBase and font size into FontStyle
2022-10-19 11:59:26 +02:00
Gymnasiast
9ca9412205
Refactor Dark/ExtraDark into its own structure
2022-10-19 11:57:33 +02:00
Hielke Morsink
f91df4138c
Merge pull request #18359
2022-10-18 23:39:49 +02:00
Thamara Andrade
9edb3966fb
Close #13785 : Refactor NetworkStatus window to class ( #18302 )
2022-10-18 06:54:01 -03:00
Hielke Morsink
3bb8ea3668
Better annotate some magic numbers in for loops
2022-10-17 16:08:55 +00:00
Eilidh Martin
fdbceae17c
Fix #18324 : Refactor TitleOptions to class
2022-10-17 15:29:17 +02:00
Hielke Morsink
5fa53ad528
Rename global config functions to use TitleCase
2022-10-16 21:46:08 +02:00
Hielke Morsink
89fa8d8052
Rename public notification config data members
2022-10-16 21:46:06 +02:00
Hielke Morsink
bff430805f
Rename public network config data members
2022-10-16 21:46:06 +02:00
Hielke Morsink
371470b5d5
Rename public sound config data members
2022-10-16 21:46:05 +02:00
Hielke Morsink
f605b02630
Rename public interface config data members
2022-10-16 21:46:05 +02:00
Hielke Morsink
abac080d3e
Rename public general config data members
2022-10-16 21:46:01 +02:00
Rik Smeets
c80bd455e9
Code style: Remove struct snakes from Paint ( #18341 )
2022-10-14 20:26:36 +02:00
Raymond Zhao
a45f898c7e
Close #18322 : Refactor TitleLogo window to class
2022-10-13 12:16:16 +02:00
Duncan
406b73d904
Remove final snakes from map and world ( #18304 )
2022-10-12 09:14:45 -03:00
Duncan
7dd8989e70
Next chunk of World/Map.h snakes ( #18296 )
...
* Next chunk of World/Map.h snakes
* Apply clang-format
2022-10-12 06:35:20 +01:00
Michael Steenbeek
7be8f475f3
Merge pull request #18292 from Gymnasiast/fix/18290
...
Fix #18290 : Ride and plug-in window colours not appearing
2022-10-11 21:43:53 +02:00
Duncan
67bbc8560d
Code style: Remove snakes from everything world apart from Map.h ( #18273 )
...
* Remove remaining snakes from world (outside of map)
* Initial few desnaking of Map.h
2022-10-11 19:39:24 +01:00
Gymnasiast
de71ed19b5
Remove remaining usages of SPRITE_ID_PALETTE_COLOUR_1()
2022-10-11 14:54:27 +02:00
Gymnasiast
418c5a6708
Use GetColourButtonImage() for remaining windows
2022-10-11 14:44:45 +02:00
Rik Smeets
0c78a27d9f
Fix missing validation on invalid characters in file name ( #18287 )
...
When saving a new file with a name containing '/' or '\' on Windows, the incorrect file name would be determined since these characters represent a new folder. This would trigger a failure on save.
The user's input should be validated in all cases. Before, it was only executed for folder names. This change also applies the validation on file names.
2022-10-11 13:27:11 +02:00
Michael Steenbeek
6fe19878f6
More ImageId cleanup ( #18258 )
...
* Remove more usages of uint32 image indices
* Remove unused gfx_get_sprite_size()
* Remove uint32 images from text drawing
* Remove now-unused ImageId overload
* Default-initialise ttfRunIndex
* Suppress false-alarm GCC error
2022-10-10 19:42:40 +01:00
Gymnasiast
c33e377d7c
Close #17341 : Always allow loading with incorrect checksum
2022-10-08 22:58:23 +02:00
Michael Steenbeek
c31482a3c3
Merge pull request #18255 from Gymnasiast/refactor/load-s6-s4
...
Remove old S6/S4 loading functions
2022-10-08 21:46:32 +02:00
Rik Smeets
8e33cf580f
Code style: Remove snakes from virtual floor
2022-10-08 20:50:59 +02:00
Gymnasiast
d5f6a5b285
Replace context_load_park_from_file() with object equivalent
2022-10-08 20:12:35 +02:00
Duncan
5dba30778d
Code style: Remove more snakes from the park, maphelper, scenery. ( #18222 )
2022-10-08 06:56:17 -03:00
Haven Kim
34170d6814
Fix #17853 : Invention name tears while being dragged ( #18223 )
2022-10-08 06:52:32 -03:00
Hielke Morsink
d4774293d5
Fix #18064 : Unable to dismiss notification messages
2022-10-07 16:44:06 +02:00
leoleotte
0dee78bfe5
Close #13774 : Refactor Footpath window to class
2022-10-06 19:41:31 +00:00
Michael Steenbeek
fa81f119c2
Merge pull request #18208 from Gymnasiast/fix/18204
...
Fix #18204 : Crash opening New Ride window with invalid highlight
2022-10-06 10:54:19 +02:00
Michael Steenbeek
051ede1598
Merge pull request #18213 from duncanspumpkin/codeStyle4
...
Code style: Remove snakes from Location, LargeScenery and MapAnimation
2022-10-05 22:36:39 +02:00
Michael Steenbeek
99e13e023e
Name unknown_15 window event as ScrollSelect
...
Co-authored-by: leoleotte <leoleotte@users.noreply.github.com>
2022-10-05 21:59:20 +02:00
Rik Smeets
c5904d81d6
Code Style: Remove snakes from paint tile elements ( #18212 )
2022-10-05 21:27:38 +02:00
duncanspumpkin
16581e9288
Address snakes in mapgen and map animation
2022-10-05 20:22:51 +01:00
duncanspumpkin
2a593b6029
Remove snake cases from Location and LargeScenery
2022-10-05 20:21:56 +01:00
Gymnasiast
33f5fed0e2
Make GetFirstNonNullRideType() member function
2022-10-05 20:24:15 +02:00
Gymnasiast
79f3e28b07
Fix #18204 : Crash opening New Ride window with invalid highlight
2022-10-05 20:13:11 +02:00
duncanspumpkin
3e8dc1b2ac
Remove snakes from the foopaths
2022-10-04 20:08:14 +01:00
duncanspumpkin
2c29190ff8
Remove snakes from entrance
2022-10-04 20:07:35 +01:00
Michael Steenbeek
2e6595fe8a
Merge pull request #18050 from IntelOrca/assetpacks-audio
...
Add asset pack manager and asset packs
2022-10-04 19:08:38 +02:00
73
8c3ff1bfa8
Replace Transparancy with Transparency
2022-10-04 18:28:15 +02:00
Ted John
0defe35d75
Update look of asset packs window
2022-10-03 20:16:01 +01:00
Stephan Spengler
9e1937d144
[Plugin] Widget tooltips can now be read and changed
2022-10-03 20:50:19 +02:00
Duncan
3565a0172d
Attack snakes in banners and climate ( #18163 )
2022-10-01 18:54:15 +02:00
Ted John
2415b2e608
Fix compiler errors
2022-10-01 14:35:23 +01:00
Ted John
9bb47d0aa1
Add tooltips and new reload icon
2022-10-01 13:53:18 +01:00
Ted John
06e5b7cc1a
Remove toggle button
2022-10-01 13:28:47 +01:00
Ted John
717e265c19
Add checkboxes to asset pack window
2022-10-01 13:07:13 +01:00
Ted John
edb37a9fba
Fix win32 builds
2022-10-01 13:06:55 +01:00
Ted John
bf85e6de4c
Implement loading / saving asset pack config
2022-10-01 13:06:55 +01:00
Ted John
331a5961b1
Implement asset packs for audio
2022-10-01 13:06:52 +01:00
73
b9e677945d
Replace 20XX with 2022 ( #18158 )
...
* Replace 2020 with 2022
Replace all 2020 headers with 2022
* replace other years with 2022
add missing years
2022-10-01 08:42:14 +01:00
Gymnasiast
26c080a0d7
Remove unused symbols, fixes
2022-09-30 00:01:13 +02:00
Gymnasiast
cedccf9b0e
Use const ImageId in drawing functions
2022-09-29 21:17:15 +02:00
73
a8073f6bd5
Increase limit on Loan Interest from 80% to 255%
...
Co-authored-by: Gymnasiast <m.o.steenbeek@gmail.com>
2022-09-27 12:20:01 +02:00
Michael Steenbeek
36b775e573
Fix #17811 : Erratic “same price” for photos if gSamePriceThroughoutPark is corrupted
2022-09-26 19:58:19 +02:00
Meehoi
61d74eaa4b
Part of #15589 : Make numpad enter able to confirm input
2022-09-25 18:33:02 +00:00
Hielke Morsink
cf6de246ea
Merge pull request #16873
2022-09-25 18:58:52 +02:00
Michael Steenbeek
a3b7ac5a90
Create category for DLC and BYO scenarios
2022-09-25 12:59:35 +02:00
Rik Smeets
425000bfca
Don't prompt to 'Save game as' when saving ( #16819 )
...
After loading a saved game and choosing 'Save game', the 'Save game as' window would open the first time every time after loading the save.
Now, it will be saved using the existing save path, except when an autosave is loaded which the player probably doesn't want to overwrite.
2022-09-25 08:33:28 +02:00
Hielke Morsink
c77a685225
Fix invalidation issues
2022-09-25 00:19:35 +02:00
Alex
b00b158464
Refactor of TileInspector to Window class
2022-09-25 00:19:29 +02:00
Meehoi
d6ca1a3da9
Fix #18035 : Favourited servers don't get their online status updated
...
From fetching flow, list will always have favourited servers but no code to update those entries, only append.
This code updates those favourited servers in the list with new data from internet by matching address.
This will fix list having 2 duplicate servers too. (one favourited and one not)
2022-09-23 22:51:05 +02:00
Michael Steenbeek
31e2d7692c
Rename more instances of “vehicle” to “train”
2022-09-22 11:22:18 +02:00
Hielke Morsink
8d08c13fa6
Fix #17963 : Opening research tab breaks marketing tab
2022-09-21 14:49:08 +00:00
Gymnasiast
67c82b75e6
Fix: Cannot build banked turns on the Bobsleigh RC
2022-09-21 15:21:28 +02:00
Gymnasiast
97aec235e7
Fix #18053 : Ride types without vehicles get all pieces disabled
2022-09-21 15:10:59 +02:00
Michael Steenbeek
0a571cce29
Fix #17992 : Virginia Reel doesn't show sloped tracks
2022-09-12 22:39:40 +02:00
Michael Steenbeek
b258298b69
Close #13772 : Refactor EditorScenarioOptions to class ( #17983 )
2022-09-11 17:58:54 +02:00
Fruitsalad
f17b1a970e
Remove headless servers from the player list UI
2022-09-06 23:28:33 +02:00
Michael Steenbeek
99a0876ad6
Disable track elements if no train supports them ( #17909 )
...
This can be useful in several situations:
- In RCT1 scenarios, or when playing with ported RCT1 vehicles, it will disable elements like banked turns
- We can add extra elements to existing coaster types by default, even if no RCT2 train supports them
2022-09-06 21:24:02 +00:00
Henry Cheng
121f121d4e
#17735 Track elements are listed twice when building backwards
...
Fix: Instead of checking whether bank has the value TRACK_BANK_UPSIDE_DOWN, instead check bank_start, as bank is not guaranteed to be bank_start.
2022-09-06 23:21:22 +02:00
Michael Steenbeek
34c7bed26b
Use vertical tabs in the New Game dialog
2022-09-03 23:08:43 +02:00
spacek531
8c8dc632b8
Implement #17806 : Warn user if fallback images are used
...
Warns user on the object debug info, when closing the object selection window after selecting objects, and when opening a park.
2022-09-03 13:56:23 +00:00
Henry Cheng
0c76872869
Fix #17816 : Option to pause Steam Overlay not greyed out when using OpenGL
2022-08-31 23:08:36 +02:00
Michael Steenbeek
9dd28c90d7
Merge pull request #17908 from Gymnasiast/refactor/window-clean
...
Small window symbol cleanup
2022-08-29 22:04:13 +02:00
Hielke Morsink
61c35c8f1c
Fix #17905 : chain button enabled for rectangular maps
2022-08-28 09:36:18 +02:00
Gymnasiast
45e7ee6a73
Rename rct_window_event_list to WindowEventList
2022-08-27 16:56:52 +02:00
Gymnasiast
5647fc8506
Fix flag usage
2022-08-27 16:52:29 +02:00
spacek531
74ff5429a9
Add Classic Wooden Roller Coaster
...
Co-authored-by: Gymnasiast <Gymnasiast@users.noreply.github.com>
2022-08-26 23:53:03 +02:00
leoleotte
83e4277cea
Close #13807 : Refactor Themes window to class
2022-08-24 21:33:37 +02:00