Commit Graph

55117 Commits

Author SHA1 Message Date
Jonathan G Rennison
9f89f1fb42 Tracerestrict: Do not change copy button selection plane when active 2023-05-16 19:53:24 +01:00
Jonathan G Rennison
cd0cc13724 Suppress calls to AdjustGUIZoom during startup phase
See: #518
2023-05-15 20:16:10 +01:00
Jonathan G Rennison
9e1066049f Reduce strength of station rating source station penalty on truncation 2023-05-15 19:38:02 +01:00
Jonathan G Rennison
90abfff45c Fix adjacent level crossings left barred after removing middle of crossing
See: #517
2023-05-14 22:31:29 +01:00
Jonathan G Rennison
f06160b882 Script: Remove command delay for non-network GS when game paused due to GS 2023-05-14 18:56:09 +01:00
Jonathan G Rennison
7bc6c4b59c Script: Boost gamescript op limit when game is paused due to game script 2023-05-14 18:04:42 +01:00
Jonathan G Rennison
1b6d1086d0 Script: Add ScriptInstance field for script type 2023-05-14 17:54:42 +01:00
Jonathan G Rennison
4ed0c23644 Add text to warning dialog when overwriting a non-extended version save 2023-05-14 12:47:17 +01:00
Jonathan G Rennison
b26d91770f Allow using ShowQuery with std::string texts 2023-05-14 12:46:07 +01:00
Jonathan G Rennison
b8f2d96250 Fix showing overwriting different save file warning when file name changed 2023-05-14 10:52:50 +01:00
Jonathan G Rennison
3573571229 Allow changing tree placement algorithm setting in game 2023-05-14 09:58:44 +01:00
Jonathan G Rennison
1bee438aff Re-add vertical spacer in slots window right panel
See: #515
2023-05-13 17:07:33 +01:00
Jonathan G Rennison
d5c651dc0b Fix width of left panel in slots window when using UI scaling
See: #515
2023-05-13 12:24:31 +01:00
Jonathan G Rennison
a6ba3de7e9 Fix slots window not being horizontally resizable
See: #515
2023-05-13 12:18:23 +01:00
Jonathan G Rennison
c4fc71339a Update orders window when renaming/removing dispatch schedule 2023-05-13 11:55:17 +01:00
Jonathan G Rennison
2abdd27d02 Fix crash when selecting conditional orders in order window 2023-05-13 11:33:41 +01:00
Jonathan G Rennison
1d29116df9 Version: Committing version data for tag: jgrpp-0.53.2 2023-05-11 23:32:09 +01:00
Jonathan G Rennison
e74e08bf47 Fix manual tree planting in artic climate in perfect tree placement mode 2023-05-11 22:49:17 +01:00
Jonathan G Rennison
54221de0f5 Allow entering decimal day/minute timetable values 2023-05-10 20:06:19 +01:00
Jonathan G Rennison
d9eb839af9 Use separate CharSetFilter types for signed and unsigned decimal 2023-05-10 19:56:26 +01:00
Jonathan G Rennison
4c18a193e7 Simplify timetable long duration hours and minutes suffix string 2023-05-10 19:10:56 +01:00
Jonathan G Rennison
7941eb5187 Simplify timetable leftover ticks string 2023-05-10 18:55:29 +01:00
Jonathan G Rennison
e7f7cd06bd Simplify timetable time/duration string management 2023-05-10 18:51:49 +01:00
PeterN
644e310506
Fix: Incorrect y-position of monospace glyphs. (#10794) 2023-05-09 23:02:06 +02:00
Patric Stout
febe394806
Codechange: replace C-style strings with C++-style strings in textfile (#10772) 2023-05-09 19:35:50 +00:00
Jonathan G Rennison
8e2319ad68 Scheduled dispatch: Add button to adjust departure slots 2023-05-09 20:16:36 +01:00
translators
90529ea48b Update: Translations from eints
catalan: 30 changes by J0anJosep
french: 25 changes by glx22
polish: 5 changes by pAter-exe
2023-05-09 18:44:36 +00:00
PeterN
6998fbf71d
Fix: WWT_TEXT with SetTextStyle did not work. (#10797)
FontSize was passed to incorrect parameter of DrawString function.
2023-05-09 17:23:37 +00:00
Peter Nelson
d68c4bbd2f Change: Use iterator when drawing industry cargo window. 2023-05-09 17:39:12 +01:00
Peter Nelson
cccf4953f7 Fix: Incorrect padding on industry cargo window. 2023-05-09 17:39:12 +01:00
PeterN
882f06bf14
Fix: Support more than 256 stations/waypoints/roadstops per class. (#10793)
It was already possible to define more than 256 per class, but not possible
to use them as the index used in GUI and passed through commands was limited
to a byte.
2023-05-08 18:09:33 +00:00
Patric Stout
a05ae2497f Codechange: simplify how GetCharPosition() works 2023-05-08 19:21:42 +02:00
Patric Stout
60399e17bd Codechange: C++-ify the Layouter and related functions
They all now access a std::string_view, instead of a "const char *"
or std::string (in some cases).

Additionally, GetCharAtPosition and friends now return an index
instead of a "const char *", as it makes for a more clear interface.
2023-05-08 19:21:42 +02:00
Tyler Trahan
61d1b330d1
Change: Add padding to build vehicle text filter (#10792) 2023-05-08 17:21:29 +00:00
Patric Stout
aed36a609c
Fix: [ICU] crash when trying to break a non-breaking run (#10791)
Clusters from harfbuzz are indexed from the start of the buffer,
not from the start of the run analyzed. This confuses other parts
of the code that do assume they are from the start of the run.
2023-05-08 16:09:47 +00:00
PeterN
bc6a4b1d08
Fix: Set up default station/waypoint classes properly. (#10789) 2023-05-08 16:42:01 +01:00
J0anJosep
c4e6d80ecf Cleanup: Remove unnecessary hangar check. 2023-05-08 17:30:21 +02:00
Rubidium
68ff3fd062 Change: include fmt.h C++ headers in stdafx.h
This to prevent compilation issues between runs with and without precompiled
headers. Also remove the headers from the rest of the code base as they are
not needed there anymore, although they do relatively little harm.
2023-05-08 16:49:23 +02:00
Rubidium
192ed55462 Change: disable precompiled headers on Linux (GCC - Dedicated) target to ensure those still build 2023-05-08 16:49:23 +02:00
Rubidium
2955ff33d7 Change: use precompiled headers for stdafx.h and 3rdparty/fmt/format.h 2023-05-08 16:49:23 +02:00
Peter Nelson
878c5d8d85 Codechange: Use SetPosition() to clamp after changing count/capacity. 2023-05-07 20:25:44 +01:00
Peter Nelson
6202eae9d5 Codechange: Rely on Scrollbar::SetPosition to clamp.
Manually clamping scrollbar bounds before calling `SetPosition()` is doubling up work that the function already does.
2023-05-07 20:25:44 +01:00
Peter Nelson
d2034d9c38 Codechange: Scrollbar methods now accept size_t.
This clears up a lot of casts from size_t to int.
2023-05-07 20:25:44 +01:00
Jonathan G Rennison
8f92668e22 Scheduled dispatch: Add menu item to append schedules from another vehicle 2023-05-07 20:06:47 +01:00
Jonathan G Rennison
d93a1a5804 Use OnTooltip instead of OnHover for some custom tooltips 2023-05-07 19:58:07 +01:00
translators
923d1b0846 Update: Translations from eints
vietnamese: 5 changes by KhoiCanDev
2023-05-07 18:39:28 +00:00
Jonathan G Rennison
b59f229723 TBTR: Remove unnecessary variable 2023-05-07 19:38:28 +01:00
Jonathan G Rennison
c14085f425 Be more permissive about vehicles when converting tunnel/bridge railtype 2023-05-07 19:07:48 +01:00
kiwitreekor
3375f25b70
Fix: Var68 for station and roadstop was broken (#10784) 2023-05-07 19:04:34 +01:00
Jonathan G Rennison
62ecad1b63 Scheduled dispatch: Add menu item to duplicate current schedule 2023-05-07 14:02:37 +01:00