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

73 Commits

Author SHA1 Message Date
skdltmxn
c093a50f3f Refactor to use string_view more properly 2021-01-07 01:52:10 +09:00
Ted John
030713e126 Fix #13078: [Plugin] Add colour picker widget 2020-12-05 18:26:35 +00:00
Ted John
a55bcff99c Fix #13431: [Plugin] UI disabled widgets can still be interacted with. 2020-12-05 18:26:35 +00:00
Ted John
b6a688e540 Refactor format tokens 2020-11-27 18:54:57 +00:00
ffrogman
7ed1804e61 Fix #12410: Refactor WINDOW_WIDGET_TYPES to use strong enum (#13453)
* Fix #12410: Refactor WINDOW_WIDGET_TYPES to use strong enum
2020-11-27 00:14:20 -03:00
Sadret
2f4b1b9e3f Close #13376: Open custom window at specified tab 2020-11-05 17:43:23 +01:00
pizza2004
2015acd4c0 Refactor UI/Interface Window to Title Case (#13367) 2020-11-04 04:52:23 +00:00
pizza2004
a5607da09d Refactor Widget to TitleCase (#13355) 2020-11-03 18:29:22 -03:00
pizza2004
68bd035f12 Refactor Dropdown to TitleCase (#13352)
* Refactor Dropdown Namespace

* Refactor Dropdown to TitleCase
2020-11-03 08:16:06 +00:00
Sadret
5893664785 Fix #13334: Uninitialised variables in CustomTabDesc 2020-11-01 20:59:19 +01:00
Aaron van Geffen
d27e14f45b Compact, statically initialized syntax for event lists (#12973) 2020-09-28 20:36:15 +02:00
Sadret
a9cd89d02e Fix #12912: Plugin: selectedCell of CustomListView (#12913) 2020-09-12 19:24:23 -03:00
Michael Steenbeek
1cf89362f0 Merge pull request #12184 from IntelOrca/sea
Add support for reading .sea (RCT classic) files
2020-07-13 17:23:16 +02:00
frutiemax
123d0cceb6 Close #12173: Remove Formatter additions with void* (#12196) 2020-07-11 03:06:23 +02:00
Ted John
0e788918e2 Fix build for latest VS2019 2020-07-10 18:44:26 +01:00
Aaron van Geffen
681b8d7938 Introduce widget::width and widget::height helper functions (#12053) 2020-06-24 22:44:00 -03:00
TomasZilinek
9d965ccfb6 Part of #12017 - create gfx_draw_sprite overload (#12026)
* Part of #12017 - create gfx_draw_sprite overload

Part 1. Creates the overload and replaces about a half of the calls since there are too many for one PR.

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2020-06-23 18:32:34 -03:00
Ted John
5a7fbc8054 Fix #11961: Plugins: ViewportWidget unable to be moved or resized (#11997)
- Ensure child controls for dropdown and spinners are moved.
- Ensure viewport bounds are re-calculated if widget is moved / resized.
2020-06-19 20:20:58 +02:00
Michael Steenbeek
9ef8d6da42 Convert most remaining C-style casts to C++-style ones (#11867) 2020-06-07 23:18:11 +02:00
Ted John
d0a8c9fa92 Fix plugin, window update not being called (#11871)
For windows with no tabs.
2020-06-04 21:14:49 +01:00
Ted John
0ca42f453c Add plugin API for setting button isPressed (#11851) 2020-06-01 23:05:24 -03:00
Ted John
da0ef7d3a4 Fix #11753: Listview with header does not display last item in the list (#11754) 2020-05-15 22:05:00 -03:00
Michael Steenbeek
620fb5e5c4 Migrate many set_format_arg calls to Formatter (#11744) 2020-05-13 21:29:39 -03:00
Ted John
0d0349fc09 Allow plugins to update dropdown items (#11735) 2020-05-12 21:10:07 -03:00
stalefishies
9c26c9776b Fix plugin dropdown widget items not appearing (#11729)
Commit e182791 (mistakenly?) removed the code to populate the custom
dropdown widget's items from the list of strings passed in from the
plugin. This replaces that code.
2020-05-12 08:21:43 -03:00
Ted John
f492827c8a Implement horizontal scrollbars and fix resizing 2020-05-09 17:24:16 +01:00
Ted John
41950d75f0 Implement scrollbars field on list view 2020-05-09 17:24:16 +01:00
Ted John
c4f6dbe1ca Allow items and columns get / set 2020-05-09 17:24:15 +01:00
Ted John
e63fcd010f Add name get / set to widget 2020-05-09 17:24:15 +01:00
Ted John
4701dd3b9b Add get / set highlighted cell / selected cell 2020-05-09 17:24:15 +01:00
Ted John
5e427413a6 Refactor list view so we can access it from ScWidget 2020-05-09 17:24:15 +01:00
Ted John
45a1184b0e Implement selection 2020-05-09 17:24:15 +01:00
Ted John
928bba9795 Implement sorting 2020-05-09 17:24:15 +01:00
Ted John
096de3ccc8 Implement list view 2020-05-09 17:24:15 +01:00
Ted John
1e2cf9f77b Fix first widget being pressed on tabless plugin windows 2020-05-09 16:07:04 +01:00
Duncan
32eb7071a1 Fix #11550: Use std::nullopt instead of empty brace (#11595)
This is technically a gcc bug from the looks of it but since std::nullopt is slightly easier to read I've gone through the codebase and used that over empty braces. In addition noticed a mistake on the scripting viewport get widgetIndex function where it would return an incorrect widgetIndex.
2020-05-02 10:09:12 +02:00
Tulio Leao
4933785b1c Make window_dropdown_show_text_custom_width() use ScreenCoordsXY 2020-05-01 15:48:20 -03:00
Ted John
b36e4794e8 Update src/openrct2-ui/scripting/CustomWindow.cpp
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2020-05-01 17:19:19 +01:00
Ted John
00f78cc8fa Use ScreenCoordsXY for tab image offset 2020-05-01 13:53:28 +01:00
Ted John
65303a9f00 Fix spinner decrement buttons 2020-05-01 00:41:20 +01:00
Ted John
4ddc119886 Fix compile errors 2020-05-01 00:10:25 +01:00
Ted John
98249c777d Implement string tooltips for plugins 2020-05-01 00:06:58 +01:00
Ted John
4501173c0d Implement custom window tabs 2020-04-30 23:42:28 +01:00
Ted John
ca98ffc697 Implement onClose event for custom windows 2020-04-26 16:01:03 +01:00
Ted John
c67962577a Rename __ENABLE_SCRIPTING__ to ENABLE_SCRIPTING 2020-04-26 14:35:08 +01:00
Ted John
c1ab8b0b31 Apply suggestions from code review
Co-Authored-By: Breno Rodrigues Guimarães <brenorg@gmail.com>
2020-04-26 14:35:07 +01:00
Ted John
4c45e0ceb0 Remove use of .value() 2020-04-26 14:35:07 +01:00
Ted John
2f525e0539 Apply more code review comments 2020-04-26 14:35:07 +01:00
Ted John
7f9ff121b1 Fix rebase 2020-04-26 14:35:07 +01:00
Ted John
b7b1920a79 Fix build 2020-04-26 14:35:06 +01:00