Commit Graph

53805 Commits

Author SHA1 Message Date
Jonathan G Rennison
a42557fed7 Departure boards: Fix windows not being refreshed when changing settings 2022-11-23 21:12:05 +00:00
Jonathan G Rennison
73efbc7bdd Departure boards: Fix scheduled dispatch departure time when wait time set 2022-11-23 20:47:04 +00:00
Jonathan G Rennison
03a9912a2b Vehicle list commands now take into account cargo type filter
Start/stop
Send to depot type commands
Add to new group
Change order target
2022-11-19 22:40:29 +00:00
Jonathan G Rennison
728b902e9f No longer use CDECL for GUIList::FilterFunction 2022-11-19 21:51:52 +00:00
Jonathan G Rennison
b52bb3ca44 Show viewport route overlay for shared order vehicle list windows 2022-11-19 00:00:23 +00:00
Jonathan G Rennison
4990a25e48 Add a "if breakdowns enabled" mode to the no depot order warn setting 2022-11-17 23:28:57 +00:00
Jonathan G Rennison
cf6f509859 Add setting flag to enable bool -> int config file load conversion 2022-11-17 23:23:29 +00:00
Jonathan G Rennison
6cf62af092 Change vehicle route overlay settings
Add a mode setting: off, all locations, station stops only
Change show vehicle route setting to on/off
Move settings to their own section in the GUI
Add an unset hotkey to switch the mode setting
2022-11-17 22:54:07 +00:00
Jonathan G Rennison
7ec5450ed1 Settings GUI: Move viewport signal settings to their own section 2022-11-17 22:20:11 +00:00
Jonathan G Rennison
f46998696f Merge pull request #451 from telk5093/jgrpp
Update: Korean translation up to 0.49.1
2022-11-17 20:56:33 +00:00
Jonathan G Rennison
1ddccee0d7 Fix timetable state conditional order not initing timetable field 2022-11-17 20:55:11 +00:00
Jonathan G Rennison
cb9c657f59 Fix selected state of dispatch is/not first/last dropdown in order window 2022-11-17 20:43:57 +00:00
Jonathan G Rennison
cbf41a6343 Fix crash when clicking counter or schedule non-train conditional order 2022-11-17 20:24:04 +00:00
Jonathan G Rennison
ff3e275c43 Change no_depot_order_warn setting default to off 2022-11-17 20:23:21 +00:00
Jonathan G Rennison
e92aaade42 NetworkCompanyIsPassworded should return false in single player mode 2022-11-17 00:42:34 +00:00
Jonathan G Rennison
1e769d050f Leave PLYP chunk unchanged when loading/saving server saves in non-MP 2022-11-17 00:40:12 +00:00
Jonathan G Rennison
dc03bac241 Saveload: Change SlLoadFromBuffer to take a template functor 2022-11-17 00:33:53 +00:00
TELK
bb3549ced9 Update: Korean translation up to 0.49.1 2022-11-14 19:49:30 +09:00
Jonathan G Rennison
f24cdc1fc9 Version: Committing version data for tag: jgrpp-0.49.1 2022-11-13 18:43:27 +00:00
Jonathan G Rennison
8264e2ca4f Fix missing includes in network_internal.h 2022-11-13 18:43:19 +00:00
Jonathan G Rennison
8020f6d481 Add road stop flags to only show in the road or tram build menus 2022-11-13 16:36:55 +00:00
Jonathan G Rennison
6f963a1268 Include company infrastructure totals in state checksum 2022-11-13 11:53:16 +00:00
Jonathan G Rennison
5e00d535bc Debug: Detect which frame's state first diverged after a desync 2022-11-13 01:08:39 +00:00
Jonathan G Rennison
7582993d00 Crashlog: Show frame counters with sync dates 2022-11-13 01:08:39 +00:00
Jonathan G Rennison
1572b66ecf Debug: Show frame counter in command log when networking 2022-11-13 01:08:39 +00:00
Peter Nelson
61da064b82 Fix: Settings GUI sprite size. 2022-11-12 18:28:39 +00:00
Peter Nelson
cb10ed1509 Change: Move error window padding to widget level.
This simplifies calculation during drawing.
2022-11-12 18:28:39 +00:00
Peter Nelson
123983743f Change: Add optional text labels to slider widget. 2022-11-12 18:28:39 +00:00
Peter Nelson
cd0d5a771d Fix: Engine preview text overly padded.
WIP_EP_QUESTION is already padded at the widget level, so no need to apply
extra padding to left/right.
2022-11-12 18:28:39 +00:00
Peter Nelson
f0ae111c4a Change: Put ends of slider under centre of control knob. 2022-11-12 18:28:39 +00:00
Peter Nelson
f5f035a22b Codechange: Make use of Rect Width/Height helpers. 2022-11-12 18:28:39 +00:00
Peter Nelson
64a1fc174f Change: Scale thickness of slider bevel. 2022-11-12 18:28:39 +00:00
Peter Nelson
632464a623 Codechange: Use Rect in DropDownListItem::Draw(). 2022-11-12 18:28:39 +00:00
Peter Nelson
1180c95372 Codechange: Add parameters to change range of slider widget. 2022-11-12 18:28:39 +00:00
Peter Nelson
d8e01f8aa5 Codechange: Add some Rect helpers.
Shrink/Expand/Translate are marked nodiscard as they provide a new Rect
rather than modifying the original Rect.
2022-11-12 18:28:39 +00:00
Peter Nelson
d35f1d3d06 Codechange: Rename slider widget functions to be less specific. 2022-11-12 18:28:39 +00:00
Peter Nelson
17d1fe26c2 Codechange: Helpers to allow passing a Rect to some functions. 2022-11-12 18:28:39 +00:00
Peter Nelson
23a8222200 Change: Split vscroll and hscroll padding.
Vertical and horizontal scrollbars are different sizes, this allows
different padding for each type.
2022-11-12 18:28:39 +00:00
Peter Nelson
eb4ba1991b Change: Use CenterBounds function in more places.
CenterBounds may have a 1 pixel difference so the result is not exactly
the same.
2022-11-12 18:28:39 +00:00
Peter Nelson
90ce704366 Change: Use scaled WidgetDimensions for core widgets. 2022-11-12 18:28:39 +00:00
Peter Nelson
18201dfbc3 Cleanup: Simplify CenterBounds() 2022-11-12 18:28:39 +00:00
Peter Nelson
0bb9a45785 Change: Simplify drawing widget image buttons. 2022-11-12 18:28:39 +00:00
Peter Nelson
ab55d3e1fa Change: Rearrange layouts of station/depot picker windows. 2022-11-12 18:28:39 +00:00
Peter Nelson
d0add1e07f Change: Ignore offsets when drawing GUI sprite. 2022-11-12 18:28:39 +00:00
Peter Nelson
b5693becdc Add: Define scaled WidgetDimensions.
Includes RectPadding container.
2022-11-12 18:28:39 +00:00
Peter Nelson
b6ed595176 Codechange: Prefer suggested widget padding. 2022-11-12 18:28:39 +00:00
Peter Nelson
0108e9f387 Change: Set up suggested widget padding for panel, frame and inset.
Window handlers are free to ignore the suggested padding, however some
handlers have logic that assumes this information was already provided.
2022-11-12 18:28:39 +00:00
Peter Nelson
68423c40c5 Fix: Off-by-one in GetAlignedPosition(). 2022-11-12 18:28:39 +00:00
Peter Nelson
47f4fc6a70 Add: NWidgetPart SetPadding via RectPadding 2022-11-12 18:28:39 +00:00
Peter Nelson
dd9f6bc803 Change: Use RectPadding Horizontal()/Vertical() helpers. 2022-11-12 18:28:39 +00:00