1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 08:45:00 +01:00
Commit Graph

40 Commits

Author SHA1 Message Date
Gymnasiast
a088537b65 Rename rct_widgetindex to WidgetIndex 2022-08-21 18:49:23 +02:00
Hielke Morsink
7f29e4e39c Make rct_windowclass strong type WindowClass
This already revealed some places where implicit conversions were done, including some where its use was nonsense (MouseInput.cpp).
The changes to the Intent class were necessary to keep things working, and this splits things up more neatly.
2022-08-21 18:38:25 +02:00
Hielke Morsink
c8605a8763 Refactor window functions to take references 2 2022-07-31 17:23:15 +02:00
Hielke Morsink
4b4b3333d6 Remove unnecessary else blocks 2021-09-16 18:31:12 +02:00
Ted John
e000f06442 Remove holdable flag from spinner widget 2021-02-25 22:30:35 +00:00
Ted John
f7650fdfbc Fix CI failure 2021-02-25 18:47:54 +00: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
93f17f1175 Add custom widget logic and network stats API 2021-02-24 22:37:31 +00:00
Ted John
2fdf91874c Implement centred labels 2021-01-29 17:50:32 +00:00
Ted John
c2eb6d4153 Improve plugin API and type definitions 2021-01-28 20:52:17 +00:00
Ted John
c0d8786af8 Add text box widget 2021-01-27 00:28:59 +00:00
Ted John
be350f7e2e Add widget visible flag 2021-01-26 00:25:59 +00: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
pizza2004
a5607da09d Refactor Widget to TitleCase (#13355) 2020-11-03 18:29:22 -03:00
Aaron van Geffen
681b8d7938 Introduce widget::width and widget::height helper functions (#12053) 2020-06-24 22:44:00 -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
Ted John
0ca42f453c Add plugin API for setting button isPressed (#11851) 2020-06-01 23:05:24 -03:00
Ted John
0d0349fc09 Allow plugins to update dropdown items (#11735) 2020-05-12 21:10:07 -03: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
0941620991 Add a few more properties 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
faf59598e5 Start working on exposing ListViewWidget 2020-05-09 17:24:15 +01:00
Ted John
4501173c0d Implement custom window tabs 2020-04-30 23:42:28 +01:00
Ted John
2c4cf49fb1 Add more const 2020-04-26 14:35:08 +01:00
Ted John
c67962577a Rename __ENABLE_SCRIPTING__ to ENABLE_SCRIPTING 2020-04-26 14:35:08 +01:00
Ted John
d480fb8daa Apply suggestions from code review
Co-Authored-By: Tulio Leao <tupaschoal@gmail.com>
Co-Authored-By: Michael Steenbeek <m.o.steenbeek@gmail.com>
2020-04-26 14:35:07 +01:00
Ted John
7628289eb3 Implement reverse of string processing 2020-04-26 14:35:04 +01:00
Ted John
9dd9e600b5 Implement API for image buttons 2020-04-26 14:35:04 +01:00
Ted John
e6341f0a42 Get scripting compiling on clang 2020-04-26 14:35:03 +01:00
Ted John
639faa2085 Fix GCC issues 2020-04-26 14:35:03 +01:00
Ted John
e0f66fe3cd Implement viewport widgets 2020-04-26 14:35:02 +01:00
Ted John
da98ef63d3 Implement checkboxes and disabling widgets 2020-04-26 14:35:02 +01:00
Ted John
b1cf6fcf63 Implement Widget API 2020-04-26 14:35:02 +01:00