frosch
2bee313642
Codechange: Replace FindVehicleOnPos with 'for' loop.
2025-04-22 22:12:59 +02:00
frosch
06c399b79e
Codechange: Replace HasVehicleOnPos and callbacks with HasVehicleOnTile and lambda-predicates.
2025-04-22 22:12:59 +02:00
frosch
dacd77b2bd
Codechange: Use FindVehicleOnPos instead of HasVehicleOnPos, if there is no stop condition.
2025-04-22 22:12:59 +02:00
frosch
fca3103d8c
Codechange: Add iterator for vehicles on a tile.
2025-04-22 22:12:59 +02:00
Rubidium
917ef03e97
Codechange: use std::string_view in IConsole settings API
2025-04-22 19:52:37 +02:00
Rubidium
b279bc37e7
Codechange: use std::string_view to set string settings
2025-04-22 19:52:37 +02:00
Rubidium
fdb8defa64
Codechange: use std::string_view to parse setting values
2025-04-22 19:52:37 +02:00
Peter Nelson
12118b201c
Change: Enhance visibility of disabled bool button. ( #14071 )
...
Apply masked fill to background as well.
2025-04-22 17:37:30 +01:00
translators
415ac07a08
Update: Translations from eints
...
chinese (simplified): 32 changes by WenSimEHRP
hungarian: 38 changes by meskobalazs
2025-04-22 04:46:01 +00:00
Peter Nelson
3aa82d5e63
Codechange: Use EnumBitSet for RoadStopStatusFlags. ( #14068 )
2025-04-21 20:16:23 +01:00
Peter Nelson
81edd1123a
Change: Use scaled instead of fixed dimensions for framerate graphs. ( #14039 )
2025-04-21 20:15:57 +01:00
frosch
d7ddea4032
Codechange: Turn AnimationTrigger enums into enum classes. ( #14067 )
2025-04-21 20:53:31 +02:00
frosch
61a0a520f6
Codechange: Unify random trigger enums and turn them into enum classes. ( #14066 )
2025-04-21 20:03:34 +02:00
frosch
f399b8eb29
Codechange: Unify naming of NewGRF animation callbacks.
2025-04-21 19:06:13 +02:00
frosch
264abfafe6
Codechange: Rename storage of random triggers to include the term 'random'.
2025-04-21 19:06:13 +02:00
frosch
39220a5feb
Codechange: Unify naming of NewGRF random trigger functions.
2025-04-21 19:06:13 +02:00
frosch
368d131fb7
Codechange: Use 'construction stage' consistently, instead of 'construction state'.
2025-04-21 19:06:13 +02:00
frosch
98445088b1
Codechange: Move VehicleEnteredDepotThisTick call to a more suitable position. ( #14065 )
2025-04-21 17:52:03 +02:00
Peter Nelson
7d03cee512
Change: Include dragged train in depot tile length display. ( #14060 )
...
In the depot, when dragging a train over another train, the tile length displayed now includes the length of the dragged train.
As the parts are not moved yet, length changes due to callbacks are not taken into account.
2025-04-21 16:37:10 +01:00
frosch
2a62eea005
Codefix: Comment style. ( #14064 )
2025-04-21 17:25:09 +02:00
Peter Nelson
5b2754fdee
Change: Use standard boolean toggle buttons for game options toggles.
2025-04-21 16:23:11 +01:00
Peter Nelson
d89753b88d
Codechange: Add dedicated widget for boolean toggle buttons.
2025-04-21 16:23:11 +01:00
Peter Nelson
e3d2d68bd4
Change: Draw boolean toggle as a slider widget.
...
This improves usability as the slider position indicates the state instead of a red/green colour change.
2025-04-21 16:23:11 +01:00
Rubidium
e3858e81dc
Codechange: use std::string_view over const std::string& for finding files
2025-04-21 17:20:00 +02:00
frosch
354ad43edb
Codechange: Remove unnecessary string constructions. ( #14063 )
2025-04-21 16:46:31 +02:00
Peter Nelson
e1fdc10227
Fix e114ed357d: Incorrect test of object flags allowed HQ to be removed. ( #14062 )
2025-04-21 15:45:29 +01:00
Loïc Guilloux
305c892b3a
Change: "setting" console command now shows default value ( #14061 )
2025-04-21 16:00:37 +02:00
Peter Nelson
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
0cf7048a67
Change: Don't select content when toggling its download status. ( #14059 )
...
This improves usability when toggling content sorted by status, as the list position no longer jumps to the now (de)selected item, making it easier to (de)select multiple items.
2025-04-21 13:20:52 +01:00
Peter Nelson
9ff2b4991f
Change: Add scrollbar to infrastructure window. ( #14056 )
...
Company infrastructure window will no longer overflow the screen when lots of rail and road types are present.
To further declutter the list, we now only show a value when the count for that item is non-zero.
2025-04-21 08:46:09 +01:00
translators
5502618ac3
Update: Translations from eints
...
romanian: 1 change by ALEX11BR
2025-04-21 04:45:21 +00:00
Peter Nelson
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
frosch
0efbb3a7a7
Doc: PR template referenced non-existing label. ( #14050 )
2025-04-20 23:02:33 +02:00
frosch
689f55a0ea
Fix #14044 : Negative string parameters from GS were rendered as zero. ( #14049 )
...
String parameters are always stored as uint64_t. Negative values are sign-extended to int64_t and then casted to uint64_t.
The same applies to encoded strings. But ScriptText encoded them as int64_t.
Co-authored-by: rubidium42 <rubidium42@users.noreply.github.com>
2025-04-20 23:01:49 +02:00
Rubidium
4e14f0ac3f
Codechange: pass network tokens as std::string_view or with move semantics where appropriate
2025-04-20 22:43:24 +02:00
Rubidium
c13956a58a
Codechange: use std::string_view for connection strings
2025-04-20 22:43:24 +02:00
Rubidium
31433882a4
Codechange: use std::string_view for passing NetworkError strings
2025-04-20 22:43:24 +02:00
frosch
8aa2f6b8a6
Codefix: StringConsumer integer parsing failed for the most negative value, which has no positive equivalent. ( #14048 )
2025-04-20 22:20:53 +02:00
Peter Nelson
fc45bb5a2b
Codechange: Replace bitstuffed VehicleEnterTileStatus. ( #14027 )
...
VehicleEnterTileStatus was an bitset-style enum, but bitstuffed with a StationID. However the StationID part was only used by trains, and only in two locations.
Instead, return just the enum bitset. The two places which require the StationID just call GetStationIndex() directly.
2025-04-20 21:10:02 +01:00
frosch
cb113cfed0
Codefix: Add missing header includes.
2025-04-20 22:06:18 +02:00
frosch
461b73e21b
Codefix: stdafx.h and safeguards.h should be the first and last include in every source file, and not appear in any header file.
2025-04-20 22:06:18 +02:00
frosch
54de376c55
Codechange: Make the squirrel-exporter skip ctor lists.
2025-04-20 21:07:12 +02:00
frosch
6256b55671
Codechange: Make the squirrel-exporter skip function bodies.
2025-04-20 21:07:12 +02:00
Rubidium
26de3404a4
Codechange: use std::string_view for sending chat messages
2025-04-20 13:31:41 +02:00
Rubidium
bb259b8e77
Codechange: use std::string_view for sending a remote console command (result)
2025-04-20 13:31:41 +02:00
Rubidium
d99edf2bbc
Codechange: use std::string_view for kicking/banning
2025-04-20 13:31:41 +02:00
Rubidium
a0246bc8a7
Codechange: use std::string_view over std::string for NetworkTextMessage
2025-04-20 13:31:41 +02:00
Rubidium
a0e4dab771
Codechange: use std::string_view for NetworkAddress::IsInNetmask of std::string
2025-04-20 13:31:41 +02:00
frosch
ff2da0fc73
Codechange: Remove CircularTileSearch.
2025-04-20 12:50:45 +02:00
frosch
b956af631e
Codechange: Replace CircularTileSearch with SpiralTileSequence.
2025-04-20 12:50:45 +02:00