Peter Nelson
0e4d7c8fe7
Merge 642f4d0ab6
into 9ce2aca949
2025-07-14 18:20:18 +00:00
Peter Nelson
9ce2aca949
Codechange: Get/pass ScriptStorage by reference instead of pointer.
2025-07-14 19:19:29 +01:00
Peter Nelson
55098a2f2e
Codechange: Get/pass engine by reference instead of pointer.
2025-07-14 19:19:29 +01:00
Peter Nelson
7ff0c67f77
Codechange: Get/pass script controller by reference instead of pointer.
2025-07-14 19:19:29 +01:00
Peter Nelson
b2de1ff66f
Fix #14433 : Broken road stop drawing due to incorrect modes conversion. ( #14434 )
...
The mask was treated as a single RoadStopDrawMode instead of a RoadStopDrawModes bitset.
2025-07-14 17:25:53 +01:00
Loïc Guilloux
fc924161ab
Fix 0455627d: Don't draw timetable panel if no orders ( #14441 )
2025-07-14 14:18:54 +00:00
Peter Nelson
61a299bc99
Codechange: Use SpriteID as GlyphID for SpriteFontCache. ( #14439 )
...
This reduces the amount of lookups in the character map as rendering a cached layout no longer needs to do so.
2025-07-14 13:28:10 +01:00
Peter Nelson
7546c1acab
Codefix f220ed179d: GetUnicodeGlyph takes a unicode character. ( #14438 )
...
Previous change erroneously changed type to GlyphID, based on naming. It should actually be char32_t.
2025-07-14 08:01:42 +00:00
Peter Nelson
a6143eea21
Codechange: Include more relevant headers for script_storage. ( #14437 )
2025-07-14 07:49:50 +01:00
Peter Nelson
1d38cbafcb
Codechange: Use unique_ptr for ScriptInfo instances.
...
Replaces raw pointers, slightly.
2025-07-14 00:10:14 +01:00
Peter Nelson
992d58d799
Codechange: Pass ScriptInfo by reference to IsSameScript.
2025-07-14 00:10:14 +01:00
Peter Nelson
8f34b7a821
Codechange: Keep Squirrel engine in unique_ptr.
2025-07-14 00:10:14 +01:00
Peter Nelson
bf6d0c4934
Codechange: Don't pre-fill font metrics when loading fonts. ( #14436 )
...
Each font cache implementation sets its own metrics based on the loaded font, so there is no need to pre-fill with (unscaled, invalid) default metrics.
2025-07-13 23:38:31 +01:00
Michael Lutz
3c4fb21a5e
Fix: [Win32] Link failure with newer Windows SDK version due to WinRT changes. ( #14432 )
2025-07-13 22:34:32 +01:00
translators
baced00e9f
Update: Translations from eints
...
spanish (mexican): 1 change by absay
english (us): 1 change by 2TallTyler
galician: 10 changes by pvillaverde
dutch: 1 change by Afoklala
portuguese: 10 changes by jcteotonio
2025-07-13 04:45:12 +00:00
Peter Nelson
642f4d0ab6
Change: Add support for different horizontal graph scales.
2025-07-11 08:58:19 +01:00
Peter Nelson
0a5e26a507
Codechange: Extend industry cargo history to 24 years.
...
Monthly data is stored for the current 24 months.
Quarterly data is stored for a further 2-6 years.
Yearly data is stored for a further 6-24 years.
2025-07-11 08:58:19 +01:00
translators
aaf5d39b15
Update: Translations from eints
...
english (au): 1 change by krysclarke
chinese (traditional): 1 change by KogentaSan
chinese (simplified): 1 change by WenSimEHRP
korean: 1 change by telk5093
greek: 1 change by gh658804
russian: 1 change by Ln-Wolf
finnish: 1 change by hpiirai
portuguese: 1 change by azulcosta
portuguese (brazilian): 1 change by pasantoro
polish: 1 change by pAter-exe
2025-07-11 04:45:38 +00:00
Richard Wheeler
7db135099a
Fix: Scale graph gridlines and axes with GUI scale ( #12131 )
2025-07-10 00:05:48 +01:00
Peter Nelson
e7b0ab3bfc
Add: Industry accepted and waiting history graphs.
...
Records amount of cargo accepted, and a rolling average of the waiting amount.
Average waiting samples the waiting amount once per day for each industry, spread out over an economy day.
2025-07-09 23:14:50 +01:00
Peter Nelson
2b46fba638
Codechange: Allow unused graph ranges to be masked.
2025-07-09 23:14:50 +01:00
Peter Nelson
290144c5c9
Fix #14396 : Industry production graph showed zero instead of N/A.
...
Record the number of valid history records per industry so that the graph avoids showing values which are not present as zero.
2025-07-09 23:02:58 +01:00
Peter Nelson
9b55ad5b8d
Codechange: Generic type and container for history statistics.
2025-07-09 23:02:58 +01:00
Peter Nelson
f6e78a480d
Change: Make truncation ellipsis translatable. ( #14417 )
2025-07-09 22:55:43 +01:00
Tyler Trahan
259830777c
Fix #14375 : When loading config, validate timekeeping mode and minutes per year ( #14405 )
2025-07-09 16:04:38 -04:00
Tyler Trahan
753905ae2d
Fix #14377 : Make house picker window remember house protection state when closed ( #14406 )
2025-07-09 14:18:19 +00:00
Peter Nelson
d2ee2add28
Codechange: Remove ZOOM_LVL_GUI macro. ( #14423 )
2025-07-09 11:05:06 +01:00
translators
8de32c4509
Update: Translations from eints
...
portuguese: 7 changes by jcteotonio
2025-07-09 04:45:29 +00:00
Peter Nelson
77b572619a
Codechange: Make use of ZoomLevels range iteration. ( #14422 )
2025-07-08 14:00:12 +01:00
Peter Nelson
b21c8a3450
Codechange: Simplify test for bridges above bridge ramps. ( #14421 )
2025-07-08 13:55:36 +01:00
translators
6d86c760c6
Update: Translations from eints
...
hungarian: 9 changes by vargaviktor
2025-07-08 04:43:02 +00:00
translators
d44e693b25
Update: Translations from eints
...
norwegian (bokmal): 17 changes by eriksorngard
spanish (mexican): 6 changes by absay
english (us): 21 changes by 2TallTyler
2025-07-07 04:45:34 +00:00
translators
b0ea6c0974
Update: Translations from eints
...
chinese (traditional): 6 changes by KogentaSan
chinese (simplified): 6 changes by WenSimEHRP
2025-07-06 04:44:01 +00:00
Peter Nelson
84e9e106c1
Codefix: SpriteFontCache was never deleted. ( #14414 )
2025-07-05 13:22:45 +01:00
translators
ebd984d894
Update: Translations from eints
...
english (au): 3 changes by krysclarke
korean: 6 changes by telk5093
greek: 3 changes by gh658804
russian: 3 changes by Ln-Wolf
dutch: 6 changes by Afoklala
portuguese: 4 changes by jcteotonio
portuguese (brazilian): 3 changes by pasantoro
2025-07-05 04:43:09 +00:00
translators
f23845805a
Update: Translations from eints
...
english (au): 6 changes by krysclarke
greek: 7 changes by gh658804
russian: 6 changes by Ln-Wolf
finnish: 25 changes by hpiirai
portuguese: 19 changes by jcteotonio
portuguese (brazilian): 6 changes by pasantoro
polish: 6 changes by pAter-exe
2025-07-04 04:42:38 +00:00
Loïc Guilloux
655291facb
Fix #14385 : [Strgen] Don't count parameters more than one time ( #14413 )
2025-07-04 01:10:50 +02:00
Peter Nelson
16b0371c1b
Codechange: Remove owner from CargoPayment. ( #14411 )
...
Owner can instead be looked up from the CargoPayment's vehicle.
This reduces the size of each CargoPayment slightly.
2025-07-03 23:11:12 +01:00
Heikki Piirainen
febba930b0
Fix: Inconsistent capitalization in game settings
2025-07-03 17:11:51 +02:00
translators
bf07751ee7
Update: Translations from eints
...
spanish (mexican): 12 changes by absay
portuguese: 1 change by jcteotonio
2025-07-03 04:44:02 +00:00
Tyler Trahan
e578668a93
Fix #14360 : Don't reuse strings for Low/Medium/High setting values ( #14409 )
2025-07-02 06:09:39 -04:00
translators
226b098c55
Update: Translations from eints
...
portuguese: 17 changes by jcteotonio
2025-07-02 04:42:46 +00:00
Peter Nelson
0391eec189
Change: Improve sprite ellipsis appearance. ( #14404 )
...
Make spacing more consistent with periods.
2025-07-01 17:34:26 +01:00
translators
b84b641ed9
Update: Translations from eints
...
hungarian: 7 changes by vargaviktor
2025-07-01 04:45:31 +00:00
Peter Nelson
4fe6adb2dd
Fix c2d4098afa: Crash when accessing unconfigurable badge feature. ( #14403 )
...
Some features support badges but do not have a way to configure them. Accessing these features could crash the game.
2025-06-30 21:45:08 +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
42a9d27fd9
Fix: Don't draw truncation ellipsis if it's too wide. ( #14401 )
2025-06-30 20:40:04 +01:00
Peter Nelson
80d2194511
Fix: Don't include ellipsis width in RTL truncation offset. ( #14400 )
...
This caused the right-most glyphs to be truncated.
2025-06-30 10:03:24 +01:00
translators
7c33a67e7b
Update: Translations from eints
...
galician: 30 changes by pvillaverde
danish: 6 changes by bscargo
2025-06-30 04:44:29 +00:00
translators
9bcf1cf29b
Update: Translations from eints
...
korean: 8 changes by telk5093
polish: 3 changes by pAter-exe
2025-06-29 04:45:43 +00:00