Fix #21123: Transparency options are not respected on startup (#22659)

This commit is contained in:
Tulio Leao 2024-08-31 12:05:31 -03:00 committed by GitHub
parent 8d8f94df9f
commit c54e25c1d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 19 additions and 0 deletions

View file

@ -15,6 +15,7 @@
- Change: [#22491] Scrollbars are now hidden if the scrollable widget is not actually overflowing.
- Change: [#22541] In editor/sandbox mode, tool widgets now appear on the side of the map window, instead of the bottom.
- Change: [#22592] Cheats have been redistributed along three new tabs: date, staff, and nature/weather.
- Fix: [#21123] Transparency options are not respected on startup.
- Fix: [#21189] Additional missing/misplaced land & construction rights tiles in Schneider Shores and Urban Park.
- Fix: [#21908] Errors showing up when placing/moving track design previews.
- Fix: [#22307] Hover tooltips in financial charts are not invalidated properly.

View file

@ -56,17 +56,35 @@ static Widget _mainWidgets[] = {
{
viewport->flags |= VIEWPORT_FLAG_SOUND_ON;
if (Config::Get().general.InvisibleRides)
{
viewport->flags |= VIEWPORT_FLAG_INVISIBLE_RIDES;
viewport->flags |= VIEWPORT_FLAG_HIDE_RIDES;
}
if (Config::Get().general.InvisibleVehicles)
{
viewport->flags |= VIEWPORT_FLAG_INVISIBLE_VEHICLES;
viewport->flags |= VIEWPORT_FLAG_HIDE_VEHICLES;
}
if (Config::Get().general.InvisibleTrees)
{
viewport->flags |= VIEWPORT_FLAG_INVISIBLE_VEGETATION;
viewport->flags |= VIEWPORT_FLAG_HIDE_VEGETATION;
}
if (Config::Get().general.InvisibleScenery)
{
viewport->flags |= VIEWPORT_FLAG_INVISIBLE_SCENERY;
viewport->flags |= VIEWPORT_FLAG_HIDE_SCENERY;
}
if (Config::Get().general.InvisiblePaths)
{
viewport->flags |= VIEWPORT_FLAG_INVISIBLE_PATHS;
viewport->flags |= VIEWPORT_FLAG_HIDE_PATHS;
}
if (Config::Get().general.InvisibleSupports)
{
viewport->flags |= VIEWPORT_FLAG_INVISIBLE_SUPPORTS;
viewport->flags |= VIEWPORT_FLAG_HIDE_SUPPORTS;
}
}
};