calvin
6342fd3d9a
Display track file path in track selector
2021-03-27 15:11:08 +01:00
Geoff B
6c8493cb69
Close #14253 : Replace font size tokens with adjusted DrawText calls
2021-03-27 14:40:17 +01:00
Duncan
0a47d2157a
Use more specific types where appropriate ( #14388 )
...
It takes marginally more time to get a Peep than a Guest/Staff so may as well go straight to the correct type
2021-03-25 08:44:25 +00:00
TELK
040a3eb144
Fix part of #7489 : Shortcuts work incorrectly for vertical tracks
2021-03-24 20:32:03 +01:00
Michael Steenbeek
19b1958822
Merge pull request #14332 from DKarandikar/develop
...
Close #13749 : Move Banner window to new framework
2021-03-24 20:30:42 +01:00
Duncan
977d05ba29
Entity type5: Remove peep assigned type ( #14380 )
...
* Remove users of AssignedPeepType
* Remove AssignedPeepType
Field no longer required due to changes to EntityType
* Move enum to the RCT12 header
* Increment network version
* Update replays
2021-03-24 08:54:05 +00:00
Michael Steenbeek
a5a63f839a
Allow passing ImageId into gfx_draw_sprite()
2021-03-23 11:58:09 +01:00
Daniel Karandikar
d4efbdf531
Refactor InitTileElement
...
Break loop when going to go outside of Tile
2021-03-22 19:23:36 +00:00
Daniel Karandikar
5ef750a879
Tidy up BannerWindow::Initialise
2021-03-22 19:23:34 +00:00
Daniel Karandikar
1551389bf5
camelCase for local vars
2021-03-22 19:23:28 +00:00
Daniel Karandikar
248d6a0683
Prepend _ to private member fields
2021-03-22 19:23:20 +00:00
Michael Steenbeek
d1267a276f
Merge pull request #14355 from duncanspumpkin/fix_14353
...
Fix #14353 . Provide a buffer for text input
2021-03-20 14:58:02 +01:00
Michael Steenbeek
430711a33b
Cache HasFilePicker() value in UiContext
2021-03-20 14:51:15 +01:00
Cory Sanin
f1cd58c292
Fix #14330 : join_server uses config default_port
2021-03-20 14:09:47 +01:00
duncanspumpkin
820668d0aa
Use unsafe strlen for platforms without strlen_s
2021-03-20 07:27:23 +00:00
duncanspumpkin
ee575d5b8c
Use std::vector to prevent violations of std string
2021-03-20 07:22:00 +00:00
duncanspumpkin
07b2945c5b
Fix #14353 . Provide a buffer for text input
2021-03-19 18:25:14 +00:00
Michael Steenbeek
850e7431c3
Merge pull request #14328 from Gymnasiast/fix/14315
...
Fix #14315 : Crash when renaming APVC in Korean
2021-03-18 22:49:13 +01:00
Duncanspumpkin
0957542503
Implement C++ solution to truncate UTF8 strings
2021-03-18 22:14:12 +01:00
Maximilian Bottin
6f28914f61
Fix #14296 : Allow early scenario completion in multiplayer
2021-03-18 20:30:11 +01:00
Duncan
df7a284822
Entity type 2: Remove sprite_identifier ( #14334 )
...
* Start changing the underlying type
* Further work
* Complete refactor
* Further cleanup
* Remove pointless check
* Increment network and plugin versions
* Add defaults
* Further defaults
* Fix test paint
* Update replays
2021-03-17 08:04:41 +00:00
Duncan
6ec379cd0e
Split Entity Lists by Entity type ( #14326 )
...
* Make initial changes to add entity type
* Make further corrections
* Revert header changes
* Fix mistakes
2021-03-16 11:18:06 +00:00
Daniel Karandikar
1229ce6b22
Refactor Banner to use new Window framework
...
Also tidy up a couple of bits of duplicated code
Pulled out into CreateViewport method and tileElement member
2021-03-15 22:59:19 +00:00
Michael Steenbeek
96524e2b4a
Convert Land window to class
2021-03-15 23:08:00 +01:00
Gymnasiast
645685de18
Fix #14315 : Crash when renaming APVC in Korean
2021-03-15 21:27:13 +01:00
Duncan
5474194905
Implement train view and remove linked_list_index ( #13956 )
...
* Make train manager view
* Remove linked list index field
* Remove merge mistake
* Fix further rebase errors
* Rename and add comments
* Update replays
* Fix Xcode project
* Increment network version
Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com>
2021-03-15 08:13:00 +00:00
manatails
4fe5b1dc79
Add "Vandals stopped" stat for security guards ( #14071 )
...
* Add a stat for security guards: Vandals stopped
* Update src/openrct2-ui/windows/Staff.cpp
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
* Update src/openrct2/peep/Guest.cpp
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
* No need to update screenCoords at the last line
Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com>
* Add changelog entry and bump network version
* Update to new UI code
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com>
2021-03-14 09:18:35 -03:00
frutiemax
8acdcca712
Part of #12098 : Use ScreenRect on gfx_filter_rect in Error.cpp ( #14288 )
2021-03-13 22:03:13 -03:00
frutiemax
cd9873a78d
Use ScreenLine on gfx_draw_line_software
2021-03-13 16:52:58 +01:00
Michael Steenbeek
85c59b88be
Convert New Campaign window to a class
2021-03-13 16:51:54 +01:00
Michael Steenbeek
55fea26a96
Fix #14172 : Assertion hit in window_tile_inspector_swap_elements()
2021-03-07 14:53:44 +01:00
Michael Steenbeek
01ddea5fab
Fix #14198 : Crash when creating new folder
2021-03-06 20:07:18 +01:00
Ted John
966129dd7c
Remove network traffic window
...
Now available in the DevTools plugin.
2021-03-06 14:47:06 +01:00
Ted John
b179f6e597
Merge pull request #13965 from telk5093/footpath_hotkeys
...
Make ride construction shortcuts work for footpath too
2021-03-06 01:27:18 +00:00
Michael Steenbeek
3b94132bab
Merge pull request #14219 from Gymnasiast/fix/14102
...
Fix #14102 : NPE in window_tile_inspector_invalidate()
2021-03-03 22:48:16 +01:00
Gymnasiast
66a5e28832
Avoid referencing null tile elements or derivations
2021-03-03 22:06:16 +01:00
Michael Steenbeek
0b73781df8
Fix #14216 : Second line of guest thoughts is set in wrong font
2021-03-03 16:00:03 +01:00
Gymnasiast
52d0689484
Add null checks to all other scenery object usages
2021-03-03 10:25:35 +01:00
Gymnasiast
e332c2a691
Fix #14102 : NPE in window_tile_inspector_invalidate()
2021-03-03 10:21:49 +01:00
Gymnasiast
229f374672
Improve positioning of mechanic status
2021-03-02 23:19:00 +01:00
Gymnasiast
50da55eaf3
Fix #14212 : Multiline news messages are shown incorrectly
2021-03-02 22:48:33 +01:00
Gymnasiast
30edc834ee
Fix #14211 : 'Mechanic X heading for ride' runs out of window
2021-03-02 22:37:15 +01:00
TELK
25bbbef7d1
Fix code formatting
2021-03-03 00:02:46 +09:00
Ted John
9b43ace649
Fix ui.showTextInput performance issue ( #14210 )
...
Over 2 GiB of memory was being allocated when calling ui.showTextInput. Restrict max length to 4 KiB.
2021-03-01 22:09:51 -03:00
Michael Steenbeek
c98746c910
Fix #14206 : Text runs out of Ride window
...
For some reason, the window used `gfx_draw_text_centred_wrapped()` before.
2021-03-01 20:31:15 +01:00
Ted John
d3e54bb579
Merge pull request #14191 from IntelOrca/fix/14190-shortcut-crash
...
Fix #14190 : Game crash likely related to plug-in hotkeys
Fix #14194 : Pressing WASD in text box moves main viewport, too
Fix #14195 : Binding (NumPad) Enter to send message closes the chat
2021-03-01 14:13:45 +00:00
adam-bloom
d1057d66fc
fix mingw builds
2021-02-28 15:48:30 -07:00
adam-bloom
9efe184538
macOS cmake CI fixes
...
Use ninja instead of make for faster builds
Proper library linking of dependencies
2021-02-28 15:48:30 -07:00
Adam
81fe5ad2cd
Remove unused const: MusicStyleNames
2021-02-28 22:57:23 +01:00
Gymnasiast
a0523339d3
Apply review request
2021-02-28 21:24:17 +01:00
Ted John
083d22adf2
Fix #14195 : Binding (NumPad) Enter to send message closes the chat
2021-02-28 14:08:16 +00:00
Ted John
789b04b4aa
Fix #14194 : Pressing WASD in text box moves main viewport, too
2021-02-28 14:07:56 +00: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
Gymnasiast
d6971fa79e
Fix rebase errors
2021-02-28 00:35:38 +01:00
Gymnasiast
7fd049c22e
Remove last remnants of gCurrentFontSpriteBase
2021-02-28 00:26:53 +01:00
Gymnasiast
c40701d997
Make gfx_draw_string() take a TextPaint argument
2021-02-28 00:26:20 +01:00
Gymnasiast
503273793a
Remove gCurrentFontSpriteBase from some functions
2021-02-28 00:26:20 +01:00
Gymnasiast
826f6c7442
Reduce usage of gCurrentFontSpriteBase
2021-02-28 00:25:30 +01:00
Gymnasiast
3e536e2711
Change gfx_draw_string_*_wrapped() to DrawTextWrapped()
2021-02-28 00:23:01 +01:00
Gymnasiast
e2ebc9d43b
Replace gfx_draw_string_left() with DrawTextBasic()
2021-02-28 00:23:00 +01:00
Gymnasiast
d5f79b7972
Replace gfx_draw_string_centred() with DrawTextBasic()
2021-02-28 00:23:00 +01:00
Gymnasiast
4d9c278ebc
Unify calls to DrawTextBasic
2021-02-28 00:23:00 +01:00
Gymnasiast
2477933c51
Turn font sprite base into a strong enum
2021-02-28 00:23:00 +01:00
Ted John
314faa69ca
Save user shortcuts after removing a binding
2021-02-27 15:51:26 +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
49b677780f
Merge pull request #14171 from IntelOrca/plugin/custom-widget
...
* Add API for getting network traffic statistics.
* Add API for creating custom widgets.
* Add API for drawing graphics for custom widgets.
* Add click event to spinners and allow them to be held down.
2021-02-27 01:31:00 +00:00
Michael Steenbeek
08f07e6135
Reduce usage of gCurrentFontSpriteBase ( #14178 )
2021-02-26 15:39:20 +01:00
Michael Steenbeek
28c680f97f
Merge pull request #14163 from Gymnasiast/refactor/get-rtd
...
Use GetRideTypeDescriptor() in more places
2021-02-26 10:46:38 +01:00
Gymnasiast
44d0e77afb
Make all access to RTD table use the bounds checking function
2021-02-26 10:01:00 +01:00
Gymnasiast
f118b2ede4
Replace ride_type_has_flag() with retrieving RTD
2021-02-26 09:49:09 +01:00
Ted John
e000f06442
Remove holdable flag from spinner widget
2021-02-25 22:30:35 +00:00
Gymnasiast
b1ab20ec27
Replace loose flag checking with helper function
2021-02-25 23:04:40 +01:00
Ted John
f7650fdfbc
Fix CI failure
2021-02-25 18:47:54 +00:00
Michał Janiszewski
ac6e4fc0d6
Move SPRITE_INDEX_NULL, MAX_SPRITES to their new homes
2021-02-25 10:56:27 +01:00
Michał Janiszewski
67b61478cf
Reduce inclusion of EntityList.h
2021-02-25 10:56:27 +01:00
Michał Janiszewski
6baff43f52
Reduce inclusion of Sprite.h
2021-02-25 10:56:27 +01:00
Ted John
d64bd60278
Fix CI errors
2021-02-24 22:54:53 +00:00
Ted John
c2183989a5
Allow spinners to be clicked and held
2021-02-24 22:37:31 +00:00
Ted John
c1b0df5de6
Improve graphics plugin API
2021-02-24 22:37:31 +00:00
Ted John
081c1895ce
Add box and well APIs
2021-02-24 22:37:31 +00:00
Ted John
93f17f1175
Add custom widget logic and network stats API
2021-02-24 22:37:31 +00:00
Ted John
82b1a5eb6d
Convert CustomWindow into a class
2021-02-24 22:37:31 +00:00
Ted John
668ea01548
Update src/openrct2-ui/windows/ShortcutKeys.cpp
...
Co-authored-by: Aaron van Geffen <aaron@aaronweb.net>
2021-02-24 16:57:19 +00:00
Gymnasiast
d63e3b1d9f
Replace RideTypeDescriptors[ride->type] with GetRideTypeDescriptor()
2021-02-24 14:10:30 +01:00
Gymnasiast
56399e7188
Use the RTD instead of ride_type_has_flag()
2021-02-24 14:10:30 +01:00
TELK
99e72dde3f
Change StringIds to more generic
2021-02-24 16:50:40 +09:00
Ted John
5ba3fdf452
Fix #14161 : ShortcutDesc.bindings does not work
2021-02-23 22:19:46 +00:00
Ted John
52dffb83c2
Fix #14160 : Game crashs when registering shortcuts
2021-02-23 22:18:00 +00:00
Ted John
aedd93ef33
Add remove button to clear a shortcut
2021-02-23 21:34:32 +00:00
Ted John
817edff4bd
Fix #14149 : Numpad shortcut keys are not loaded correctly
2021-02-23 20:35:24 +00:00
TELK
ea5cf16924
Feature: Make ride construction shortcuts work for footpath too
2021-02-23 16:11:53 +09:00
Ted John
440c0f447f
Fix #14140 : Some shortcut keys are not working
2021-02-21 21:44:53 +01:00
Michael Steenbeek
0cdbc99984
Merge pull request #13848 from IntelOrca/refactor/shortcut-engine
...
Introduce new shortcut engine
2021-02-21 14:01:39 +01:00
Duncan
2b26e423e4
Remove AsGuest and AsStaff duplicated functions
2021-02-21 13:23:31 +01: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
b3f6437092
Apply suggestions from code review
2021-02-21 03:14:19 +00:00
Ted John
cacfb8be07
Refactor dead key handling
2021-02-21 03:14:19 +00:00
Gymnasiast
d5eb1cc036
Fix dead key handling
...
This fixes deadkey handling on at least US International on Linux.
2021-02-21 03:14:19 +00:00
Ted John
2b14fe9d7f
Update shortcut listings
2021-02-21 03:14:19 +00:00