Peter Nelson
daef052329
Add: Generic "configure list/view" vertical ellipsis icon.
2025-05-25 09:13:05 +01:00
Peter Nelson
29970fb496
Codechange: Add DropDownToggle component.
2025-05-25 09:13:05 +01:00
Peter Nelson
6e90b828c6
Codechange: Add CentreTo Rect method.
2025-05-25 09:13:05 +01:00
Peter Nelson
c213218b66
Codechange: Pass click state to Dropdown Draw() function.
...
This allows drawing to change depending on last click position.
2025-05-25 09:13:05 +01: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
Peter Nelson
04e07dff84
Codechange: Add Up/Down buttons, to fit in with the settings-button style.
2025-05-25 09:13:05 +01:00
translators
b82e32c360
Update: Translations from eints
...
norwegian (bokmal): 1 change by eriksorngard
spanish (mexican): 1 change by absay
chinese (simplified): 1 change by WenSimEHRP
korean: 1 change by telk5093
danish: 68 changes by bscargo
2025-05-25 04:48:20 +00:00
Loïc Guilloux
5e765a2787
Codechange: [CMake] Use ".sq.hpp" instead of ".hpp.sq" for API exports ( #14297 )
2025-05-24 22:38:37 +02:00
Kuhnovic
34c0b09764
Codechange: Removed T prefix from water region related types. ( #14290 )
2025-05-24 18:12:16 +02:00
Loïc Guilloux
fea120a710
Fix #14295 , 0455627d16: v->cur_implicit_order_index is never INVALID_VEH_ORDER_ID ( #14296 )
2025-05-24 13:53:51 +00:00
translators
c366e6a48e
Update: Translations from eints
...
chinese (simplified): 1 change by WenSimEHRP
dutch: 1 change by Afoklala
2025-05-24 04:44:57 +00:00
Peter Nelson
b42abfbefc
Fix 0455627d16: Incorrect script order position mapping. ( #14294 )
2025-05-23 19:55:22 +01:00
Kuhnovic
180ec6505b
Codechange: Use strong types for water regions. ( #14289 )
2025-05-23 20:54:42 +02:00
Peter Nelson
0455627d16
Codechange: Move ownership of Orders to OrderList. ( #13948 )
...
Removes the orders pool, and orders are now stored directly in each OrderList.
Iterating orders now no longer needs to traverse a linked-list, all orders in an OrderList are sequential.
2025-05-23 10:36:28 +01:00
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
46b745a06a
Codechange: Use a helper method to test if text file window is wrapped.
2025-05-23 07:42:10 +01:00
Peter Nelson
940071a5f2
Codechange: Add alternating iterator to take elements from middle of range.
2025-05-23 07:42:10 +01:00
Peter Nelson
780c26237f
Codechange: Add OnScrollbarScroll window event, called when a scrollbar position changes.
2025-05-23 07:42:10 +01:00
translators
321f7e8683
Update: Translations from eints
...
swedish: 3 changes by joeax910
2025-05-23 04:45:57 +00:00
Peter Nelson
1064309ecf
Change: Don't measure group name widths in company livery window. ( #14291 )
...
Measuring the name width did not also take account of indentation levels so didn't prevent cropping, and the window can be resized anyway.
This avoids a potential bottleneck due to layouting group names if there are a lot of groups present.
2025-05-22 22:57:50 +01:00
SamuXarick
5fef32bde7
Change: [Script] Move GSStation::GetOwner to GSBaseStation::GetOwner ( #13406 )
...
* Add: [Script] GSBaseStation::GetOwner
Added method for Game Scripts to retrieve the owner of a basestation.
* Cleanup: [Script] Remove ScriptStation::GetOwner
Due to class inheritance, GSStation::GetOwner and GSWaypoint::GetOwner can both reach GetOwner defined at GSBaseStation.
2025-05-22 13:47:04 +02:00
translators
467f832c2f
Update: Translations from eints
...
english (au): 1 change by krysclarke
chinese (traditional): 10 changes by KogentaSan
greek: 1 change by gh658804
russian: 1 change by Ln-Wolf
finnish: 1 change by hpiirai
latvian: 1 change by lexuslatvia
portuguese: 1 change by jcteotonio
portuguese (brazilian): 1 change by pasantoro
polish: 10 changes by pAter-exe
2025-05-22 04:47:11 +00:00
Peter Nelson
5fe6578f64
Codechange: Improve performance of exclusive preview engine test. ( #14270 )
...
Check group statistics to test if a company has built an exclusive preview engine.
This improves performance by avoiding iterating the vehicle pool.
2025-05-21 21:19:38 +01:00
Peter Nelson
9f190aa534
Codechange: Use group's children list to improve performance of group UI.
2025-05-21 19:50:07 +01:00
Peter Nelson
000a79c093
Codechange: Improve performance of evaluating group hierarchy.
...
Store a list of child groups in each group, to avoid having to iterate the group pool to find its children.
2025-05-21 19:50:07 +01:00
SamuXarick
8f3f25de4b
Codefix: Missing 'this->' in VehiclesNearTileXY::Iterator::Iterator ( #14288 )
2025-05-21 20:28:47 +02:00
Peter Nelson
1d8db2223f
Fix #14234 , 5aa4ad5135: Crash due to unexpected NUL char in string. ( #14235 )
...
Gracefully handle an unexpected NUL character in non-debug builds.
2025-05-21 18:47:04 +01:00
translators
82876c25e0
Update: Translations from eints
2025-05-21 04:46:46 +00:00
Peter Nelson
a2addf0fe7
Fix: Clear rail vehicle flipped flag if reverse probability callback returns false. ( #14281 )
...
This now distinguishes between not-flipped and callback not implemented.
2025-05-20 23:03:55 +01:00
Peter Nelson
acf594a7b7
Fix #14271 , 7fd0e6c27d: Crash due to incorrect parameter index in string. ( #14272 )
2025-05-20 23:03:27 +01:00
Loïc Guilloux
4b1b2a4310
Change: [Script] Don't allow scripts to instantiate ScriptEvent ( #14276 )
2025-05-20 15:37:05 +02: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
frosch
c1389c77b2
Codechange: ParseInteger optionally clamps out-of-range values, instead of treating them as invalid.
2025-05-20 12:57:30 +02:00
translators
ecadf1b322
Update: Translations from eints
...
hungarian: 4 changes by meskobalazs
2025-05-20 04:46:13 +00:00
Peter Nelson
ce83f583bc
Codechange: Use EnumBitSet for VehicleRailFlags. ( #14280 )
2025-05-19 18:56:45 +01:00
Peter Nelson
77d6f6c69f
Codechange: Make ContentType::State an enum class. ( #14279 )
2025-05-19 17:11:28 +01:00
SamuXarick
ad3a34e9ef
Add: [Script] ScriptVehicleList_Waypoint ( #13456 )
...
Creates a list of vehicles that have orders to a given waypoint.
2025-05-19 14:48:17 +02:00
Loïc Guilloux
1b0fd0e6fd
Fix b2c57123: [Script] Conversion from ScriptEvent to ScriptEventCompanyTown subclasses ( #14274 )
2025-05-18 15:40:47 +02:00
translators
9bbc525e53
Update: Translations from eints
...
catalan: 17 changes by J0anJosep
2025-05-18 04:50:09 +00:00
Peter Nelson
940a7127f8
Fix f8bdc1e612: Empty first parameter of EncodedString was skipped. ( #14273 )
...
This would place the remaining parameters one position too early.
2025-05-17 22:55:48 +00:00
translators
617169c1c9
Update: Translations from eints
...
norwegian (bokmal): 2 changes by eriksorngard
english (us): 9 changes by 2TallTyler
romanian: 3 changes by The-Bober
dutch: 2 changes by Afoklala
2025-05-17 04:44:32 +00:00
translators
521d0465d9
Update: Translations from eints
...
korean: 2 changes by telk5093
hungarian: 26 changes by meskobalazs
2025-05-16 04:47:27 +00:00
translators
6c84dd1f32
Update: Translations from eints
...
persian: 371 changes by realsepehrz
romanian: 49 changes by The-Bober
portuguese: 2 changes by azulcosta
2025-05-15 04:46:38 +00:00
Peter Nelson
c8a336f760
Codechange: Move GetNthSetBit() to BaseBitSet.
...
This now returns the correct type, or std::nullopt instead of -1.
2025-05-14 07:22:12 +01:00
Peter Nelson
c50ee282f9
Codechange: EnumBitSet bits can be iterated directly.
2025-05-14 07:22:12 +01:00
Peter Nelson
66c16a1d1f
Codechange: Add Count() method to BaseBitSet.
2025-05-14 07:22:12 +01:00
translators
ecc3438519
Update: Translations from eints
...
polish: 2 changes by pAter-exe
2025-05-14 04:46:05 +00:00
Loïc Guilloux
c16d5f3a8d
Change: [Script] ScriptVehicleList_Station accepts an optional VehicleType parameter ( #14260 )
2025-05-13 16:41:23 +02:00
Peter Nelson
87fa1e41d5
Codechange: Use std::byte for sound buffers.
2025-05-13 14:51:17 +01:00
Peter Nelson
5585363407
Codechange: Use std::byte for glyph sprite buffer.
2025-05-13 14:51:17 +01:00