1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 20:13:07 +01:00
Commit Graph

388 Commits

Author SHA1 Message Date
Aaron van Geffen
e70ca5c889 Allow staff to use ‘real’ names as well (#22732) 2024-09-15 20:18:00 +00:00
Michael Steenbeek
6f6cdc0cc6 Revert "Cleanup MemoryStream code (#22593)" (#22666)
This reverts commit 590ab65b2a.
2024-09-01 00:14:12 +02:00
Matt
590ab65b2a Cleanup MemoryStream code (#22593)
* Deduplicate code, use std::bit_ceil to compute new capacity

* Remove unused constructor overload

* Remove more unused functions

* Fix memory leak using assignment operator with move

* Make access explicit via constness, do not allow arbitrary access

* Move the template specialized Write/Read to private section

* Simplify a lot of code by using the right types

* Fix copy constructor

* Directly copy the member in copy constructor

* Fix little mistake

* Pluck a memory leak on Android, fix the build

* Update changelog.txt
2024-08-22 19:24:00 +02:00
Aaron van Geffen
2a99b2f1f9 Rework modifier key state into strong enum class (#22558)
* Rework modifier key state into strong enum class

* Move modifier key state into InputManager
2024-08-14 16:36:05 +02:00
ζeh Matt
fed107b008 Make forceRedraw implicit when we are on the main thread 2024-08-01 23:48:54 +03:00
Aaron van Geffen
e645fc7ac4 Widen progress range for object loading proces 2024-07-16 19:30:48 +02:00
Aaron van Geffen
a5054c68d1 Add progress reporting to loading required objects 2024-07-16 18:14:44 +02:00
Aaron van Geffen
ef7dbe496a Introduce VIEWPORT_FLAG_RENDERING_INHIBITED 2024-07-15 01:17:57 +02:00
Aaron van Geffen
0890a49e3c Add progress bars to title sequence loading, but only the initial park 2024-07-14 23:58:00 +02:00
Aaron van Geffen
5f0c3d2ffd Add progress bars to loading saved games and scenarios 2024-07-14 22:18:31 +02:00
Silent
76b55651b6 Stop (and discard) the replay before tearing down the scripting engine (#22293)
Fixes a shutdown crash on tearing down Duktape values after their
context has already been destroyed.

Fixes #22056
2024-07-15 08:43:06 +02:00
Aaron van Geffen
3d5c19de08 Drop Localisation.h include where not required 2024-07-13 13:33:32 +02:00
Aaron van Geffen
3fd91038c3 Rename Date.h to Localisation.Date.h to match unit file 2024-07-12 22:18:43 +02:00
Aaron van Geffen
8cef18cd2f Include cassert as needed at unit level 2024-07-09 16:43:03 +02:00
Aaron van Geffen
4bfd3f3369 Initialise script engine off main thread (#22230)
* Initialise script engine off main thread

* Do not run ScriptEngine.Tick() during initialisation/preloading

* Add 'Loading plugin engine…' string

* Add changelog entry

---------

Co-authored-by: Bas <Basssiiie@users.noreply.github.com>
2024-07-09 20:19:01 +02:00
Aaron van Geffen
c00fe1e7d6 Rework (preloader) scene completion functionality (#22122)
* Remove the need for Scene::GetCompletionScene

* Replace SetCompletionScene with SetOnComplete

* Normalise return type for GetPreloaderScene

* Rename 'onFinish' to 'onComplete' for consistency
2024-05-29 22:13:03 +02:00
Aaron van Geffen
c9de56471d Allow customising the progress string format
Fixup: deal with -Wdeprecated-anon-enum-enum-conversion warning
2024-05-20 21:37:40 +02:00
Aaron van Geffen
539bb5487e Introduce context functions and intents for progress window 2024-05-20 16:28:00 +02:00
Aaron van Geffen
4e2f546d14 Fix sound effects not working 2024-05-18 13:12:08 +02:00
Aaron van Geffen
2ff3295587 Report FileIndex index progress to Context
Progress is passed on to PreloaderScene and NetworkInfo window from there.
2024-05-06 14:26:00 +00:00
Aaron van Geffen
db73b1fede Move TitleSequenceManager::Scan into preloader as well
Add strings for checking and loading title sequence
2024-05-06 14:08:49 +02:00
Aaron van Geffen
809fe4a51b Initialise scenes only when they are first accessed 2024-05-06 14:08:35 +02:00
Aaron van Geffen
3cda6e367b Don't use preloader scene when in headless mode to fix replay tests
This splits off the initialisation calls to a new InitialiseRepositories function.

The SetCompletionScene invocation is moved to the Launch method. When the game is running
in headless mode, the preloader is not used. Instead, InitialiseRepositories is called in-thread,
and the transition to the 'completion scene' happens immediately after.
2024-04-25 23:55:52 +02:00
Aaron van Geffen
9f45d40bae Add localisable progress status messages 2024-04-24 19:40:46 +02:00
Aaron van Geffen
7c4be9ce92 Introduce PreloaderScene for game initialisation
Co-authored-by: ζeh Matt <5415177+ZehMatt@users.noreply.github.com>
2024-04-24 18:31:00 +02:00
Aaron van Geffen
a63d86c488 Introduce Config namespace and struct 2024-05-10 12:10:21 +02:00
Aaron van Geffen
347ce53f26 Re-introduce message on successful screenshot (#21983)
* Re-introduce message on successful screenshot

* Automatically close previous screenshot notices before new ones
2024-05-10 15:04:12 +02:00
Aaron van Geffen
c92d3bf018 Fix loading editor from command line 2024-05-03 19:31:06 +02:00
Aaron van Geffen
770277ab95 Refactor Context::DetermineStartUpScene into its own method 2024-05-03 19:30:58 +02:00
Michał Janiszewski
7b12667ddb Reduce <algorithm> include (#21947) 2024-05-01 13:47:27 +02:00
Michał Janiszewski
ad79699b21 Reduce transient inclusion of <future> (#21944) 2024-05-01 12:27:51 +02:00
duncanspumpkin
4810a72232 Move a number of ui only updates into UiContext tick 2024-04-29 14:10:52 +02:00
Aaron van Geffen
56cbc0eb8a Refactor intro into IntroScene 2024-04-26 20:35:16 +02:00
Aaron van Geffen
255e89ec37 Refactor TitleScreen to TitleScene; introduce GameScene
Co-authored-by: ζeh Matt <5415177+ZehMatt@users.noreply.github.com>
2024-04-23 21:31:05 +02:00
Aaron van Geffen
49b75e6606 Introduce Scene class and handling
Co-authored-by: ζeh Matt <5415177+ZehMatt@users.noreply.github.com>
2024-04-23 20:42:16 +02:00
Aaron van Geffen
ddc386b186 Refactor Context constructor 2024-04-23 19:52:52 +02:00
Aaron van Geffen
1b5d0f47ab Make usage of Audio namespace explicit in Context 2024-04-20 12:24:44 +02:00
Michael Steenbeek
271a22d00e Merge pull request #21681 from AaronVanGeffen/obj-list-refactor
Move various object list properties out of ObjectTypes header
2024-04-12 11:54:13 +02:00
Gymnasiast
fef1a27342 Remove GameState class 2024-04-04 18:12:35 +02:00
Claudio Tiecher
a94e6c54d8 Part of #21421: replace define with constexpr (#21679) 2024-04-01 07:00:32 -03:00
Aaron van Geffen
cec251bb63 Take kAllObjectTypes internal as well 2024-03-27 21:26:07 +01:00
Aaron van Geffen
e898e9211d Move kObjectEntryGroupCounts to ObjectList.cpp 2024-03-27 20:13:10 +01:00
Gymnasiast
8d478e78a5 Refactor FILE_TYPE_S4_CUTOFF to kFileTypeS4Cutoff 2024-02-25 17:06:48 +01:00
Harry Hopkinson
7797db10c8 Replace Macros and Notation in Cheats.h, common.h and Context.h. (#21437) 2024-02-23 19:30:35 -03:00
Michael Steenbeek
115e7389a9 Move most gScenario* globals to GameState_t 2024-01-24 22:17:32 +01:00
ζeh Matt
9b2a79faf1 Adjust the import/export code to have the game state passed 2024-01-19 16:32:19 +02:00
Gymnasiast
cfff3c53f9 Do not use RCT1/2 limits in TrackDesign.h
Some unrelated files seemingly relied on TrackDesign.h to import RCT2.h for them.
2024-01-03 21:12:53 +01:00
James103
1d8dc111f1 Replace 2023 with 2024 in copyright headers (#21139)
Replace all instances of the year 2023 with 2024 in all copyright headers
2024-01-01 12:52:28 +01:00
ζeh Matt
3d5e6ea932 Replace Equals with IEquals where appropriate 2023-07-05 23:14:05 +03:00
Matthias Moninger
6bd5f75330 Update the UI at screen refresh rate (#20214)
* Update the UI at screen refresh rate

* Decouple input from ticks, fix scroll at high frame rates

* Fix holding down mouse button on buttons causing too many events

* Subtract the initial delay to keep the same behavior as before

* Guard against the rare case where the value might be 0

* Fix right click not working correctly

* Fix odd behavior when using right click to scroll lists

* Make touch work again, fix mouse panning in fullscreen (borderless)

* Update changelog.txt
2023-05-17 19:19:44 +00:00