Peter Nelson
b6ed595176
Codechange: Prefer suggested widget padding.
2 years ago
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.
2 years ago
Peter Nelson
68423c40c5
Fix: Off-by-one in GetAlignedPosition().
2 years ago
Peter Nelson
47f4fc6a70
Add: NWidgetPart SetPadding via RectPadding
2 years ago
Peter Nelson
dd9f6bc803
Change: Use RectPadding Horizontal()/Vertical() helpers.
2 years ago
Peter Nelson
04cbe57d2a
Change: Use RectPadding for widget padding/uz_padding.
2 years ago
Peter Nelson
75b222b0d9
Add: RectPadding type.
...
This is similar to Rect but specifies padding to apply to a Rect.
2 years ago
Peter Nelson
5786d49143
Change: Use Rect when drawing build engine list.
2 years ago
Peter Nelson
46a1ab0937
Change: Use Rect when drawing infrastructure window.
2 years ago
Peter Nelson
c9a81fd67b
Change: Use Rect for drawing vehicle details.
2 years ago
Peter Nelson
3ff05321dc
Change: Use standard padding for AI Debug window.
2 years ago
Peter Nelson
1f1378c129
Change: Align picker previews to button centre.
2 years ago
Peter Nelson
cb059fc081
Change: Use Rect for QueryString editor.
2 years ago
Peter Nelson
fea7247072
Change: Use standard 'frametext' padding for settings window.
2 years ago
Peter Nelson
6f95e04005
Change: Use Rect helpers for widget drawing.
...
This replaces repetitive and sometimes unwieldy use of constants.
2 years ago
Peter Nelson
cb10ed1509
Change: Move error window padding to widget level.
...
This simplifies calculation during drawing.
2 years ago
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.
2 years ago
Peter Nelson
f5f035a22b
Codechange: Make use of Rect Width/Height helpers.
2 years ago
Peter Nelson
632464a623
Codechange: Use Rect in DropDownListItem::Draw().
2 years ago
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.
2 years ago
Peter Nelson
17d1fe26c2
Codechange: Helpers to allow passing a Rect to some functions.
2 years ago
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.
2 years ago
Peter Nelson
18201dfbc3
Cleanup: Simplify CenterBounds()
2 years ago
Peter Nelson
ab55d3e1fa
Change: Rearrange layouts of station/depot picker windows.
2 years ago
Jonathan G Rennison
7c3c92f8b8
Fix #10155 : SyncCompanySettings sending old instead of new setting values ( #10158 )
2 years ago
Joel-Milligan
59645c6733
Change: Remove scrollbar from town authority actions panel ( #9928 )
2 years ago
Jonathan G Rennison
64b437fa89
Fix: Data race with mixer thread performance measurements
2 years ago
Jonathan G Rennison
0fae0599b7
Fix: Data race on effect volume setting with mixer thread
2 years ago
Jonathan G Rennison
a962d7476b
Fix: Data races on MixerChannel active states
2 years ago
Artin Alavi
5d6cdf4385
Feature: Allow AI/GS to be fully modified in scenario editor ( #10152 )
2 years ago
translators
3f579fa7dc
Update: Translations from eints
...
dutch: 12 changes by Afoklala
2 years ago
Artin Alavi
cbac243216
Feature: [UI] Split AI/Game Script configuration windows and add them to world gen window ( #10058 )
2 years ago
Artin Alavi
fd4f148c62
Feature: Hotkey to honk a vehicle's horn ( #10110 )
2 years ago
translators
27e1d057c5
Update: Translations from eints
...
english (au): 12 changes by krysclarke
spanish (mexican): 24 changes by absay
english (us): 12 changes by 2TallTyler
russian: 12 changes by Ln-Wolf
french: 1 change by glx22
portuguese: 16 changes by azulcosta
2 years ago
translators
e2f661b281
Update: Translations from eints
...
spanish: 24 changes by MontyMontana
2 years ago
stormcone
0d303d6c3f
Feature: Add cargo filter support to vehicle list. ( #8308 )
2 years ago
SamuXarick
a8a7f95665
Change: Allow to build dock on clearable watered object tiles ( #8514 )
2 years ago
Henry Wilson
59dbcdb5ba
Feature: Display power-to-weight ratio in ground vehicle details GUI
2 years ago
Henry Wilson
b304c06a4a
Codechange: Use override specifier for Train and RoadVehicle structs
2 years ago
Henry Wilson
89cf0d5da8
Codechange: Factor cargotype weight conversion magic numbers
2 years ago
Didac Perez Parera
019dcb7b7b
Change: Let AI developers edit non-editable AI/Game Script Parameters ( #8895 )
2 years ago
Aaron Kofsky
ede0560f9b
Feature: Add buttons to toggle music in the Game Options menu ( #9727 )
2 years ago
Tyler Trahan
31d08421ab
Update: Rename mapgen Sea Level string in other language files
2 years ago
Tyler Trahan
62a15734fe
Codechange: Rename mapgen Sea Level string
2 years ago
SamuXarick
60ccab3c52
Fix #9908 : Close company windows only after all its infrastructure is removed ( #9912 )
2 years ago
larryfenn
d738cd235f
Change: Automatic screenshot numbering with a filename ending in '#' ( #9781 )
2 years ago
SamuXarick
b7abaa55a3
Codechange: Improve performance when calculating company value ( #9901 )
2 years ago
SamuXarick
8c4a70e05e
Fix: Refresh company window when switching companies ( #9910 )
2 years ago
translators
b6a899eb2b
Update: Translations from eints
...
slovak: 62 changes by legitalk
2 years ago
Jonathan G Rennison
e931f3061f
Fix: Dereference of past-the-end iterator in linkgraph overlay tooltip ( #10145 )
2 years ago