Commit Graph

624 Commits

Author SHA1 Message Date
Pavel Stupnikov
be23283677 Update to 13.0-beta1 2022-11-23 14:30:36 +04:00
Peter Nelson
ed60c88b0a Change: Use power-of-2 scaling for some dimensions in GUI.
These are related to drawing sprites that are normally drawn on the
landscape, and should therefore still follow power-of-2 scaling to fit
correctly.
2022-11-12 18:28:39 +00:00
Peter Nelson
890b2666d3 Change: Use scaled WidgetDimensions. 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
1f1378c129 Change: Align picker previews to button centre. 2022-11-12 18:28:39 +00:00
Peter Nelson
6f95e04005 Change: Use Rect helpers for widget drawing.
This replaces repetitive and sometimes unwieldy use of constants.
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
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
ef8322ba25 Change: Add panel widget to waypoint GUI. 2022-10-23 00:07:15 +01:00
Peter Nelson
0e3400894f Cleanup: Remove redundant WWT_PANEL SetDataTips.
WWT_PANEL defaults to 0x0 data and no tooltip, so no need to declare
the same in the widget tree.
2022-10-16 14:24:51 +02:00
Tyler Trahan
db98cedb7e Fix #9883: Show cost/income float over end tile of rail or road construction 2022-10-16 14:15:31 +02:00
Peter Nelson
af6c4d50ce Change: Tidy up coverage area label widget layout.
Label is now centered properly and uses standard spacing.
2022-10-03 22:14:18 +01:00
Peter Nelson
8626090b24 Codechange: Draw station acceptance text in its own widget. 2022-10-03 22:14:18 +01:00
SamuXarick
374f0c7d11 Fix 6fe445e: Removing rail station parts without ctrl pressed was also removing tracks
The behaviour of holding ctrl key is swapped
2022-08-07 10:58:43 +02:00
dP
dc09cd9e2a Update to 12.2 2022-04-02 17:32:19 +03:00
dP
269352680c Update to 12.2 2022-04-02 15:34:00 +03:00
Tyler Trahan
7f0efbe00e Feature: Remember the last-used signal between games (#9792) 2022-02-02 21:26:46 +00:00
Jonathan G Rennison
6ccf020dc2 Fix #9802: Assertion failure in BuildRailWaypointWindow constructor 2022-01-30 11:20:00 +01:00
Michael Lutz
8503854655 Codechange: Pass unpacked command arguments to command callbacks (except Script). 2021-12-16 22:28:32 +01:00
Michael Lutz
46bd2f1ced Codechange: Un-bitstuff remaining transport infrastructure commands. 2021-12-16 22:28:32 +01:00
Michael Lutz
55170ae703 Codechange: Un-bitstuff rail commands. 2021-12-16 22:28:32 +01:00
Michael Lutz
6fe445e6c0 Codechange: Un-bitstuff station/depot/waypoint commands. 2021-12-16 22:28:32 +01:00
Michael Lutz
eab18f06a4 Codechange: Pass additional data as byte stream to command callbacks. 2021-12-16 22:28:32 +01:00
Michael Lutz
0f64ee5ce1 Codechange: Template DoCommandP to automagically reflect the parameters of the command proc.
When finished, this will allow each command handler to take individually
different parameters, obliviating the need for bit-packing.
2021-12-16 22:28:32 +01:00
Michael Lutz
e740c24eb7 Codechange: Template DoCommand to automagically reflect the parameters of the command proc.
When finished, this will allow each command handler to take individually
different parameters, obliviating the need for bit-packing.
2021-12-16 22:28:32 +01:00
Michael Lutz
996b16de70 Codechange: Use lambdas instead of CommandContainer to manage station picker commands. 2021-12-16 22:28:32 +01:00
Michael Lutz
4fc055d6e9 Codechange: Align parameter order of command callbacks to command handlers. 2021-12-16 22:28:32 +01:00
Michael Lutz
a38bbefe1b Codechange: Untangle command code, flags and error string for DoCommand*. 2021-12-16 22:28:32 +01:00
Michael Lutz
549caca39c Codechange: Move command arguments to the back of the networked command function calls. 2021-12-16 22:28:32 +01:00
Michael Lutz
b6933a2ebd Codechange: Move command arguments to the back of the DoCommand function call. 2021-12-16 22:28:32 +01:00
dP
760b4a16a6 Merge remote-tracking branch 'upstream/master' 2021-11-08 23:47:49 +03:00
dP
76f735ed58 Update to 12.1 2021-11-08 23:42:22 +03:00
dP
20dd0bb9bb Fix polyrail tool terra highlight getting stuck after closing tool 2021-10-31 03:57:18 +03:00
dP
56787e5e2c New highlight for terraforming mode of polyrail 2021-10-31 00:17:44 +03:00
dP
cf151cb7dc Fix terraform auto-levelling in multiplayer 2021-10-29 19:46:58 +03:00
dP
3bef49da29 Fix #11: Queue outgoing commands and don't send more than 2 per frame 2021-10-29 02:55:07 +03:00
dP
4082c7c787 Fix #10: Do not auto-terraform in polyrail remove mode 2021-10-23 19:57:18 +03:00
dP
ece06f8510 Hide polyrail auto-terraform mode behind a setting for now 2021-10-23 18:48:24 +03:00
Charles Pigott
0853c1979b Feature: Button to toggle showing advanced signal types (#9617) 2021-10-17 19:24:50 +01:00
dP
a4cfa46676 Fix windows compilation 2021-10-17 18:16:01 +03:00
dP
55ff297ee6 Improve autoterraforming for polyrail in multiplayer 2021-10-17 17:04:00 +03:00
dP
e7c6f27931 Use Fn modifier to flatten land for the polyrail 2021-10-16 04:44:44 +03:00
dP
f1f6bea47d Fix #9: Station rating popup crash 2021-10-03 23:00:15 +03:00
dP
cd2da419a5 Add CM_ prefix to all CityMania sprite constants and new icon for c&p 2021-09-28 23:15:50 +03:00
dP
239ff976da Merge remote-tracking branch 'upstream/master' 2021-09-27 19:53:01 +03:00
dP
4eb8b29dbf Update to 12.0-RC1 2021-09-26 20:30:12 +03:00
dP
09123ac84f Merge branch 'master' into blueprints 2021-09-21 23:48:34 +03:00
Tyler Trahan
7469f00c5b Feature: Hide block signals in GUI by default (#8688) 2021-09-05 20:22:27 +02:00
dP
28429e1f57 Reorganize CityMania client custom settings 2021-08-19 23:27:22 +03:00
dP
318cbbbc59 Fix compilation errors 2021-08-17 22:53:23 +03:00