Rubidium
900192e2cd
Codefix: add missing tracing debug messages for Coordinator/Stun/Turn
2025-12-24 16:18:14 +01:00
glx22
dbecf010eb
Fix #14949 , 0717746: Add the new callbacks to the callback table
2025-12-21 16:24:24 +01:00
glx22
95b913bbb7
Codechange: Check command callbacks registration even in single player
2025-12-21 16:24:24 +01:00
Peter Nelson
f1e831233a
Codefix: Mark destructors override. ( #14925 )
...
Remove some empty destructors.
2025-12-19 18:14:29 +00:00
Rito12
859b56a066
Doc: Correct file descriptions to match coding style and doxygen.
2025-12-15 17:31:00 +01:00
Cyprian Klimaszewski
99f04f27de
Doc: Update information for receiving a copy of GPL. ( #14869 )
2025-12-07 11:25:08 +00:00
Peter Nelson
4b7a3241bf
Codechange: Remove unnecessary 'core' includes. ( #14867 )
2025-12-07 08:36:58 +00:00
Peter Nelson
069833963c
Codechange: Replace drop down list's default bools with DropDownOptions. ( #14837 )
...
Improves maintainability and avoids positional ambiguity.
2025-11-29 16:17:44 +00:00
Peter Nelson
66b6d71e32
Codechange: Use std::initializer_list for NWidgetPart data. ( #14749 )
...
Avoids using C/C++ arrays.
2025-11-01 22:33:00 +00:00
Peter Nelson
06b830dc07
Codechange: Prefer string equality instead of comparison. ( #14727 )
2025-10-24 21:30:03 +02:00
Peter Nelson
ff674829f5
Codechange: Replace Rect CentreTo with CentreToHeight. ( #14675 )
...
So far all callers only need to centre vertically, so not having to provide the existing width simplifies calls.
2025-09-28 13:09:36 +00:00
Peter Nelson
81530e2574
Change: Support interface scaling in network client list buttons.
2025-09-28 11:00:07 +01:00
Peter Nelson
cb1c2409e6
Codechange: Rework network client list buttons.
...
Instead of calculating and storing which buttons to display for each
line and then further calculating what each line should be when
displaying it, store everything on one pass.
This simplifies/deduplicates logic.
2025-09-28 11:00:07 +01:00
Peter Nelson
31eec7106b
Codechange: Use Rect WithX/WithY in some places.
2025-09-28 00:31:23 +01:00
Peter Nelson
6ad7c1c40a
Fix d85f4b3ebf: Incorrect row height in network server list. ( #14653 )
2025-09-23 23:15:21 +01:00
Rubidium
7c0f69a8fe
Codefix: typos in comments and strings
2025-08-31 10:30:37 +02:00
Peter Nelson
edc5b8ea1f
Fix #14464 : Invalid string parameter in scenario editor when unable to build industry. ( #14465 )
...
Resolved by removing the Build Industry command callback. This was used to display an error message in the scenario editor, however an error is already automatically displayed.
2025-07-20 14:03:29 +01:00
Peter Nelson
36d7e09369
Fix: Include sort button width in content list header minimal size. ( #14402 )
2025-06-30 20:40:26 +01:00
Peter Nelson
e4cf6ca0ba
Fix: Mis-sized widgets due to missing widget fill. ( #14370 )
...
In most places where we calculate and set widget resize step we neglect
to set widget fill step to match. Initial widget sizing uses fill step
instead of resize step, which means the initial size may not be a
multiple of the resize step as intended. In particular this will cause
WWT_MATRIX to be misrendered.
Whether or not this matters depends on the widget type being resized and
the window layout, however for consistency always set fill step to the
same as resize step when calculating.
2025-06-17 17:40:11 +01:00
Jonathan G Rennison
63f1c2aa3a
Codechange: Use TypedIndexContainer for typed index containers
...
Instead of ReferenceThroughBaseContainer
2025-06-12 18:50:49 +01:00
Peter Nelson
401ebed03a
Add: Show and sort online content version in list. ( #14355 )
2025-06-12 18:27:16 +01:00
Peter Nelson
a6de925ba6
Fix #14333 , 20d83677eb: Incorrect change from index to range iteration. ( #14335 )
2025-06-06 16:57:26 +00:00
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
frosch
2926179d02
Fix: Restore the behaviour when entering numbers in query windows: clamp integers out of range to the maximum valid value.
2025-05-20 12:57:30 +02:00
Peter Nelson
77d6f6c69f
Codechange: Make ContentType::State an enum class. ( #14279 )
2025-05-19 17:11:28 +01:00
Peter Nelson
d9247fa1a0
Change: Remove extra close buttons from some windows. ( #14124 )
...
All windows have an X button to close it, so remove the redundant close buttons.
2025-05-12 14:54:44 +01:00
Rubidium
a48a5f0cc6
Codechange: replace memcpy with std::copy_n
2025-05-10 16:50:58 +02:00
Rubidium
f8aceb6c37
Codechange: use value initialisation over memset
2025-05-09 17:20:41 +02:00
Rubidium
92bd78dd25
Codechange: use std::ranges::fill over memset
2025-05-09 17:20:41 +02:00
frosch
d00196cd65
Change: Rearrange buttons in the intro screen, remove unnecessary ones.
2025-05-07 18:41:48 +02:00
Peter Nelson
c4d033967b
Codechange: Remove some unnecessary includes from network files. ( #14226 )
2025-05-07 16:46:14 +01:00
frosch
cd7ac64f9d
Codefix: Fix compilation with DEBUG_DUMP_COMMANDS. ( #14228 )
2025-05-06 21:11:30 +02:00
frosch
0d5b3ebd7f
Codechange: Declare all IntervalTimers const, which can be const.
2025-05-06 18:29:41 +02:00
frosch
61cec33be2
Codechange: Add 'const' to static variables, which are only initialised once.
2025-05-06 18:29:41 +02:00
Peter Nelson
d571491405
Codechange: Replace std::bitset<CONTENT_TYPE_END> with ContentTypes. ( #14223 )
...
#14214 added `ContentTypes` as en `EnumBitSet`, but some std::bitset existed already; they are now `ContentTypes` too.
2025-05-06 17:20:01 +01:00
Peter Nelson
2355d67e11
Codechange: Use EnumBitSet instead of Vector to record received content types. ( #14214 )
2025-05-05 08:55:34 +01:00
Peter Nelson
ac76212b80
Fix: Closing the Game Options window closes all textfile windows.
...
Record the parent window that opens a textfile window so only child windows are closed instead of all.
2025-05-04 19:36:46 +01:00
Rubidium
5e3c7c4146
Codechange: char* -> char *
2025-05-04 10:43:56 +02:00
Rubidium
3f2b39e3f8
Codechange: replace char* where out-of-date
2025-05-04 10:43:56 +02:00
Rubidium
96fd291693
Codechange: introduce GetEnv that returns optional based on std::getenv
2025-05-03 15:58:14 +02:00
Rubidium
1f39d469ff
Codechange: pass the characters to trim to StrTrimView
2025-05-03 15:57:53 +02:00
Rubidium
7805c1c189
Codechange: use std::string_view for ini_key
2025-05-01 23:24:43 +02:00
frosch
9cf36dac39
Codechange: Use data() instead of c_str(), if no NUL termination is needed.
2025-04-30 19:33:56 +02:00
frosch
9e90d4ed79
Codefix: Do not assign nullptr to std::string_view.
2025-04-30 19:33:56 +02:00
frosch
36ce1f890a
Codechange: Remove c_str, if std::string_view is already accepted.
2025-04-30 19:33:56 +02:00
Rubidium
ef71ce0a9d
Codechange: return std::string_view for Textbuf::GetText()
2025-04-29 22:15:49 +02:00
frosch
afe3dfb3a4
Codechange: Use format instead of to_string.
2025-04-29 20:26:23 +02:00
frosch
fda93b6f35
Codechange: Add format_append as short-hand to format_to + back_inserter.
2025-04-29 20:26:23 +02:00
frosch
cdafc50c94
Codechange: Replace atoi and atoll with ParseInteger.
2025-04-29 20:14:56 +02:00
frosch
79b2202f2e
Codechange: Use StringConsumer for parsing more strings.
2025-04-29 20:14:56 +02:00