Commit Graph

29511 Commits (86e32631d7f962f35bf552366b6e11979fbd3a57)
 

Author SHA1 Message Date
Jonathan G Rennison c6387c7784 Codechange: Use filter template struct for nearby station type filtering 3 months ago
Jonathan G Rennison 05b65703d3 Codechange: Increase size of StationType field in map array
Move can station have wires bit to make room
3 months ago
Steve Goldman 72276e2d3c Add: Vehicle window zoom with mouse wheel 3 months ago
Steve Goldman c3a051a213 Codechange: Referencing enum for 'scroll_mode' setting in gui_settings.ini 3 months ago
Steve Goldman c53ed9fad6 Codechange: Creating enum for 'scrollwheel_scrolling' setting 3 months ago
translators e8be933ee6 Update: Translations from eints 3 months ago
Peter Nelson e802c1a97f
Add: Show count of towns and industries in their directory window captions. (#12800)
These windows now show "(<visible> of <total>)" in the caption.
3 months ago
Peter Nelson 7116f143d5
Codefix: Hole in vehicle list window if dimensions are not as expected. (#12803)
The layouts for these windows assume that push buttons and dropdowns are the same height.
3 months ago
translators 97e9442d5e Update: Translations from eints
norwegian (bokmal): 32 changes by eriksorngard
galician: 2 changes by pvillaverde
3 months ago
Peter Nelson 91fd082e93
Fix: Apply widget's internal padding to scrollbar capacity/position. (#12801)
For non-WWT_MATRIX widgets, scrollbars need to take account of the internal padding used for the widget.

This is not normally noticeable as framerect padding is only 2 extra pixels
3 months ago
Björn Wärmedal e0bcb54a4b
Change: Allow bribing local authority when other company has exclusive rights (#12763) 3 months ago
translators 49d47b3b74 Update: Translations from eints
greek: 2 changes by gh658804
dutch: 2 changes by Afoklala
lithuanian: 4 changes by khamper
french: 9 changes by Lishouuu
3 months ago
translators 64781df29f Update: Translations from eints
english (us): 2 changes by 2TallTyler
3 months ago
translators e3e215b249 Update: Translations from eints
german: 3 changes by Wuzzy2
portuguese (brazilian): 4 changes by pasantoro
3 months ago
translators 2dab9ac7a5 Update: Translations from eints
swedish: 4 changes by joeax910
catalan: 2 changes by J0anJosep
3 months ago
Peter Nelson b56775f576
Codechange: Avoid making copies of intermediate layout runs. (#12796)
The vector of runs is not used after it is passed to the ParagraphLayout class, so pass with std::move to avoid an unnecessary copy.
3 months ago
Peter Nelson 731c56d116
Codefix: Add missing `const` inside script functions. (#12794)
Scripts do not modify items directly, marking them const enforces this.
3 months ago
translators 7db70f9c3f Update: Translations from eints
english (au): 2 changes by krysclarke
norwegian (bokmal): 6 changes by eriksorngard
korean: 3 changes by telk5093
russian: 2 changes by Ln-Wolf
finnish: 3 changes by hpiirai
portuguese: 2 changes by azulcosta
portuguese (brazilian): 2 changes by pasantoro
polish: 5 changes by pAter-exe
3 months ago
Tyler Trahan e3156546fa
Codefix: Don't claim to allocate new waypoint when just checking (#12792) 3 months ago
Peter Nelson 2f54904bab
Codefix: Incorrect indentation of NWidgetParts in load/save windows. (#12791)
Fix to use the "standard" layout of 1 tab for nesting widgets and 2 tabs for attributes that wrap on to the next line.
3 months ago
ladysadie 2bc3cc5b67
Codechange: Compiler check for _fios_colours/DetailedFileType (#12781) 3 months ago
translators 0e7916a51b Update: Translations from eints
greek: 2 changes by gh658804
lithuanian: 1 change by khamper
3 months ago
Rubidium b18d8d6574 Fix: ensure revision mismatch also considers random debugging status 3 months ago
merni-ns 0409577277
Add: Setting to disable warning for old vehicles (#12714) 3 months ago
ladysadie 45d1f9aa80
Doc: Explain comment alignment in CODINGSTYLE.md 3 months ago
Tyler Trahan d8771b3f68
Change: Don't use house construction states in Scenario Editor (#12730) 3 months ago
Tyler Trahan 4cbaac6dac
Fix #10239: Use elevated snow height for roads on flat foundations (#12776) 3 months ago
Loïc Guilloux d7137651f2
Fix #12787: boostrap doesn't have main vindow (#12788) 3 months ago
Peter Nelson b991a399ef
Codechange: Split MakeNWidget to improve readability. (#12785)
Split MakeNWidget() into two stages, widget-creation and attribute-applying, to reduce function size and make it clearer.
3 months ago
Peter Nelson 22d70f9334
Codechange: Pass NewGRF ByteReader by reference. (#12786)
ByteReader must be present and not null, so don't use a pointer.
3 months ago
Peter Nelson b68172c225
Codechange: Use std::endian instead of TTD_ENDIAN where trivial. (#12778) 3 months ago
Peter Nelson f9f07e9001
Fix #12775: Text truncated incorrectly on Windows. (#12782)
Caused by a -1 in the wrong place, which moved glyphs left one pixel.
3 months ago
Peter Nelson 7b7e00123e Codechange: Shuffle RoadStop members to reduce size.
Size is reduced from 40 bytes to 32 bytes on 64 bit platforms.
3 months ago
Peter Nelson 77f62e0c90 Codechange: Shuffle OrderList members to reduce size.
Size is reduced from 40 bytes to 32 bytes on 64 bit platforms.
3 months ago
translators 219995c643 Update: Translations from eints
polish: 1 change by pAter-exe
3 months ago
Peter Nelson 55314513ce
Codechange: Pass NWidgetParts as span instead of begin/end pointers. (#12779) 3 months ago
translators 81b5a7c7c6 Update: Translations from eints
german: 62 changes by Wuzzy2
3 months ago
Tyler Trahan 68f7d585b4
Doc: Remove resolved issue #4415 from known-bugs.txt (#12773) 3 months ago
Peter Nelson 4cf6d1dd79
Codechange: Pass WindowDesc by reference instead of pointer. (#12771)
WindowDesc as passed to Windows is not optional so don't allow to it to be nullptr.
3 months ago
translators 18bce69623 Update: Translations from eints
galician: 3 changes by pvillaverde
danish: 1 change by bscargo
polish: 5 changes by pAter-exe
3 months ago
Steve Goldman 7db756e602 Change: Do not automatically connect double depots with track 4 months ago
Jonathan G Rennison fa82dd6096 Fix #12030: Water infrastructure totals when using DC_FORCE_CLEAR_TILE
To remove objects on water
4 months ago
Peter Nelson b4b2fad8e0
Fix #12648: Ensure all uses of std::filesystem::path use native encoding. (#12650)
std::filesystem::path does not expect UTF-8 strings, so they must be converted to native format first (and back to utf-8 after.)
4 months ago
Peter Nelson fce9361bf2 Change: Position caret on left or right of glyph depending on language direction. 4 months ago
Peter Nelson 5cd81a980e Codechange: Store both left and right glyph positions in a run.
This also allows the end of a run to be known without using an extra position entry.
4 months ago
Peter Nelson 80ddcb9d7d Codechange: Move GetCharPosInString/GetCharAtPosition to gfx_layout.
These functions are related more to layouting than graphics.
4 months ago
Peter Nelson bbbf2b5282 Codechange: Return read-only span instead of vector from layout run functions. 4 months ago
translators 6bf214af6e Update: Translations from eints
vietnamese: 3 changes by KhoiCanDev
polish: 13 changes by pAter-exe
4 months ago
Peter Nelson 79c1492a73
Codechange: Use unique_ptr in MemoryDumper. (#12766)
This replaces C-style manual memory management.
4 months ago
Jonathan G Rennison af7ad964dd
Codechange: Avoid unnecessary allocation of temporaries in layout line cache (#12737) 4 months ago