Peter Nelson
1278f62e2e
Codechange: Call shorter variant of DrawFrameRect and GfxFillRect. ( #14647 )
...
Pass rect instead of breaking it up when possible.
2025-09-21 20:30:59 +01:00
Peter Nelson
71eba489bc
Codechange: Deduplicate DrawButtonDropdown. ( #14646 )
...
Use Rect methods to position components.
2025-09-21 20:26:06 +01:00
Peter Nelson
a7b06fc9f5
Codechange: Don't use Point for non-2D coordinate. ( #14645 )
...
`HandleScrollbarHittest` returns min and max coordinates, not x and y.
Also avoid referring to the min and max coordinates as top and bottom, as these functions are used for both vertical and horizontal scrollbars.
2025-09-21 14:57:53 +01:00
Peter Nelson
29012c3fce
Codechange: Move settings entry size global variables. ( #14644 )
...
_setting_circle_size and (the incorrectly named) SETTING_HEIGHT variables are now static members of BaseSettingEntry.
Neither of these are constants, so they no longer use constant naming style.
2025-09-21 13:41:47 +01:00
Peter Nelson
13ab9c1adc
Fix 6e90b828c6: Off-by-one in Rect::CentreTo. ( #14643 )
...
* Rect right/bottom are inclusive so -1 must be taken from width/height.
* Misnamed variable, `new_right` is actually `new_top`.
2025-09-21 13:41:23 +01:00
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
ce166bbbc3
Codechange: Demagicify main toolbar button type.
...
Use WWT_PUSHIMGBTN for non-menu buttons so they automatically raise, replacing the custom OnTimeout function.
2025-09-21 10:12:22 +01:00
Peter Nelson
70d4182850
Fix #14631 , Fix 1cb0cbcb6c: Waypoint customs spec not allocated properly on initial construction. ( #14633 )
...
Split AllocateSpecToStation/RoadStop into Allocate and Assign functions, allowing command tests to occur separately.
2025-09-21 09:32:25 +01:00
translators
030bbc6399
Update: Translations from eints
...
vietnamese: 4 changes by KhoiCanDev
2025-09-21 04:37:37 +00:00
Peter Nelson
d07ff71c67
Fix ed67aedabf: Wrong button type for town menu in scenario editor toolbar. ( #14641 )
...
The button was changed from an action to a menu, which should be WWT_IMGBTN instead of WWT_PUSHIMGBTN.
2025-09-21 01:25:31 +00:00
Tyler Trahan
20067d2db5
Doc: Update station rating comments and doxygen.
2025-09-20 19:28:40 -04:00
Tyler Trahan
2ab3b5516f
Codechange: Early continue for cargos not moved by this station
2025-09-20 19:28:40 -04:00
Kuhnovic
1ac5baab31
Change: Add lock penalty to ship pathfinder. ( #14603 )
2025-09-20 22:52:59 +02:00
Kuhnovic
bff850128c
Codechange: Use YAPF for river builder pathfinder. ( #14606 )
2025-09-20 21:42:06 +02:00
translators
2aaffbe23c
Update: Translations from eints
...
korean: 8 changes by telk5093
dutch: 4 changes by Afoklala
portuguese: 10 changes by jcteotonio
2025-09-20 04:37:32 +00:00
Peter Nelson
68e37b7b50
Change: [Script] Decouple RAILTYPE_INVALID from internal presentation. ( #14630 )
...
RAILTYPE_INVALID is now -1, which matches ROADTYPE_INVALID.
2025-09-19 22:02:08 +01:00
translators
264cbd8ab5
Update: Translations from eints
...
english (au): 4 changes by krysclarke
portuguese: 13 changes by jcteotonio
2025-09-19 04:38:27 +00:00
Peter Nelson
17fbe0b911
Change: Determine automatic interface scale by window size. ( #14627 )
...
Replace OS-dependent interface scaling with scaling dependent on the window size.
This works on all platforms and should provide a more comfortable experience for new players. Manual interface scale setting works as before.
2025-09-18 18:52:14 +01:00
translators
2d13bcb7b9
Update: Translations from eints
...
french: 5 changes by ottdfevr
portuguese: 31 changes by jcteotonio
2025-09-18 04:37:46 +00:00
Jonathan G Rennison
d54bf49936
Fix: Variant cycle detection in FinaliseEngineArray ( #14629 )
2025-09-17 22:42:42 +01:00
Kuhnovic
262c364a28
Fix #14620 : Use full file path when deleting files. ( #14623 )
2025-09-17 21:43:22 +02:00
Peter Nelson
129825077b
Change: Apply interface scale to window snap distance. ( #14625 )
2025-09-17 12:29:16 +01:00
translators
445d2b3e22
Update: Translations from eints
...
swedish: 2 changes by robert-i
norwegian (bokmal): 4 changes by eriksorngard
chinese (traditional): 5 changes by KogentaSan
english (us): 5 changes by 2TallTyler
greek: 2 changes by gh658804
russian: 2 changes by Ln-Wolf
finnish: 2 changes by hpiirai
danish: 2 changes by bscargo
portuguese: 6 changes by jcteotonio
portuguese (brazilian): 9 changes by pasantoro
polish: 12 changes by pAter-exe
2025-09-17 04:37:43 +00:00
translators
f487cde056
Update: Translations from eints
...
swedish: 2 changes by robert-i
greek: 2 changes by gh658804
russian: 3 changes by Ln-Wolf
finnish: 2 changes by hpiirai
danish: 3 changes by New-Authentication
portuguese: 44 changes by jcteotonio
portuguese (brazilian): 2 changes by pasantoro
polish: 2 changes by pAter-exe
2025-09-16 04:37:32 +00:00
Tyler Trahan
5dea170589
Fix #14588 : Show error when unable to clone partly-cleared crashed train ( #14591 )
2025-09-15 19:05:35 -04:00
Kuhnovic
faacae2c3f
Change: Removed disable_node_optimization YAPF setting ( #14578 )
2025-09-15 21:59:12 +02:00
Kuhnovic
26fef5b62b
Fix 4eaeccd: FioRemove should return false if the file does not exist. ( #14619 )
2025-09-15 21:17:18 +02:00
Peter Nelson
f2f6609206
Fix #14572 : Incorrect playlist entry was removed if there are duplicates. ( #14583 )
2025-09-15 18:52:07 +01:00
Peter Nelson
5f20a97b36
Fix 313c6c45aa: [Script] Return rail types as list instead of bitmask. ( #14617 )
...
This is more idiomatic for scripts, and avoids exposing internal representation.
2025-09-15 13:59:04 +01:00
Kuhnovic
7d252ff7fc
Change: Ask for confirmation before deleting a savegame / scenario / heightmap. ( #14621 )
2025-09-15 13:14:56 +02:00
Peter Nelson
7240ed5817
Cleanup 3ac1a2f1e4: Don't load/save a train's railtypes property. ( #14618 )
...
A train's railtypes property is always reset by Train::ConsistChanged on load, so storing is not necessary.
2025-09-15 08:21:09 +01:00
translators
c111abad37
Update: Translations from eints
...
portuguese: 1 change by jcteotonio
2025-09-15 04:38:59 +00:00
Michael Lutz
52e97c981c
Add: Show all railtypes in the build vehicle and engine preview dialogs.
2025-09-14 17:11:26 +02:00
Michael Lutz
313c6c45aa
Add: [Script] Function to get all rail types of an rail engine.
2025-09-14 17:11:26 +02:00
Michael Lutz
1779da51c2
Add: [NewGRF] Train property to set multiple track types for an engine.
2025-09-14 17:11:26 +02:00
Michael Lutz
3ac1a2f1e4
Codechange: Store the rail type of rail engines as a RailTypes bitmask.
2025-09-14 17:11:26 +02:00
Michael Lutz
0715903b24
Codechange: Use an enum for vehicle acceleration model.
2025-09-14 17:11:26 +02:00
translators
748700bd9e
Update: Translations from eints
...
catalan: 2 changes by J0anJosep
latvian: 53 changes by lexuslatvia
portuguese: 36 changes by jcteotonio
2025-09-14 04:38:01 +00:00
translators
96b59af4d1
Update: Translations from eints
...
norwegian (bokmal): 2 changes by eriksorngard
vietnamese: 14 changes by KhoiCanDev
russian: 1 change by Ln-Wolf
dutch: 1 change by Afoklala
2025-09-13 04:36:41 +00:00
Peter Nelson
3356aa7c69
Codechange: Remove two vector typedefs which are only used once. ( #14612 )
2025-09-12 19:41:18 +01:00
Peter Nelson
ee664f7e8c
Codechange: Prefer EnumBitSet's All() method over bitwise comparisons. ( #14611 )
...
This makes the intent of the operation clearer.
2025-09-12 19:37:17 +01:00
Peter Nelson
b1dc37fb05
Fix 9a294ab2ed: Bridge height check for waypoints didn't include axis in layout. ( #14609 )
...
It's unlikely that X and Y axis waypoints have different heights, but not impossible.
2025-09-12 08:28:42 +01:00
translators
3317997976
Update: Translations from eints
...
english (au): 1 change by krysclarke
swedish: 1 change by robert-i
chinese (traditional): 1 change by KogentaSan
chinese (simplified): 2 changes by WenSimEHRP
korean: 1 change by telk5093
greek: 1 change by gh658804
finnish: 1 change by hpiirai
portuguese: 9 changes by jcteotonio
portuguese (brazilian): 1 change by pasantoro
polish: 1 change by Rito13
2025-09-12 04:43:48 +00:00
Peter Nelson
d095526406
Codechange: Range-check rail/road/tram maps by size instead of constant. ( #14602 )
...
* Compare against the size of the array instead of the constant used to define the array.
* `type_map` alias now uses auto to avoid defining the type each time.
* `_cur_gps.grffile->railtype_map` is now aliased to `type_map` to simplify and standardise.
2025-09-11 12:31:34 +01:00
translators
fe9093df96
Update: Translations from eints
...
english (us): 1 change by 2TallTyler
korean: 1 change by telk5093
hungarian: 1 change by vargaviktor
danish: 2 changes by New-Authentication
dutch: 1 change by nicobresseleers
portuguese: 12 changes by jcteotonio
2025-09-11 04:37:58 +00:00
Peter Nelson
e10200efa4
Change: Allow bridges over locks. ( #14595 )
...
The bridge must be at least 2 levels higher than the lock.
2025-09-10 18:41:56 +01:00
translators
eb09d18418
Update: Translations from eints
...
english (au): 1 change by krysclarke
swedish: 1 change by robert-i
chinese (traditional): 1 change by KogentaSan
vietnamese: 1 change by KhoiCanDev
greek: 1 change by gh658804
russian: 1 change by Ln-Wolf
finnish: 1 change by hpiirai
portuguese: 76 changes by jcteotonio
portuguese (brazilian): 1 change by pasantoro
polish: 4 changes by pAter-exe
2025-09-10 04:36:50 +00:00
translators
033114da8c
Update: Translations from eints
...
italian: 64 changes by Boh132Boh
portuguese: 172 changes by jcteotonio
2025-09-09 04:38:39 +00:00
Peter Nelson
5f84ff5c3f
Change: Allow bridges over docks. ( #14594 )
2025-09-08 21:43:31 +01:00
Peter Nelson
43842f0bcc
Fix: Don't add spacing in rail/road type dropdowns if no badges are present. ( #14598 )
2025-09-08 21:42:49 +01:00