Ted John
f909be7a43
Merge pull request #16797 from IntelOrca/feature/enhanced-transparency
...
Introduce more transparency toggles and allow each one to be set to either an invisible or ghost state which is a persisted user setting.
A new window is introduced to control these settings and is inspired by OpenTTD.
2022-03-20 17:56:08 +00:00
Gymnasiast
ffe8b4b45d
Undo fspath() workaround for Android
2022-03-18 23:21:23 +01:00
duncanspumpkin
f835a5b521
Apply clang-tidy to static variables
2022-03-18 00:38:26 -03:00
Ted John
52e5d48501
Update shortcuts and toolbar menu
2022-03-14 21:57:05 +00:00
Silent
4621cc4264
Json: Fix wrong implicit path typecasts in ReadFromFile and WriteToFile
...
These functions accepted fs::path which meant passing a u8string to them
wrongly assumed an ANSI encoding and not UTF-8. This would be
a non-issue in C++20 where char8_t is separate, but until then it was an issue
causing incorrect character conversions, and thus an exception.
2022-02-12 14:36:37 +01:00
Gymnasiast
10301507a9
Fix Android
2022-01-08 16:58:57 +01:00
34128dc262
Add new .park save format
...
Co-authored-by: Gymnasiast <Gymnasiast@users.noreply.github.com >
Co-authored-by: duncanspumpkin <duncanspumpkin@users.noreply.github.com >
Co-authored-by: ZehMatt <Zehmatt@users.noreply.github.com >
Co-authored-by: Broxzier <Broxzier@users.noreply.github.com >
2021-11-21 22:43:22 +01:00
Hielke Morsink
28681eebc0
Merge pull request #15407 from ZehMatt/refactor/optional-use
...
Make use of std::optional strict
2021-09-14 17:45:18 +02:00
Hielke Morsink
2af5e0dc82
Remove unnecessary else block
2021-09-13 23:25:33 +02:00
Hielke Morsink
cf78d6841d
return nullopt instead of {}
2021-09-13 23:24:57 +02:00
ζeh Matt
59a6c34db4
Make use of std::optional strict
2021-09-13 20:02:32 +03:00
Ted John
17a29dfe87
Fix #14190 : Game crash likely related to plug-in hotkeys
...
Do not cache references to RegisteredShortcut as they can be invalidated when new shortcuts are registered / removed.
Use a map to improve query performance of shortcut by ID.
Store a separate list of strings for the map to use as a key.
2021-02-28 01:13:43 +00:00
Ted John
1ee72ffd21
Fix #14184 : Right and down arrow swapped
...
Incorrect order of legacy shortcut IDs.
2021-02-27 15:51:05 +00:00
Ted John
52dffb83c2
Fix #14160 : Game crashs when registering shortcuts
2021-02-23 22:18:00 +00:00
Ted John
ed29c0a37b
Replace std::printf with Console::*
2021-02-21 03:14:20 +00:00
Ted John
e383b6f6f7
Move zoom and rotation to view tab
2021-02-21 03:14:20 +00:00
Ted John
ff86ebbfe5
Localise shortcut strings
2021-02-21 03:14:19 +00:00
Ted John
acfda711f5
Use std::string_view without reference
2021-02-21 03:14:19 +00:00
Ted John
2b197d0fb2
Fix parsing of shortcuts
2021-02-21 03:14:18 +00:00
Ted John
46c3fd4e5f
Use FileStream instead of fstream
2021-02-21 03:14:18 +00:00
Ted John
2b3aabb8e4
Remove old shortcut code and fix issues
2021-02-21 03:14:18 +00:00
Ted John
f2f658bf28
Refactor some code into more files
2021-02-21 03:14:18 +00:00
Ted John
af0ed416f5
Implement loading / saving of new shortcuts
2021-02-21 03:14:18 +00:00
Ted John
7b00f9d96d
Add tabs to keyboard shortcut window
2021-02-21 03:14:18 +00:00
Ted John
e7ae9f9f15
Read legacy shortcuts and move to constants
2021-02-21 03:14:17 +00:00
Ted John
900f3cd92b
Fix gcc / clang builds
2021-02-21 03:14:17 +00:00
Ted John
afc548c5a7
Add plugin API for shortcuts
2021-02-21 03:14:13 +00:00
Ted John
9964df5335
Implement gamepad support
2021-02-21 03:13:28 +00:00
Ted John
e6b6403024
Refactor and fix shortcut
2021-02-21 03:13:28 +00:00
Ted John
ea975f88fc
Implement more InputManager
2021-02-21 03:13:28 +00:00
Ted John
c8f31dea7f
Process keyboard input events
2021-02-21 03:13:28 +00:00
Ted John
3339089235
Add more shortcuts
2021-02-21 03:13:28 +00:00
Ted John
f009b9a804
Only handle release mouse buttons
2021-02-21 03:13:28 +00:00
Ted John
ccae533978
Add input manager
2021-02-21 03:13:27 +00:00
Ted John
b1eb975529
Re-add show change dialog
2021-02-21 03:13:27 +00:00
Ted John
e5f263a0fc
Get new manager showing in window
2021-02-21 03:13:27 +00:00
Ted John
28aead5cb5
Start work on new shortcut engine
2021-02-21 03:13:27 +00:00