Rubidium and rubidium42
6370859c7e
Codechange: add missing documentation to destructors
2026-02-24 16:24:53 +01:00
Cyprian Klimaszewski and rubidium42
21bee91fa7
Codechange: Make some variables and constants documentation comments recognised by doxygen.
2026-02-21 15:05:13 +01:00
Rubidium and rubidium42
671b62e073
Codechange: document a few parameter and return types
2026-02-18 17:04:49 +01:00
Rubidium and rubidium42
a0b173b43c
Codechange: remove @return documentation for void methods
2026-02-15 20:30:26 +01:00
Rubidium and rubidium42
8e75626b49
Codechange: unify documentation and parameter names of sorters
2026-02-11 04:53:39 +01:00
Rubidium and rubidium42
4d4e37dbf1
Codechange: document some virtual functions
2026-02-06 21:38:49 +01:00
Rubidium and rubidium42
bcaf3eaec2
Codefix: wrong parameter names and partially missing parameters
2026-02-02 18:18:51 +01:00
Rubidium and rubidium42
c6c06e13eb
Codefix: wrong parameter names and partially missing parameters
2026-02-02 16:31:46 +01:00
Rubidium and rubidium42
67fac86149
Codefix: remove @param documentation for parameters that don't exist anymore
2026-02-01 15:49:41 +01:00
Tyler Trahan and GitHub
18f2f7eb2d
Codechange: Use enum class for setting values ( #15074 )
2026-01-10 22:40:48 +00:00
Cyprian Klimaszewski and GitHub
29a26b7f93
Codefix: Earlier return from window functions which use window number ( #14960 )
2025-12-31 22:33:38 +00:00
Charles Pigott and GitHub
3a41738d9f
Fix #15004 : Crash when dropdown is open when end game screen appears ( #15006 )
2025-12-31 22:24:31 +00:00
Rito12 and rubidium42
859b56a066
Doc: Correct file descriptions to match coding style and doxygen.
2025-12-15 17:31:00 +01:00
Cyprian Klimaszewski and GitHub
99f04f27de
Doc: Update information for receiving a copy of GPL. ( #14869 )
2025-12-07 11:25:08 +00:00
mmtunligit and GitHub
7662105081
Change: Clamp terraform toolbar to main toolbar ( #14725 )
2025-11-13 18:25:21 -05:00
Peter Nelson and GitHub
1229a498b7
Codechange: Add constant for INVALID_WIDGET. ( #14649 )
...
Replaces direct use of -1, making it easier to find.
2025-09-21 21:47:04 +00:00
Peter Nelson and Peter Nelson
69697a62d3
Fix 8c58fb1efd: Doubled beep sounds when clicking toolbar buttons.
...
* ShowDropDownList() now issues a beep, so individual toolbar buttons no longer need to do it.
* HandleButtonClick() may be called twice for some buttons, as it is called by automatically for PUSH buttons.
This caused some beeps to sound louder than others.
2025-09-21 10:12:22 +01:00
Peter Nelson and GitHub
129825077b
Change: Apply interface scale to window snap distance. ( #14625 )
2025-09-17 12:29:16 +01:00
Rubidium and rubidium42
7c0f69a8fe
Codefix: typos in comments and strings
2025-08-31 10:30:37 +02:00
Peter Nelson and Peter Nelson
ea9bee2a3e
Fix: Close dropdown menu when user clicks on a differenet window.
...
This did not happen if the clicked window is flagged as unfocusable (i.e. the main toolbar.)
2025-08-18 19:48:22 +01:00
Tyler Trahan and GitHub
8c58fb1efd
Fix: Missing button beeps ( #14470 )
2025-08-05 13:57:45 -04:00
Peter Nelson and Peter Nelson
10841ea3fd
Codechange: Add constant for common blink interval.
2025-06-07 15:50:25 +01:00
Peter Nelson and Peter Nelson
984d864c72
Codechange: Add OnClick handler for dropdown items.
...
This allows each dropdown item to indicate if something different should happen depending on where in the item was clicked.
2025-05-25 09:13:05 +01:00
Peter Nelson and Peter Nelson
7344dfe651
Change: Reflow Textfile window content incrementally.
...
This avoids a stall when reflowing a long text file with some truetype fonts.
2025-05-23 07:42:10 +01:00
Peter Nelson and Peter Nelson
780c26237f
Codechange: Add OnScrollbarScroll window event, called when a scrollbar position changes.
2025-05-23 07:42:10 +01:00
frosch and GitHub
c037722cb5
Fix 51a7edd: NewGRF debug sprite picker was broken. ( #14246 )
2025-05-10 20:27:43 +02:00
frosch and frosch
51a7edd941
Codechange: Remove _input_events_this_tick.
2025-05-06 18:29:41 +02:00
frosch and frosch
0d5b3ebd7f
Codechange: Declare all IntervalTimers const, which can be const.
2025-05-06 18:29:41 +02:00
Peter Nelson and Peter Nelson
dabf2ede67
Change: Add methods to close child windows with a specific window number.
2025-05-04 19:36:46 +01:00
Peter Nelson and GitHub
3e608b5fe4
Fix: Zoom-scroll extra viewports only if the mouse cursor is over the viewport. ( #14209 )
2025-05-04 14:16:05 +01:00
frosch and frosch
8571af9833
Codechange: Turn ZoomLevel into enum class.
2025-05-03 23:21:09 +02:00
Rubidium and rubidium42
7805c1c189
Codechange: use std::string_view for ini_key
2025-05-01 23:24:43 +02:00
frosch and frosch
66733e2a50
Codechange: Use std::string_view in IME input handling.
2025-04-30 19:33:56 +02:00
Rubidium and rubidium42
ef71ce0a9d
Codechange: return std::string_view for Textbuf::GetText()
2025-04-29 22:15:49 +02:00
Peter Nelson and GitHub
7846f0f4ee
Fix a4dc7249ee: Changing language or interface scale could hang. ( #14087 )
...
A bit of hysteresis caused by OnResize calling ReInit calling OnResize calling ReInit calling OnResize calling ReInit ...
2025-04-24 00:29:54 +01:00
Peter Nelson and GitHub
788845f731
Change: Allow Double-Ctrl+Click on default size box to clear saved size. ( #14055 )
2025-04-21 14:16:29 +01:00
Peter Nelson and GitHub
e9a92b8795
Fix: Odd drawing and crash if scrollbar is not tall enough. ( #14052 )
...
Under certain conditions the scrollbar "tab" could be too large for the scrollbar, and cause issues.
Caused by an off-by-one in height calculation.
2025-04-20 23:23:52 +01:00
Peter Nelson and GitHub
2c59838acb
Codechange: (re)set multiple bitset flags in one call. ( #14017 )
2025-04-18 14:07:57 +01:00
Peter Nelson and Peter Nelson
c982816c0e
Codechange: Manage window viewport via unique_ptr.
2025-04-09 22:03:23 +01:00
Peter Nelson and Peter Nelson
8275bbfb87
Codechange: Pass Viewport by reference.
...
This means we do not have to care what type of pointer is used.
2025-04-09 22:03:23 +01:00
Peter Nelson and Peter Nelson
2909a14374
Codechange: Include table/strings.h in files that use StringIDs.
...
Be consistent with how and where the file is incldued.
2025-03-21 12:53:40 +00:00
Peter Nelson and GitHub
de45f5418b
Fix 0de7fd3c24: widget_lookup may contain non-NWidgetCore widgets. ( #13787 )
2025-03-09 19:49:26 +00:00
Rubidium and rubidium42
0de7fd3c24
Codefix: check the result of dynamic_cast for nullptr
2025-03-09 19:35:14 +01:00
Peter Nelson and GitHub
274b7a0195
Fix #13645 : "Follow vehicle" button not raised when following stopped. ( #13746 )
2025-03-06 00:00:57 +00:00
Peter Nelson and Peter Nelson
27761ae431
Cleanup: Remove global string parameters.
...
Global parameters, and functions for dealing with them, are now gone.
2025-03-04 08:48:35 +00:00
Rubidium and rubidium42
d94d421772
Codechange: prepare for replacement of SetStringParameter by GetWidgetString
2025-03-02 11:04:15 +01:00
Rubidium and rubidium42
fd4adc55e3
Codechange: replace INVALID_X with XID::Invalid() for PoolIDs
2025-02-16 20:23:00 +01:00
Peter Nelson and Peter Nelson
2cb9f55183
Codechange: Store EncodedString for tooltip text.
...
This replaces capturing and storing string parameters.
2025-02-10 22:49:14 +00:00
Peter Nelson and Peter Nelson
693a5f42b9
Codechange: Use EnumBitSet for NWidgetDisplayFlags.
2025-02-06 19:43:35 +00:00
Peter Nelson and Peter Nelson
d30e8dd1c1
Codechange: Use EnumBitSet for WindowDefaultFlags.
2025-01-30 08:40:42 +00:00