Merge branch 'develop'

This commit is contained in:
Tulio Leao committed 2026-03-01 06:02:36 -03:00
commit 1b9dff45b2
606 files changed
+14150 -12356

No files matched your search

+4
View File
@@ -2,9 +2,13 @@
Checks: >
-*,
cppcoreguidelines-macro-usage,
modernize-concat-nested-namespaces,
modernize-deprecated-headers,
modernize-use-bool-literals,
modernize-use-nullptr,
modernize-use-override,
readability-container-size-empty,
readability-redundant-typename,
readability-uppercase-literal-suffix
CheckOptions:
- key: cppcoreguidelines-macro-usage.AllowedRegexp
+1 -1
View File
@@ -55,7 +55,7 @@
- changed-files:
- any-glob-to-any-file:
- 'src/openrct2/platform/*'
'android':
'Android (OS)':
- changed-files:
- any-glob-to-any-file:
- 'src/openrct2-android/*'
+1 -1
View File
@@ -5,7 +5,7 @@ on:
- opened
jobs:
backtrace_commit_correction:
runs-on: ubuntu-latest
runs-on: ubuntu-slim
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE: ${{ github.event.issue.html_url }}
+149 -71
View File
@@ -44,7 +44,7 @@ concurrency:
jobs:
build_variables:
name: Get version info
runs-on: ubuntu-latest
runs-on: ubuntu-latest # This job is too heavy for ubuntu-slim. It takes almost a minute to checkout the code on slim vs 23s on ubuntu-latest.
# We want to sign tagged releases with release certificates, but it is only allowed to be ran manually.
# Disable automatic runs for tags and force release signing for tags.
if: |
@@ -62,7 +62,7 @@ jobs:
steps:
# We need to fetch entire repo to get the tags and correctly run `describe`
- name: Check out code
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0
# We cannot use proudust/gh-describe, as it reports incorrect (too short) short-sha
@@ -119,7 +119,7 @@ jobs:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# uses: actions/checkout@v6
# with:
# fetch-depth: 0
# - name: Lint Commit Messages
@@ -129,7 +129,7 @@ jobs:
check-code-formatting:
name: Check code formatting
runs-on: ubuntu-latest
container: openrct2/openrct2-build:24-format
container: ghcr.io/openrct2/openrct2-build:26-format
permissions:
pull-requests: write
contents: read
@@ -138,28 +138,28 @@ jobs:
shell: sh
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- run: git config --global --add safe.directory $PWD
- name: Run clang-format
run: scripts/check-code-formatting
check-changelog-formatting:
name: Check changelog formatting
runs-on: ubuntu-latest
runs-on: ubuntu-slim
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Run check-changelog-formatting
run: scripts/check-changelog-formatting
g2dat:
name: Graphics .dat files
runs-on: ubuntu-latest
runs-on: ubuntu-slim
needs: build_variables
steps:
- name: Checkout OpenRCT2
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
path: OpenRCT2
- name: Download gxc
@@ -175,7 +175,7 @@ jobs:
gxc build fonts.dat OpenRCT2/resources/fonts/sprites.json
gxc build tracks.dat OpenRCT2/resources/tracks/sprites.json
- name: Upload graphics .dat files
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: graphics-${{ needs.build_variables.outputs.name }}
path: |
@@ -204,14 +204,14 @@ jobs:
echo "CONFIGURATION=Release" >> "$GITHUB_ENV"
fi
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Install MSVC problem matcher
uses: ammaraskar/msvc-problem-matcher@master
- name: Build OpenRCT2
run: . scripts/setenv && build
- name: Upload unsigned binaries
id: upload-windows-binaries-unsigned
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: OpenRCT2-${{ needs.build_variables.outputs.name }}-windows-unsigned-${{ matrix.platform }}
path: |
@@ -223,7 +223,7 @@ jobs:
env:
SIGNPATH_API_TOKEN: ${{ secrets.SIGNPATH_API_TOKEN }}
if: ${{ needs.build_variables.outputs.sign == 'true' }}
uses: signpath/github-action-submit-signing-request@v1
uses: signpath/github-action-submit-signing-request@v2
with:
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
organization-id: 645b821f-6283-45e1-8198-264997072801
@@ -242,7 +242,7 @@ jobs:
mv files-signed/openrct2.exe bin/openrct2.exe
- name: Download graphics .dat files on ARM64
if: matrix.platform == 'arm64'
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
name: graphics-${{ needs.build_variables.outputs.name }}
path: bin/data
@@ -259,14 +259,14 @@ jobs:
mv artifacts/openrct2-installer-*.exe artifacts/OpenRCT2-${{ needs.build_variables.outputs.name }}-windows-installer-$PLATFORM.exe
mv artifacts/openrct2-symbols-*.zip artifacts/OpenRCT2-${{ needs.build_variables.outputs.name }}-windows-symbols-$PLATFORM.zip
- name: Upload portable artifact (CI)
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: OpenRCT2-${{ needs.build_variables.outputs.name }}-${{ runner.os }}-portable-${{ matrix.platform }}
path: artifacts/OpenRCT2-${{ needs.build_variables.outputs.name }}-windows-portable-${{ matrix.platform }}.zip
if-no-files-found: error
- name: Upload unsigned installer artifact (CI)
id: upload-windows-installer-unsigned
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: OpenRCT2-${{ needs.build_variables.outputs.name }}-${{ runner.os }}-installer-${{ matrix.platform }}-unsigned
path: artifacts/OpenRCT2-${{ needs.build_variables.outputs.name }}-windows-installer-${{ matrix.platform }}.exe
@@ -274,7 +274,7 @@ jobs:
- name: Sign installer
id: sign-installer
if: ${{ needs.build_variables.outputs.sign == 'true' }}
uses: signpath/github-action-submit-signing-request@v1
uses: signpath/github-action-submit-signing-request@v2
with:
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
organization-id: 645b821f-6283-45e1-8198-264997072801
@@ -290,13 +290,13 @@ jobs:
- name: Upload signed installer artifact (CI)
id: upload-windows-installer-signed
if: ${{ needs.build_variables.outputs.sign == 'true' }}
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: OpenRCT2-${{ needs.build_variables.outputs.name }}-${{ runner.os }}-installer-${{ matrix.platform }}
path: files-signed/OpenRCT2-${{ needs.build_variables.outputs.name }}-windows-installer-${{ matrix.platform }}.exe
if-no-files-found: error
- name: Upload symbols artifact (CI)
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: OpenRCT2-${{ needs.build_variables.outputs.name }}-${{ runner.os }}-symbols-${{ matrix.platform }}
path: artifacts/OpenRCT2-${{ needs.build_variables.outputs.name }}-windows-symbols-${{ matrix.platform }}.zip
@@ -321,7 +321,7 @@ jobs:
name: Windows (${{ matrix.platform_name }}) using mingw
runs-on: ubuntu-latest
needs: [check-code-formatting, build_variables]
container: openrct2/openrct2-build:24-mingw
container: ghcr.io/openrct2/openrct2-build:26-mingw
strategy:
fail-fast: false
matrix:
@@ -333,9 +333,9 @@ jobs:
build_flags: -DBUILD_SHARED_LIBS=ON -DENABLE_SCRIPTING=ON
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.18
uses: hendrikmuhs/ccache-action@v1.2.20
with:
key: ${{ matrix.cache_key }}
- name: Install GCC problem matcher
@@ -348,7 +348,7 @@ jobs:
ninja -k0
- name: Upload artifacts (CI)
if: matrix.platform == 'NT5.1'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: OpenRCT2-${{ needs.build_variables.outputs.name }}-Windows-mingw-${{ matrix.platform }}
path: bin/openrct2.exe
@@ -375,9 +375,9 @@ jobs:
run_tests: true
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.18
uses: hendrikmuhs/ccache-action@v1.2.20
with:
key: ${{ matrix.cache_key }}
- name: Install GCC problem matcher
@@ -395,7 +395,7 @@ jobs:
cd artifacts
zip -rqy openrct2-macos.zip OpenRCT2.app
- name: Upload artifacts (CI)
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: OpenRCT2-${{ runner.os }}-${{ matrix.arch }}-cmake
path: artifacts/openrct2-macos.zip
@@ -414,14 +414,14 @@ jobs:
needs: [macos-cmake, build_variables]
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: download x64 app bundle
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
name: OpenRCT2-${{ runner.os }}-x64-cmake
path: macos_universal/x64
- name: download arm64 app bundle
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
name: OpenRCT2-${{ runner.os }}-arm64-cmake
path: macos_universal/arm64
@@ -441,7 +441,7 @@ jobs:
cd artifacts
zip -rqy OpenRCT2-${{ needs.build_variables.outputs.name }}-macos-universal.zip OpenRCT2.app
- name: Upload artifacts (CI)
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: OpenRCT2-${{ needs.build_variables.outputs.name }}-${{ runner.os }}-universal
path: artifacts/OpenRCT2-${{ needs.build_variables.outputs.name }}-macos-universal.zip
@@ -459,23 +459,28 @@ jobs:
- platform: x86_64
distro: Ubuntu
release: noble
image: openrct2/openrct2-build:24-noble
image: ghcr.io/openrct2/openrct2-build:26-noble
build_flags: -DCMAKE_POSITION_INDEPENDENT_CODE=on -DCMAKE_CXX_FLAGS="-g1 -gz -fno-var-tracking-assignments"
- platform: x86_64
distro: Ubuntu
release: resolute
image: ghcr.io/openrct2/openrct2-build:26-resolute
build_flags: -DCMAKE_POSITION_INDEPENDENT_CODE=on -DCMAKE_CXX_FLAGS="-g1 -gz"
- platform: x86_64
distro: Debian
release: bookworm
image: openrct2/openrct2-build:24-bookworm
image: ghcr.io/openrct2/openrct2-build:26-bookworm
build_flags: -DCMAKE_POSITION_INDEPENDENT_CODE=on -DCMAKE_CXX_FLAGS="-g1 -gz -fno-var-tracking-assignments" -DWITH_TESTS=off
- platform: x86_64
distro: Debian
release: trixie
image: openrct2/openrct2-build:24-trixie
image: ghcr.io/openrct2/openrct2-build:26-trixie
build_flags: -DCMAKE_POSITION_INDEPENDENT_CODE=on -DCMAKE_CXX_FLAGS="-g1 -gz -fno-var-tracking-assignments" -DWITH_TESTS=off
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.18
uses: hendrikmuhs/ccache-action@v1.2.20
with:
key: linux-${{ matrix.platform }}-${{ matrix.distro }}-${{ matrix.release }}
- name: Get pre-reqs
@@ -488,7 +493,7 @@ jobs:
- name: Build artifacts
run: . scripts/setenv -q && build-portable artifacts/OpenRCT2-${{ needs.build_variables.outputs.name }}-${{ runner.os }}-${{ matrix.release }}-${{ matrix.platform }}.tar.gz bin/install/usr
- name: Upload artifacts (CI)
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: OpenRCT2-${{ needs.build_variables.outputs.name }}-${{ runner.os }}-${{ matrix.release }}-${{ matrix.platform }}
path: artifacts
@@ -502,9 +507,9 @@ jobs:
container: openrct2/openrct2-build:24-jammy
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.18
uses: hendrikmuhs/ccache-action@v1.2.20
with:
key: linux-appimage
- name: Get pre-reqs
@@ -518,7 +523,7 @@ jobs:
NO_STRIP: true # https://github.com/linuxdeploy/linuxdeploy/blob/d2557d616749c325a61058049e41a2d35ffce924/src/core/appdir.cpp#L248
run: . scripts/setenv -q && build-appimage
- name: Upload artifacts (CI)
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: OpenRCT2-${{ needs.build_variables.outputs.name }}-AppImage
path: artifacts
@@ -530,7 +535,7 @@ jobs:
steps:
- name: Checkout image
if: github.repository == 'OpenRCT2/OpenRCT2' && github.ref == 'refs/heads/develop'
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: OpenRCT2/openrct2-docker
- name: Build image
@@ -554,12 +559,12 @@ jobs:
name: Ubuntu Linux (noble, debug, [http, network, flac, vorbis OpenGL] disabled) using clang
runs-on: ubuntu-latest
needs: [check-code-formatting, build_variables]
container: openrct2/openrct2-build:24-noble
container: ghcr.io/openrct2/openrct2-build:26-noble
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.18
uses: hendrikmuhs/ccache-action@v1.2.20
with:
key: linux-clang
- name: Install GCC problem matcher
@@ -570,12 +575,12 @@ jobs:
name: Ubuntu Linux (debug) using clang, coverage enabled
runs-on: ubuntu-latest
needs: [check-code-formatting, build_variables]
container: openrct2/openrct2-build:24-noble
container: ghcr.io/openrct2/openrct2-build:26-noble
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.18
uses: hendrikmuhs/ccache-action@v1.2.20
with:
key: linux-clang-tests
- name: Install GCC problem matcher
@@ -599,7 +604,7 @@ jobs:
xz -1v coverage.json
xz -1v OpenRCT2Tests
- name: Upload artifacts (CI)
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: OpenRCT2-${{ needs.build_variables.outputs.name }}-${{ runner.os }}-coverage
path: |
@@ -607,49 +612,110 @@ jobs:
bin/coverage.json*
bin/OpenRCT2Tests.xz
if-no-files-found: error
android-libs:
name: Android (${{ matrix.arch }})
runs-on: ubuntu-latest
needs: [check-code-formatting, build_variables]
container: ghcr.io/openrct2/openrct2-build:26-android
strategy:
fail-fast: false
matrix:
arch: [armeabi-v7a, arm64-v8a, x86_64]
steps:
- name: Checkout
uses: actions/checkout@v6
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.20
with:
key: android-${{ matrix.arch }}
- name: Cache Gradle
uses: actions/cache@v5
with:
# The gradle cache is by default ~/.gradle/caches, but ~ gets resolved by GitHub Actions to the runner's
# home directory (/home/github), not the user inside the container (/root). Name the path explicitly.
path: /root/.gradle/caches
key: gradle-${{ hashFiles('src/openrct2-android/gradle.properties') }}
- name: Install GCC problem matcher
uses: ammaraskar/gcc-problem-matcher@master
- name: Build Native Libs
run: |
. scripts/setenv
pushd src/openrct2-android
./gradlew app:externalNativeBuildRelease -PabiFilter=${{ matrix.arch }}
popd
- name: Upload Native Libs
uses: actions/upload-artifact@v6
with:
name: android-libs-${{ matrix.arch }}
path: src/openrct2-android/app/build/intermediates/cmake/release/obj/${{ matrix.arch }}
if-no-files-found: error
android:
name: Android
runs-on: ubuntu-latest
needs: [check-code-formatting, build_variables]
container: openrct2/openrct2-build:24-android
needs: [android-libs, build_variables]
container: openrct2/openrct2-build:25-android
steps:
- name: Checkout
uses: actions/checkout@v4
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.18
uses: actions/checkout@v6
- name: Cache Gradle
uses: actions/cache@v5
with:
key: android
# The gradle cache is by default ~/.gradle/caches, but ~ gets resolved by GitHub Actions to the runner's
# home directory (/home/github), not the user inside the container (/root). Name the path explicitly.
path: /root/.gradle/caches
key: gradle-${{ hashFiles('src/openrct2-android/gradle.properties') }}
- name: Setup keystore
run: |
echo "${{ secrets.OPENRCT2_KEYSTORE_CONTENTS }}" | base64 -d > keystore.jks
echo "OPENRCT2_KEYSTORE_FILE=${{ github.workspace }}/keystore.jks" >> $GITHUB_ENV
echo "OPENRCT2_KEYSTORE_PASSWORD=${{ secrets.OPENRCT2_KEYSTORE_PASSWORD }}" >> $GITHUB_ENV
- name: Install GCC problem matcher
uses: ammaraskar/gcc-problem-matcher@master
- name: Download all libs
uses: actions/download-artifact@v7
with:
pattern: android-libs-*
path: artifacts/android-libs
- name: Move libs to project
run: |
mkdir -p src/openrct2-android/app/libs
for arch in armeabi-v7a arm64-v8a x86_64; do
if [ -d "artifacts/android-libs/android-libs-$arch" ]; then
mkdir -p src/openrct2-android/app/libs/$arch
mv artifacts/android-libs/android-libs-$arch/* src/openrct2-android/app/libs/$arch/
else
echo "::warning title=Missing libraries::Warning: No libs found for $arch"
fi
done
- name: Build OpenRCT2
run: |
. scripts/setenv
pushd src/openrct2-android
./gradlew app:assembleRelease
./gradlew app:assembleRelease -PskipNativeBuild
popd
mkdir -p artifacts
mv src/openrct2-android/app/build/outputs/apk/release/app-release.apk artifacts/OpenRCT2-${{ needs.build_variables.outputs.name }}-android-arm.apk
mv src/openrct2-android/app/build/outputs/apk/release/app-release.apk artifacts/OpenRCT2-${{ needs.build_variables.outputs.name }}-android.apk
- name: Upload artifacts (CI)
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: OpenRCT2-${{ needs.build_variables.outputs.name }}-Android
path: artifacts
if-no-files-found: error
- name: Upload gradle issues
uses: actions/upload-artifact@v6
with:
name: OpenRCT2-${{ needs.build_variables.outputs.name }}-gradle-issues
path: src/openrct2-android/build/reports/problems/problems-report.html
if-no-files-found: ignore
emscripten:
name: Emscripten
runs-on: ubuntu-latest
needs: [check-code-formatting, build_variables]
container: openrct2/openrct2-build:24-emscripten
container: ghcr.io/openrct2/openrct2-build:26-emscripten
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.18
uses: hendrikmuhs/ccache-action@v1.2.20
with:
key: emscripten
- name: Install GCC problem matcher
@@ -659,33 +725,45 @@ jobs:
. scripts/setenv
build-emscripten
- name: Upload artifacts (CI)
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
path: build/www
name: OpenRCT2-${{ needs.build_variables.outputs.name }}-emscripten
release:
name: Release
runs-on: ubuntu-latest
runs-on: ubuntu-slim
needs: [build_variables, linux-portable, android, linux-appimage, macos-universal, windows]
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
sparse-checkout: |
distribution/changelog.txt
- name: Download artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
merge-multiple: true
# Having multiple artifacts named the same might be confusing to the users. Drop the unsigned versions.
- name: Remove unsigned artifacts
merge-multiple: false
# Only remove unsigned artifacts if signing is enabled, otherwise we might end up with no artifacts at all
- name: Remove unsigned artifacts and flatten
run: |
rm -rf *unsigned*
ls -lR
if [[ "${{ needs.build_variables.outputs.sign }}" == "true" ]]; then
echo "Signing enabled, removing unsigned artifacts"
find . -maxdepth 1 -name '*unsigned*' -type d -exec rm -rf {} + 2>/dev/null || true
echo "Unsigned artifacts removed"
else
echo "Signing not enabled, keeping unsigned artifacts"
fi
# Flatten remaining artifact directories
find . -maxdepth 2 -type f \( -path './OpenRCT2-*/*' -o -path './graphics-*/*' \) -exec mv {} . \;
# Clean up empty directories
find . -maxdepth 1 -type d \( -name 'OpenRCT2-*' -o -name 'graphics-*' \) -empty -delete 2>/dev/null || true
ls -lR
- name: Concatenate sha256 files
run: |
ls -lR
pushd ${{ github.workspace }}
sha256sum OpenRCT2-* > OpenRCT2-${{ needs.build_variables.outputs.name }}-sha256sums.txt
find . -maxdepth 1 -type f -name 'OpenRCT2-*' -print0 | xargs -0 sha256sum > OpenRCT2-${{ needs.build_variables.outputs.name }}-sha256sums.txt
popd
- name: Create release notes
run: |
@@ -715,7 +793,7 @@ jobs:
tag_name: ${{ needs.build_variables.outputs.tag }}
# The upload to binaries repository is done from develop only
- name: Create tag for binaries repository
uses: actions/github-script@v5
uses: actions/github-script@v8
if: ${{ needs.build_variables.outputs.push }}
with:
github-token: ${{ secrets.OPENRCT2_BINARIES_CI_UPLOAD }}
+1 -1
View File
@@ -18,7 +18,7 @@ on:
- cron: '23 */2 * * *'
jobs:
check:
runs-on: ubuntu-latest
runs-on: ubuntu-slim
steps:
- uses: z0al/dependent-issues@v1
env:
+1 -1
View File
@@ -10,7 +10,7 @@ jobs:
contents: read
issues: write # automatically creates labels
pull-requests: write # assigning labels to PRs
runs-on: ubuntu-latest
runs-on: ubuntu-slim
if: github.repository == 'OpenRCT2/OpenRCT2'
steps:
- uses: actions/labeler@v6
+1 -1
View File
@@ -6,7 +6,7 @@ jobs:
merge-localisation:
name: Merge Localisation
if: github.repository == 'OpenRCT2/OpenRCT2'
runs-on: ubuntu-latest
runs-on: ubuntu-slim
steps:
- name: Store private SSH
run: |
+1 -1
View File
@@ -5,7 +5,7 @@ on:
jobs:
stale:
runs-on: ubuntu-latest
runs-on: ubuntu-slim
if: github.repository == 'OpenRCT2/OpenRCT2'
steps:
- uses: actions/stale@v8
+1 -1
View File
@@ -5,7 +5,7 @@ on:
jobs:
stale:
runs-on: ubuntu-latest
runs-on: ubuntu-slim
if: github.repository == 'OpenRCT2/OpenRCT2'
steps:
- uses: actions/stale@v8
+17 -26
View File
@@ -66,25 +66,22 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(ROOT_DIR "${CMAKE_CURRENT_LIST_DIR}")
set(TITLE_SEQUENCE_VERSION "0.4.26")
set(TITLE_SEQUENCE_URL "https://github.com/OpenRCT2/title-sequences/releases/download/v${TITLE_SEQUENCE_VERSION}/title-sequences.zip")
set(TITLE_SEQUENCE_SHA256 "dabb9787b1576342fca4dd9f64b3f8cfa04a7e6ce9c2bb9610f47b762905c858")
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/assets.json" ASSETS_JSON)
set(OBJECTS_VERSION "1.7.6")
set(OBJECTS_URL "https://github.com/OpenRCT2/objects/releases/download/v${OBJECTS_VERSION}/objects.zip")
set(OBJECTS_SHA256 "6aca2eb441fbe8c022ff84d59fb51ed7ea577756640970dc989eab685ff45696")
string(JSON TITLE_SEQUENCE_URL GET "${ASSETS_JSON}" "title-sequences" url)
string(JSON TITLE_SEQUENCE_SHA256 GET "${ASSETS_JSON}" "title-sequences" sha256)
set(OPENSFX_VERSION "1.0.6")
set(OPENSFX_URL "https://github.com/OpenRCT2/OpenSoundEffects/releases/download/v${OPENSFX_VERSION}/opensound.zip")
set(OPENSFX_SHA256 "06b90f3e19c216752df441d551b26a9e3e1ba7755bdd2102504b73bf993608be")
string(JSON OBJECTS_URL GET "${ASSETS_JSON}" objects url)
string(JSON OBJECTS_SHA256 GET "${ASSETS_JSON}" objects sha256)
set(OPENMSX_VERSION "1.6.1")
set(OPENMSX_URL "https://github.com/OpenRCT2/OpenMusic/releases/download/v${OPENMSX_VERSION}/openmusic.zip")
set(OPENMSX_SHA256 "994b350d3b180ee1cb9619fe27f7ebae3a1a5232840c4bd47a89f33fa89de1a1")
string(JSON OPENSFX_URL GET "${ASSETS_JSON}" opensfx url)
string(JSON OPENSFX_SHA256 GET "${ASSETS_JSON}" opensfx sha256)
set(REPLAYS_VERSION "0.0.92")
set(REPLAYS_URL "https://github.com/OpenRCT2/replays/releases/download/v${REPLAYS_VERSION}/replays.zip")
set(REPLAYS_SHA256 "455a19172a8df81b935a942bbbda20167b4740b34653fdb74127740686bf4cbe")
string(JSON OPENMUSIC_URL GET "${ASSETS_JSON}" openmusic url)
string(JSON OPENMUSIC_SHA256 GET "${ASSETS_JSON}" openmusic sha256)
string(JSON REPLAYS_URL GET "${ASSETS_JSON}" replays url)
string(JSON REPLAYS_SHA256 GET "${ASSETS_JSON}" replays sha256)
option(FORCE32 "Force 32-bit build. It will add `-m32` to compiler flags.")
option(WITH_TESTS "Build tests")
@@ -93,7 +90,7 @@ option(APPIMAGE "Create an appimage build (-rpath=$ORIGIN/../lib)" OFF)
option(DOWNLOAD_TITLE_SEQUENCES "Download title sequences during installation." ON)
option(DOWNLOAD_OBJECTS "Download objects during installation." ON)
option(DOWNLOAD_OPENSFX "Download OpenSoundEffects during installation." ON)
option(DOWNLOAD_OPENMSX "Download OpenMusic during installation." ON)
option(DOWNLOAD_OPENMUSIC "Download OpenMusic during installation." ON)
CMAKE_DEPENDENT_OPTION(DOWNLOAD_REPLAYS "Download replays during installation." ON
"WITH_TESTS" OFF)
CMAKE_DEPENDENT_OPTION(MACOS_USE_DEPENDENCIES "Use OpenRCT2 dependencies instead of system libraries" ON
@@ -149,7 +146,6 @@ if (MACOS_USE_DEPENDENCIES)
set(MACOS_DYLIBS_URL "https://github.com/OpenRCT2/Dependencies/releases/download/v${MACOS_DYLIBS_VERSION}/${MACOS_DYLIBS_ZIPFILE}")
download_openrct2_zip(
ZIP_VERSION ${MACOS_DYLIBS_VERSION}
DOWNLOAD_DIR ${MACOS_DYLIBS_DIR}
ZIP_URL ${MACOS_DYLIBS_URL}
SHA256 ${MACOS_DYLIBS_SHA256}
@@ -406,7 +402,7 @@ if (NOT CMAKE_CROSSCOMPILING)
file(GLOB_RECURSE dependent_files CONFIGURE_DEPENDS "${ROOT_DIR}/resources/${graphics_file}/*")
add_custom_command(
OUTPUT ${output_file}
COMMAND ./openrct2-cli sprite build "${CMAKE_BINARY_DIR}/${output_file}" "${json_file}"
COMMAND ./openrct2-cli sprite build "${CMAKE_BINARY_DIR}/${output_file}" "${json_file}" silent
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
DEPENDS ${dependent_files}
)
@@ -449,7 +445,6 @@ if (NOT MACOS_BUNDLE OR (MACOS_BUNDLE AND WITH_TESTS))
install(CODE "
include(${ROOT_DIR}/cmake/download.cmake)
download_openrct2_zip(
ZIP_VERSION ${TITLE_SEQUENCE_VERSION}
DOWNLOAD_DIR \$ENV{DESTDIR}${CMAKE_INSTALL_FULL_DATADIR}/openrct2/sequence/
SKIP_IF_EXISTS ${CMAKE_SOURCE_DIR}/data/sequence/
ZIP_URL ${TITLE_SEQUENCE_URL}
@@ -463,7 +458,6 @@ if (NOT MACOS_BUNDLE OR (MACOS_BUNDLE AND WITH_TESTS))
install(CODE "
include(${ROOT_DIR}/cmake/download.cmake)
download_openrct2_zip(
ZIP_VERSION ${OBJECTS_VERSION}
DOWNLOAD_DIR \$ENV{DESTDIR}${CMAKE_INSTALL_FULL_DATADIR}/openrct2/object/
SKIP_IF_EXISTS ${CMAKE_SOURCE_DIR}/data/object/
ZIP_URL ${OBJECTS_URL}
@@ -474,22 +468,20 @@ if (NOT MACOS_BUNDLE OR (MACOS_BUNDLE AND WITH_TESTS))
install(CODE "
include(${ROOT_DIR}/cmake/download.cmake)
download_openrct2_zip(
ZIP_VERSION ${OPENSFX_VERSION}
SKIP_IF_EXISTS ${CMAKE_SOURCE_DIR}/data/assetpack/openrct2.sound.parkap
DOWNLOAD_DIR \$ENV{DESTDIR}${CMAKE_INSTALL_FULL_DATADIR}/openrct2/
ZIP_URL ${OPENSFX_URL}
SHA256 ${OPENSFX_SHA256}
)")
endif ()
if (DOWNLOAD_OPENMSX)
if (DOWNLOAD_OPENMUSIC)
install(CODE "
include(${ROOT_DIR}/cmake/download.cmake)
download_openrct2_zip(
ZIP_VERSION ${OPENMSX_VERSION}
SKIP_IF_EXISTS ${CMAKE_SOURCE_DIR}/data/assetpack/openrct2.music.alternative.parkap
DOWNLOAD_DIR \$ENV{DESTDIR}${CMAKE_INSTALL_FULL_DATADIR}/openrct2/
ZIP_URL ${OPENMSX_URL}
SHA256 ${OPENMSX_SHA256}
ZIP_URL ${OPENMUSIC_URL}
SHA256 ${OPENMUSIC_SHA256}
)")
endif ()
if (DOWNLOAD_REPLAYS)
@@ -497,7 +489,6 @@ if (NOT MACOS_BUNDLE OR (MACOS_BUNDLE AND WITH_TESTS))
install(CODE "
include(${ROOT_DIR}/cmake/download.cmake)
download_openrct2_zip(
ZIP_VERSION ${REPLAYS_VERSION}
DOWNLOAD_DIR \${CMAKE_CURRENT_BINARY_DIR}/testdata/replays/
ZIP_URL ${REPLAYS_URL}
SHA256 ${REPLAYS_SHA256}
+22
View File
@@ -0,0 +1,22 @@
{
"objects": {
"url": "https://github.com/OpenRCT2/objects/releases/download/v1.7.6/objects.zip",
"sha256": "6aca2eb441fbe8c022ff84d59fb51ed7ea577756640970dc989eab685ff45696"
},
"openmusic": {
"url": "https://github.com/OpenRCT2/OpenMusic/releases/download/v1.6.1/openmusic.zip",
"sha256": "994b350d3b180ee1cb9619fe27f7ebae3a1a5232840c4bd47a89f33fa89de1a1"
},
"opensfx": {
"url": "https://github.com/OpenRCT2/OpenSoundEffects/releases/download/v1.0.6/opensound.zip",
"sha256": "06b90f3e19c216752df441d551b26a9e3e1ba7755bdd2102504b73bf993608be"
},
"title-sequences": {
"url": "https://github.com/OpenRCT2/title-sequences/releases/download/v0.4.26/title-sequences.zip",
"sha256": "dabb9787b1576342fca4dd9f64b3f8cfa04a7e6ce9c2bb9610f47b762905c858"
},
"replays": {
"url": "https://github.com/OpenRCT2/replays/releases/download/v0.0.92/replays.zip",
"sha256": "455a19172a8df81b935a942bbbda20167b4740b34653fdb74127740686bf4cbe"
}
}
-40
View File
@@ -1,40 +0,0 @@
#
# - Find speexdsp libraries
#
# SPEEXDSP_INCLUDE_DIRS - where to find speexdsp headers.
# SPEEXDSP_LIBRARIES - List of libraries when using speexdsp.
# SPEEXDSP_FOUND - True if speexdsp is found.
find_package(PkgConfig QUIET)
pkg_search_module(PC_SPEEXDSP QUIET speexdsp)
find_path(SPEEXDSP_INCLUDE_DIR
NAMES
speex/speex_resampler.h
HINTS
${PC_SPEEXDSP_INCLUDE_DIRS}
)
find_library(SPEEXDSP_LIBRARY
NAMES
speexdsp
HINTS
${PC_SPEEXDSP_LIBRARY_DIRS}
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(SpeexDSP
REQUIRED_VARS SPEEXDSP_LIBRARY SPEEXDSP_INCLUDE_DIR
VERSION_VAR PC_SPEEXDSP_VERSION)
if(SPEEXDSP_FOUND)
set(SPEEXDSP_LIBRARIES ${SPEEXDSP_LIBRARY})
set(SPEEXDSP_INCLUDE_DIRS ${SPEEXDSP_INCLUDE_DIR})
set(SPEEX_INCLUDE_DIRS ${SPEEXDSP_INCLUDE_DIR})
else()
set(SPEEXDSP_LIBRARIES)
set(SPEEXDSP_INCLUDE_DIRS)
set(SPEEX_INCLUDE_DIRS)
endif()
mark_as_advanced(SPEEXDSP_LIBRARIES SPEEXDSP_INCLUDE_DIRS SPEEX_INCLUDE_DIRS)
+4 -3
View File
@@ -1,5 +1,5 @@
function(download_openrct2_zip)
set(oneValueArgs ZIP_VERSION DOWNLOAD_DIR ZIP_URL SHA256)
set(oneValueArgs DOWNLOAD_DIR ZIP_URL SHA256)
set(multiValueArgs SKIP_IF_EXISTS)
cmake_parse_arguments(DOWNLOAD_OPENRCT2 "${options}" "${oneValueArgs}"
"${multiValueArgs}" ${ARGN} )
@@ -8,10 +8,11 @@ function(download_openrct2_zip)
if (NOT EXISTS ${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR})
set(DOWNLOAD_ZIP 1)
file(MAKE_DIRECTORY "${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR}")
else ()
if (EXISTS "${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR}/${ZIP_FILE_NAME}.zipversion")
file(READ "${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR}/${ZIP_FILE_NAME}.zipversion" DOWNLOAD_OPENRCT2_CACHED_VERSION)
if (NOT ${DOWNLOAD_OPENRCT2_CACHED_VERSION} STREQUAL ${DOWNLOAD_OPENRCT2_ZIP_VERSION})
if (NOT ${DOWNLOAD_OPENRCT2_CACHED_VERSION} STREQUAL ${DOWNLOAD_OPENRCT2_ZIP_URL})
message("Cache ${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR} not up to date")
set(DOWNLOAD_ZIP 1)
endif ()
@@ -43,7 +44,7 @@ function(download_openrct2_zip)
endif()
file(WRITE
"${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR}/${ZIP_FILE_NAME}.zipversion"
"${DOWNLOAD_OPENRCT2_ZIP_VERSION}"
"${DOWNLOAD_OPENRCT2_ZIP_URL}"
)
file(REMOVE "${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR}/${ZIP_FILE_NAME}")
endif ()
+1
View File
@@ -256,6 +256,7 @@ Appreciation for contributors who have provided substantial work, but are no lon
* Ruohao (Jater) Xu (jaterx)
* Marcel Vos (MarcelVos96)
* Jonas Doggart
* (pg805)
## Toolchain
* (Balletie) - macOS
-3
View File
@@ -551,7 +551,6 @@ STR_1168 :الإعدادات
STR_1169 :(لا شئ)
STR_1170 :{STRING}
STR_1171 :{RED} مغلق
STR_1172 :{YELLOW}{STRINGID}
STR_1173 : ابني ممشي وخطوط إنتظار
STR_1174 :Banner sign in the way
STR_1175 :Can’t build this on sloped footpath
@@ -1108,7 +1107,6 @@ STR_1727 :حقوق الإنشاء ليست للبيع!
STR_1728 :لا يمكنك شراء حقوق البناء هُنا
STR_1729 :الأرض ليست مملوكة للحديقة!
STR_1730 :{RED}مغلقة
STR_1731 :{WHITE}{STRINGID} - -
STR_1732 :بناء
STR_1733 :الوضع
STR_1734 :{WINDOW_COLOUR_2}عدد اللفات:
@@ -1149,7 +1147,6 @@ STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COM
STR_1773 :Only one on-ride photo section allowed per ride
STR_1774 :Only one cable lift hill allowed per ride
STR_1777 :موسيقي الرحلة
STR_1778 :{STRINGID} - -
STR_1790 :Select uniform colour for this type of staff
STR_1791 :{WINDOW_COLOUR_2}Uniform colour:
STR_1792 :Responding to {STRINGID} breakdown call
+5 -3
View File
@@ -557,7 +557,6 @@ STR_1168 :Opcions
STR_1169 :(Cap)
STR_1170 :{STRING}
STR_1171 :{RED}Tancada
STR_1172 :{YELLOW}{STRINGID}
STR_1173 :Construeix camins i cues
STR_1174 :Hi ha un cartell pel mig.
STR_1175 :Això no es pot construir a sobre d’un pendent.
@@ -1114,7 +1113,6 @@ STR_1727 :Els drets de construcció no estan a la venda!
STR_1728 :No se’n poden comprar els drets de construcció…
STR_1729 :El terreny no és propietat del parc!
STR_1730 :{RED}Tancat
STR_1731 :{WHITE}{STRINGID} - -
STR_1732 :Construeix
STR_1733 :Mode
STR_1734 :{WINDOW_COLOUR_2}Nombre de voltes:
@@ -1155,7 +1153,6 @@ STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COM
STR_1773 :Només es permet una secció de fotos de record per atracció.
STR_1774 :Només es permet un cable d’elevació per atracció.
STR_1777 :Música de l’atracció
STR_1778 :{STRINGID} - -
STR_1790 :Seleccioneu el color de l’uniforme d’aquest tipus d’empleats.
STR_1791 :{WINDOW_COLOUR_2}Color de l’uniforme:
STR_1792 :Responent la trucada d’avaria de {STRINGID}.
@@ -3844,3 +3841,8 @@ STR_7009 :Es reben scripts nous…
STR_7010 :No s’ha pogut iniciar la repetició. El fitxer «{STRING}» no existeix o no és vàlid.
STR_7011 :No s’ha pogut iniciar la repetició.
STR_7012 :Złoty polonès (PLN)
STR_7013 :Construeix àrees de camins
STR_7014 :Tinc el joc a l’Steam, però no el tinc instal·lat.
STR_7015 :Tanqueu l'Steam si està en execució i després premeu «D’acord».
STR_7016 :L’OpenRCT2 ha intentat executar una descàrrega a l’Steam. Executeu l’Steam i deixeu que descarregui el joc. Quan hagi acabat, premeu «D’acord».
STR_7017 :Surt
+1 -4
View File
@@ -557,7 +557,6 @@ STR_1168 :Nastavení
STR_1169 :(None)
STR_1170 :{STRING}
STR_1171 :{RED}Zavřeno
STR_1172 :{YELLOW}{STRINGID}
STR_1173 :Nástroj pro cesty a fronty
STR_1174 :Banner v cestě
STR_1175 :Toto nelze postavit na strmé cestě
@@ -1116,7 +1115,6 @@ STR_1727 :Stavební práva nejsou na prodej!
STR_1728 :Tyto stavební práva nelze zakoupit…
STR_1729 :Pozemek není ve vlastnictví parku!
STR_1730 :{RED}Zavřeno
STR_1731 :{WHITE}{STRINGID} - -
STR_1732 :Stavět
STR_1733 :Mód
STR_1734 :{WINDOW_COLOUR_2}Počet kol:
@@ -1157,7 +1155,6 @@ STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COM
STR_1773 :Je povolena jen jedna fotobuňka na atrakci
STR_1774 :Je povolen pouze jeden výtah na atrakci
STR_1777 :Hudba atrakcí
STR_1778 :{STRINGID} - -
STR_1790 :Vybrat barvu uniformy těchto zaměstnanců
STR_1791 :{WINDOW_COLOUR_2}Barva uniformy:
STR_1792 :Reaguje na poruchu {STRINGID}
@@ -3838,4 +3835,4 @@ STR_7004 :Vynutit překresl. (force redraw)
STR_7005 :Stavět cesty v oblasti označené tažením
STR_7006 :Vykreslit okraje tlačítek s obrázky
STR_7007 :Typ atrakce
STR_7008 :Neznámá atrakce ({INT32})
STR_7008 :Neznámá atrakce ({INT32})
+117 -91
View File
@@ -91,6 +91,7 @@ STR_0095 :Alpin rutchebane
STR_0096 :Klassisk træ rutsjebane
STR_0097 :Klassisk Stå-op Rutschebane
STR_0098 :LSM Accelereret Rutschebane
STR_0099 :Klassisk Wooden Twister-rutsjebane
STR_0512 :En kompakt rutschebane med en spiral stigning og bløde, snoede fald.
STR_0513 :En loopende rutschebane hvor passagerne er i en stående position
STR_0514 :Vogne suspenderet under rutschebane sporet, svinger ud til siden i svingene
@@ -176,6 +177,7 @@ STR_0605 :Ryttere kælker ned ad en bugtende stålbane og bremser for at kont
STR_0606 :En ældre stils trærutsjebane med en hurtig og ujævn tur med masser af luft tid, laterale G'er, og designet til at føles som ‘ude-af-kontrol’
STR_0607 :En intens, Klassisk stål-stil, loopende rutschebane hvor passagerne er i en stående position
STR_0608 :Rutsjebanetog accelereres ud af stationen af lineære synkronmotorer, for at suse gennem snoede inversioner og sving
STR_0609 :En træ-rutsjebane i klassisk stil med en hurtig og hård tur, artikulerede tog, masser af airtime og snoede spor
STR_0767 :Gæst {INT32}
STR_0768 :Handymand {INT32}
STR_0769 :Mekaniker {INT32}
@@ -462,14 +464,14 @@ STR_1076 :Butiks bod tilstand
STR_1077 :Rotations tilstand
STR_1078 :Fremad rotation
STR_1079 :Baglæns rotation
STR_1080 :Film: ”Avenging aviators”
STR_1081 :3D film: ”Mouse tails”
STR_1080 :Film: ”Avenging Aviators”
STR_1081 :3D-film: ”Mouse Tails”
STR_1082 :Space rings tilstand
STR_1083 :Begynder tilstand
STR_1084 :LIM-drevet afsendelse
STR_1085 :Film: ”Thrill riders”
STR_1086 :3D film: ”Storm chasers”
STR_1087 :3D film: ”Space raiders”
STR_1085 :Film: ”Thrill Riders”
STR_1086 :3D-film: ”Storm Chasers”
STR_1087 :3D-film: ”Space Raiders”
STR_1088 :Intens tilstand
STR_1089 :Bersærk tilstand
STR_1090 :Spøgelseshus tilstand
@@ -554,7 +556,6 @@ STR_1168 :Indstillinger
STR_1169 :(ingen)
STR_1170 :{STRING}
STR_1171 :{RED}Lukket
STR_1172 :{YELLOW}{STRINGID}
STR_1173 :Byg stier og kø linjer
STR_1174 :Banner skilt i vejen
STR_1175 :Kan ikke bygge dette på en skrå sti
@@ -1111,7 +1112,6 @@ STR_1727 :Byggetilladelse er ikke til salg!
STR_1728 :Kan ikke købe byggetilladelse her…
STR_1729 :Land ikke ejet af parken!
STR_1730 :{RED}Lukket
STR_1731 :{WHITE}{STRINGID} - -
STR_1732 :Byg
STR_1733 :Tilstand
STR_1734 :{WINDOW_COLOUR_2}Antal omgange:
@@ -1152,7 +1152,6 @@ STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COM
STR_1773 :Kun en on-ride foto sektion, tilladt per forlystelse
STR_1774 :Kun et trækspil er tilladt per forlystelse.
STR_1777 :Forlystelses musik
STR_1778 :{STRINGID} - -
STR_1790 :vælg uniforms farve for denne type personale
STR_1791 :{WINDOW_COLOUR_2}Uniforms farve:
STR_1792 :Reagerer på et kald til {STRINGID} på grund af nedbrud
@@ -1255,8 +1254,8 @@ STR_1891 :Ingen {STRINGID} i parken endnu!
STR_1894 :{WINDOW_COLOUR_2}{STRINGID} solgt: {BLACK}{COMMA32}
STR_1895 :Byg en ny forlystelse
STR_1896 :{WINDOW_COLOUR_2}Udgifter/indtægter
STR_1897 :{WINDOW_COLOUR_2}Forlystelse konstruktion
STR_1898 :{WINDOW_COLOUR_2}Forlystelse driftsomkostninger
STR_1897 :{WINDOW_COLOUR_2}Konstruktion
STR_1898 :{WINDOW_COLOUR_2}Drift (Forlystelser)
STR_1899 :{WINDOW_COLOUR_2}Landopkøb
STR_1900 :{WINDOW_COLOUR_2}Ændring af landskab
STR_1901 :{WINDOW_COLOUR_2}Entrébilletter
@@ -2224,8 +2223,8 @@ STR_3228 :Sæt start punkt for personer
STR_3229 :Blokbremser kan ikke bruges lige efter stationen
STR_3230 :Blokbremser kan ikke bruges lige efter hinanden
STR_3231 :Blokbremser kan ikke bruges lige efter toppen af en løftekæde
STR_3232 :Indstillinger - Finansiel
STR_3233 :Indstillinger - Gæster
STR_3232 :Scenarieindstillinger - Økonomi
STR_3233 :Scenarieindstillinger – Gæster
STR_3235 :Vis finansindstillinger
STR_3236 :Vis gæsteindstillinger
STR_3238 :Ingen penge
@@ -2269,7 +2268,7 @@ STR_3279 :Gratis park entré / Betal for forlystelser
STR_3280 :Betal Park entré / Gratis forlystelser
STR_3281 :Entré pris:
STR_3283 :vælg forlystelser der skal bevares
STR_3285 :Bevarede forlystelser
STR_3285 :Scenarieindstillinger - Bevarede forlystelser
STR_3286 :Vælg mål for dette scenarie
STR_3287 :{WINDOW_COLOUR_2}Mål:
STR_3294 :Skift…
@@ -2941,7 +2940,7 @@ STR_5858 :Brug GPU til visning i stedet for CPU. Forbedrer kompatibiliteten m
STR_5859 :Aktiver ‘frame tweening’ for et visuelt{NEWLINE}mere flydende spil. Ved deaktivering,{NEWLINE}vil spillet køre med 40 billeder pr. sekund, fast.
STR_5860 :Skift original/decompileret spor tegning
STR_5861 :Kunne ikke verificere nøglen.
STR_5862 :Blokér ukendte spillere.
STR_5862 :Blokér ukendte spillere
STR_5863 :Tillad at kun spillere med kendte nøgler kan deltage.
STR_5864 :Denne server tillader kun hvidlistede spillere at oprette forbindelse.
STR_5865 :Gem chat historik
@@ -3182,7 +3181,7 @@ STR_6102 :Værdien af forlystelser vil ikke falde over tid over tid, Så gæs
STR_6103 :Denne funktion er deaktiveret ved netværksspil.
STR_6105 :Hypercoaster
STR_6107 :Monster Trucks
STR_6109 :Hyper-Twister
STR_6109 :Hyper-Twister rutchebane
STR_6111 :Klassisk mini rutchebane
STR_6113 :En høj ikke-inverterende rutschebane med store fald, høj hastighed og komfortable vogne med simpel fastspænding
STR_6115 :Kæmpe Eldrevne firhjulstrækkere , der kan klatre op ad stejle skråninger
@@ -3686,8 +3685,8 @@ STR_6657 :Land Ikke Ejet
STR_6658 :Sæt land til at ikke være ejet af parken, heller ikke muligt at købe land
STR_6659 :Gæster ignorerer priser
STR_6660 :Gæsterne vil ignorere priserne for forlystelser og stande.
STR_6661 :Alt tilfældigt
STR_6662 :Gør farverne tilfældige for hver Randomise colours for every train or vehicle.
STR_6661 :Randomisér alle
STR_6662 :Randomisér farver for hvert tog eller køretøj.
STR_6663 :Dato snyd
STR_6664 :Vis dato snyd
STR_6665 :Natur/vejr Snyd
@@ -3698,7 +3697,7 @@ STR_6669 :Vis snyd med ansatte
STR_6670 :Gæste opførsel
STR_6671 :Vis ‘rigtige’ navne på ansatte
STR_6672 :Skift imellem at vise ‘rigtige’ navne på ansatte og ansatte numre
STR_6673 :Gennemsigtig
STR_6673 :Transparent
# Used as part of a sentence (see https://github.com/OpenRCT2/OpenRCT2/issues/22072).
STR_6674 :{MONTH}, År {COMMA16}
STR_6675 :Peep Navne
@@ -3736,85 +3735,112 @@ STR_6706 :{WINDOW_COLOUR_2}Nuværende billedfil: {BLACK}{STRING}
STR_6707 :(Ingen valgt)
STR_6708 :Udglatnings Styrke
STR_6709 :Angiv udglatnings styrke imellem {COMMA16} og {COMMA16}
STR_6710 :Stable sort
STR_6711 :Filename:
STR_6712 :Save
STR_6710 :Stabil sortering
STR_6711 :Filnavn:
STR_6712 :Gem
STR_6713 :{COMMA32} {STRINGID}
STR_6714 :Filename
STR_6715 :Date modified
STR_6716 :File size
STR_6717 :File size {STRINGID}
STR_6718 :Peep Animations
STR_6719 :At least one guest peep animations object must be selected
STR_6720 :At least one handyman peep animations object must be selected
STR_6721 :At least one mechanic peep animations object must be selected
STR_6722 :At least one security peep animations object must be selected
STR_6723 :At least one entertainer peep animations object must be selected
STR_6714 :Filnavn
STR_6715 :Dato ændret
STR_6716 :Filstørrelse
STR_6717 :Filstørrelse {STRINGID}
STR_6718 :Peep-animationer
STR_6719 :Mindst ét gæste-peep-animationsobjekt skal være valgt
STR_6720 :Mindst ét vicevært-peep-animationsobjekt skal være valgt
STR_6721 :Mindst ét mekaniker-peep-animationsobjekt skal være valgt
STR_6722 :Mindst ét sikkerheds-peep-animationsobjekt skal være valgt
STR_6723 :Mindst ét entertainer-peep-animationsobjekt skal være valgt
STR_6724 :Scenarie Tekster
STR_6725 :X:
STR_6726 :Y:
STR_6727 :Dive Loop (left)
STR_6728 :Dive Loop (right)
STR_6729 :Cable lift hill must start immediately after station or block brake
STR_6730 :Export emscripten data
STR_6731 :Import emscripten data
STR_6732 :Show a button in the toolbar to rotate the view anti-clockwise
STR_6733 :See-Through
STR_6734 :Map elements that are at or above the cutting height are rendered translucent.
STR_6735 :Go up to parent folder
STR_6736 :Preview
STR_6737 :No preview available
STR_6738 :{WINDOW_COLOUR_2}Park rating: {BLACK}{UINT16}
STR_6739 :{WINDOW_COLOUR_2}Date: {BLACK}{STRINGID}
STR_6740 :{WINDOW_COLOUR_2}Cash: {BLACK}{CURRENCY2DP}
STR_6741 :{WINDOW_COLOUR_2}Num. rides: {BLACK}{UINT16}
STR_6742 :{WINDOW_COLOUR_2}Num. guests: {BLACK}{UINT16}
STR_6743 :Climate
STR_6727 :Dyk Loop (venstre)
STR_6728 :Dyk Loop (højre)
STR_6729 :Kabel-lifthill skal starte umiddelbart efter station eller blokbremse
STR_6730 :Eksportér emscripten-data
STR_6731 :Importér emscripten-data
STR_6732 :Vis en knap i værktøjslinjen til at rotere visningen mod uret
STR_6733 :Gennemsigtig
STR_6734 :Elementer på eller over skærehøjden vises som gennemsigtige.
STR_6735 :Gå op til overmappen
STR_6736 :Forhåndsvisning
STR_6737 :Ingen forhåndsvisning tilgængelig
STR_6738 :{WINDOW_COLOUR_2}Parkvurdering: {BLACK}{UINT16}
STR_6739 :{WINDOW_COLOUR_2}Dato: {BLACK}{STRINGID}
STR_6740 :{WINDOW_COLOUR_2}Kontanter: {BLACK}{CURRENCY2DP}
STR_6741 :{WINDOW_COLOUR_2}Antal forlystelser: {BLACK}{UINT16}
STR_6742 :{WINDOW_COLOUR_2}Antal gæster: {BLACK}{UINT16}
STR_6743 :Klima
STR_6744 :{WINDOW_COLOUR_2}{UINT16}%
STR_6745 :{WINDOW_COLOUR_2}Guests’ intensity preferences:
STR_6746 :No preferences
STR_6747 :Preferences vary (default)
STR_6748 :Only less intense rides
STR_6749 :Only more intense rides
STR_6750 :Select what kind of ride intensity newly spawned guests prefer.
STR_6751 :Queue paths cannot be used for level crossings!
STR_6752 :Scenario options - Objective
STR_6753 :Scenario options - Scenario Details
STR_6754 :Scenario options - Land Restrictions
STR_6755 :Show objective options
STR_6756 :Show scenario details options
STR_6757 :Show land restriction options
STR_6758 :Loan options
STR_6759 :Business model
STR_6760 :Earnings:
STR_6761 :Scenario Details
STR_6762 :Udseende
STR_6745 :{WINDOW_COLOUR_2}Gæsters intensitetspræferencer:
STR_6746 :Ingen præferencer
STR_6747 :Varierende præferencer (standard)
STR_6748 :Kun mindre intense forlystelser
STR_6749 :Kun mere intense forlystelser
STR_6750 :Vælg hvilken intensitet nye gæster foretrækker.
STR_6751 :Køstier kan ikke bruges til planoverkørsler!
STR_6752 :Scenarieindstillinger – Mål
STR_6753 :Scenarieindstillinger – Scenariedetaljer
STR_6754 :Scenarieindstillinger – Jordbegrænsninger
STR_6755 :Vis målindstillinger
STR_6756 :Vis scenariedetaljeindstillinger
STR_6757 :Vis jordbegrænsningsindstillinger
STR_6758 :Låneindstillinger
STR_6759 :Forretningsmodel
STR_6760 :Indtjening:
STR_6761 :Scenariedetaljer
STR_6762 :Brugerflade
STR_6763 :RollerCoaster Tycoon 1
STR_6764 :Saving and autosaves
STR_6765 :Advanced
STR_6766 :Clear
STR_6764 :Gem og autogem
STR_6765 :Avanceret
STR_6766 :Ryd
STR_6767 :Window
STR_6768 :Rendering
STR_6769 :Behaviour
STR_6770 :Frame rate limit:
STR_6771 :Internal speed (default)
STR_6772 :Vertical sync
STR_6773 :Unrestricted
STR_6774 :Time since last inspection
STR_6775 :{COMMA16} minute
STR_6776 :{COMMA16} minutes
STR_6777 :more than 4 hours
STR_6778 :Preview scenarios using:
STR_6779 :Select the kind of preview image to use in the scenario selection screen.
STR_6780 :Mini maps
STR_6781 :Screenshots
STR_6782 :Park notifications
STR_6783 :Ride notifications
STR_6784 :Guest notifications
STR_6769 :Adfærd
STR_6770 :Begræns billedfrekvens:
STR_6771 :Skærmens hastighed (standard)
STR_6772 :Vertikal synkronisering
STR_6773 :Ubegrænset
STR_6774 :Tid siden sidste inspektion
STR_6775 :{COMMA16} minut
STR_6776 :{COMMA16} minutter
STR_6777 :mere end 4 timer
STR_6778 :Forhåndsvis scenarier med:
STR_6779 :Vælg hvilken type forhåndsvisningsbillede der bruges i scenarieoversigten.
STR_6780 :Minikort
STR_6781 :Skærmbilleder
STR_6782 :Park-meddelelser
STR_6783 :Forlystelses-meddelelser
STR_6784 :Gæste-meddelelser
STR_6785 :Gamepad
STR_6786 :Deadzone:
STR_6787 :Analogue stick deadzone (minimum movement required)
STR_6788 :Sensitivity:
STR_6789 :Analogue stick sensitivity multiplier
STR_6790 :Deadzone: {COMMA32}%
STR_6791 :Sensitivity: {COMMA32}%
STR_6786 :Dødzone:
STR_6787 :Dødzone for analog‑stick (mindste nødvendige bevægelse)
STR_6788 :Følsomhed:
STR_6789 :Følsomhedsmultiplikator for analog‑stick
STR_6790 :Dødzone: {COMMA32}%
STR_6791 :Følsomhed: {COMMA32}%
STR_6792 :Indgangsbygninger
STR_6793 :Gæster og personale
STR_6794 :Scenarie og Temaer
STR_6795 :{MOVE_X}{10}{STRINGID}
STR_6796 :•{MOVE_X}{10}{STRINGID}
STR_6797 :Ingen forhåndsvisning
STR_6798 :Skærmbillede
STR_6799 :Minikort
STR_7000 :eller
STR_7001 :Forlystelsesnavn
STR_7002 :{STRINGID} {STRINGID}
STR_7003 :Lydfilen ‘{STRING}’ er afkortet. Forventede sample {INT32}, men kun {INT32} er tilgængelige. Overvej at geninstallere RCT2.
STR_7004 :Tving genoptegning
STR_7005 :Træk et område af fodgængersti
STR_7006 :Tegn kant rundt om billedknapper
STR_7007 :Forlystelsestype
STR_7008 :Ukendt forlystelsestype ({INT32})
STR_7009 :Modtager scripts…
STR_7010 :Kunne ikke starte replay, filen ‘{STRING}’ findes ikke eller er ugyldig
STR_7011 :Kunne ikke starte replay
STR_7012 :Polsk złoty (PLN)
STR_7013 :Træk områder af sti
STR_7014 :Jeg ejer spillet på Steam, men har ikke installeret det endnu.
STR_7015 :Luk venligst Steam, hvis det kører, og klik derefter på ‘OK’.
STR_7016 :OpenRCT2 har forsøgt at starte en download i Steam. Åbn Steam og lad det hente spillet. Når Steam er færdig, klik på ‘OK’.
STR_7017 :Afslut
+9 -3
View File
@@ -556,7 +556,6 @@ STR_1168 :Optionen
STR_1169 :(Keine)
STR_1170 :{STRING}
STR_1171 :{RED}Geschlossen
STR_1172 :{YELLOW}{STRINGID}
STR_1173 :Fußwege und Warteschlangenreihen anlegen
STR_1174 :Banner im Weg
STR_1175 :Kann nicht auf Fußweg mit Neigung angelegt werden
@@ -1114,7 +1113,6 @@ STR_1727 :Baurechte nicht zum Verkauf!
STR_1728 :Erwerb von Baurechten hier nicht möglich …
STR_1729 :Land gehört nicht dem Park!
STR_1730 :{RED}Geschlossen
STR_1731 :{WHITE}{STRINGID} - -
STR_1732 :Bauen
STR_1733 :Modus
STR_1734 :{WINDOW_COLOUR_2}Anzahl der Runden:
@@ -1155,7 +1153,6 @@ STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COM
STR_1773 :Nur ein Fahrtfoto-Bereich pro Bahn erlaubt
STR_1774 :Nur ein Kabellifthügel pro Bahn erlaubt
STR_1777 :Attraktionsmusik
STR_1778 :{STRINGID} - -
STR_1790 :Uniformfarbe für diesen{NEWLINE}Mitarbeiter auswählen
STR_1791 :{WINDOW_COLOUR_2}Uniformfarbe:
STR_1792 :Unterwegs zur Reparatur von {STRINGID}
@@ -3832,3 +3829,12 @@ STR_7005 :Baue eine Fläche aus Fußwegen
STR_7006 :Zeichne Ränder um Bildknöpfe
STR_7007 :Achterbahntyp
STR_7008 :Unbekannter Fahrgeschäftstyp ({INT32})
STR_7009 :Emfange Skripte …
STR_7010 :Wiederholung konnte nicht gestartet werden, Datei „{STRING}“ existiert nicht oder ist ungültig
STR_7011 :Wiederholung konnte nicht gestartet werden
STR_7012 :Polnische Złoty (PLN)
STR_7013 :Weggebiete ziehen
STR_7014 :Mir gehört das Spiel auf Steam, habe es aber noch nicht installiert.
STR_7015 :Bitte schließen Sie Steam, falls es läuft, dann klicken Sie auf „OK“.
STR_7016 :OpenRCT2 hat versucht, einen Download in Steam auszulösen. Bitte öffen Sie Steam und lassen Sie es das Spiel herunterladen. Wenn Steam fertig ist, klicken Sie auf „OK“.
STR_7017 :Verlassen
+5 -3
View File
@@ -556,7 +556,6 @@ STR_1168 :Options
STR_1169 :(None)
STR_1170 :{STRING}
STR_1171 :{RED}Closed
STR_1172 :{YELLOW}{STRINGID}
STR_1173 :Build footpaths and queue lines
STR_1174 :Banner sign in the way
STR_1175 :Can’t build this on sloped footpath
@@ -1113,7 +1112,6 @@ STR_1727 :Construction rights not for sale!
STR_1728 :Can’t buy construction rights here…
STR_1729 :Land not owned by park!
STR_1730 :{RED}Closed
STR_1731 :{WHITE}{STRINGID} - -
STR_1732 :Build
STR_1733 :Mode
STR_1734 :{WINDOW_COLOUR_2}Number of laps:
@@ -1154,7 +1152,6 @@ STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COM
STR_1773 :Only one on-ride photo section allowed per ride
STR_1774 :Only one cable lift hill allowed per ride
STR_1777 :Ride music
STR_1778 :{STRINGID} - -
STR_1790 :Select uniform colour for this type of staff
STR_1791 :{WINDOW_COLOUR_2}Uniform colour:
STR_1792 :Responding to {STRINGID} breakdown call
@@ -3851,3 +3848,8 @@ STR_7018 :{SPRITE}{MOVE_X}{17}{STRINGID}
STR_7019 :{SPRITE}{MOVE_X}{27}{STRINGID}
STR_7020 :{MOVE_X}{10}{SPRITE}{NEWLINE_SMALLER}{MOVE_X}{36}{STRINGID}
STR_7021 :{MOVE_X}{10}{SPRITE}{NEWLINE_SMALLER}»{MOVE_X}{36}{STRINGID}
STR_7022 :{STRING} - -
STR_7023 :Make invisible
STR_7024 :Makes the whole ride invisible
STR_7025 :Make visible
STR_7026 :Makes the whole ride visible
+1 -4
View File
@@ -556,7 +556,6 @@ STR_1168 :Agordoj
STR_1169 :(Neniu)
STR_1170 :{STRING}
STR_1171 :{RED}Fermita
STR_1172 :{YELLOW}{STRINGID}
STR_1173 :Konstrui trotuarojn kaj atendovicojn
STR_1174 :Rubando obstrukcas
STR_1175 :Ne eblas konstrui ĉi tion sur dekliva trotuaro
@@ -1113,7 +1112,6 @@ STR_1727 :Konstruado-rajtoj ne estas aĉeteblaj!
STR_1728 :Ne eblas aĉeti konstruado-rajtojn ĉi tie…
STR_1729 :Bieno ne estas posedata de parko!
STR_1730 :{RED}Fermita
STR_1731 :{WHITE}{STRINGID} - -
STR_1732 :Konstrui
STR_1733 :Reĝimo
STR_1734 :{WINDOW_COLOUR_2}Nombro de etapoj:
@@ -1154,7 +1152,6 @@ STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COM
STR_1773 :Nur unu sur-atrakcia fotoparto estas permesita po atrakcio
STR_1774 :Nur unu kablolifta monteto estas permesita po atrakcio
STR_1777 :Muziko de atrakcio
STR_1778 :{STRINGID} - -
STR_1790 :Elekti uniformkoloron de tiaj dungitoj
STR_1791 :{WINDOW_COLOUR_2}Uniformkoloro:
STR_1792 :Reagas al paneovoko de {STRINGID}
@@ -1608,7 +1605,7 @@ STR_2261 :Minimuma financado
STR_2262 :Normala financado
STR_2263 :Maksimuma financado
STR_2264 :Financado de esplorado
STR_2265 :{WINDOW_COLOUR_2}Kosto: {BLACK}po {CURRENCY} por mono
STR_2265 :{WINDOW_COLOUR_2}Kosto: {BLACK}po {CURRENCY} por monato
STR_2266 :Prioritatoj de esplorado
STR_2267 :Nune disvolvata
STR_2268 :Pasinta disvolvado
+3 -3
View File
@@ -557,7 +557,6 @@ STR_1168 :Opciones
STR_1169 :(Ninguno)
STR_1170 :{STRING}
STR_1171 :{RED}Cerrada
STR_1172 :{YELLOW}{STRINGID}
STR_1173 :Construir senderos
STR_1174 :Cartel de señal interfiere
STR_1175 :No se puede construir esto sobre una pendiente
@@ -1114,7 +1113,6 @@ STR_1727 :¡Derechos de construcción no a la venta!
STR_1728 :No puedes comprar derechos de construcción aquí…
STR_1729 :¡El terreno no es propiedad del parque!
STR_1730 :{RED}Cerrado
STR_1731 :{WHITE}{STRINGID} - -
STR_1732 :Construir
STR_1733 :Modo
STR_1734 :{WINDOW_COLOUR_2}Numero de vueltas:
@@ -1155,7 +1153,6 @@ STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COM
STR_1773 :Sólo se permite una sección de fotos por atracción.
STR_1774 :Sólo un cable de elevación por atracción.
STR_1777 :Música de atracción
STR_1778 :{STRINGID} - -
STR_1790 :Selecciona el color del uniforme para este tipo de empleados
STR_1791 :{WINDOW_COLOUR_2}Color del uniforme:
STR_1792 :Dirigiéndose a {STRINGID}
@@ -3834,3 +3831,6 @@ STR_7000 :o
STR_7001 :Nombre de Atracción
STR_7002 :{STRINGID} {STRINGID}
STR_7003 :El archivo de audio ‘{STRING}’ está truncado. Se esperaban {INT32} muestras, pero solo están disponibles {INT32}. Considere reinstalar RCT2.
STR_7004 :Forzar redibujado
STR_7005 :Arrastrar un área de sendero
STR_7006 :Dibujar borde alrededor de los botones con imágenes
-3
View File
@@ -553,7 +553,6 @@ STR_1168 :Asetukset
STR_1169 :(Ei mitään)
STR_1170 :{STRING}
STR_1171 :{RED}Suljettu - -
STR_1172 :{YELLOW}{STRINGID}
STR_1173 :Rakenna polkuja ja jonotusalueita
STR_1174 :Banneri on tiellä
STR_1175 :Tätä ei voi rakentaa kaltevalle polulle
@@ -1113,7 +1112,6 @@ STR_1727 :Rakennusluvat eivät ole myytävänä!
STR_1728 :Rakennuslupia ei voi ostaa tähän…
STR_1729 :Maa ei ole puiston omistuksessa!
STR_1730 :{RED}Suljettu - -
STR_1731 :{WHITE}{STRINGID} - -
STR_1732 :Rakenna
STR_1733 :Tila
STR_1734 :{WINDOW_COLOUR_2}Kierrosten määrä:
@@ -1154,7 +1152,6 @@ STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COM
STR_1773 :Vain yksi valokuvaosio sallittu per laite
STR_1774 :Vain yksi nostomäki sallittu per laite
STR_1777 :{WINDOW_COLOUR_2}Musiikki
STR_1778 :{STRINGID} - -
STR_1790 :Valitse virka-asun väri tälle henkilöstötyypille
STR_1791 :{WINDOW_COLOUR_2}Virka-asun väri:
STR_1792 :Matkalla korjaamaan laitetta {STRINGID}
-3
View File
@@ -556,7 +556,6 @@ STR_1168 :Options
STR_1169 :(Aucun)
STR_1170 :{STRING}
STR_1171 :{RED}Fermé
STR_1172 :{YELLOW}{STRINGID}
STR_1173 :Construire des allées et des files d’attentes
STR_1174 :Panneau d’affichage sur le passage
STR_1175 :Impossible de construire ceci sur une allée en pente
@@ -1114,7 +1113,6 @@ STR_1727 :Les droits de construction ne sont pas à vendre !
STR_1728 :Impossible d’acheter les droits de construction ici…
STR_1729 :Ce terrain n’appartient pas au parc !
STR_1730 :{RED}Fermé
STR_1731 :{WHITE}{STRINGID} - -
STR_1732 :Construction
STR_1733 :Mode
STR_1734 :{WINDOW_COLOUR_2}Nombre de tours :
@@ -1155,7 +1153,6 @@ STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COM
STR_1773 :Une seule section photo sur le vif autorisée par attraction
STR_1774 :Une seule remontée à chaîne autorisée par attraction
STR_1777 :Musique de l’attraction
STR_1778 :{STRINGID} - -
STR_1790 :Sélectionnez la couleur de l’uniforme pour ce type d’employé
STR_1791 :{WINDOW_COLOUR_2}Couleur d’uniforme :
STR_1792 :Va réparer {STRINGID}
-3
View File
@@ -556,7 +556,6 @@ STR_1168 :Opcións
STR_1169 :(Ningún)
STR_1170 :{STRING}
STR_1171 :{RED}Pechado
STR_1172 :{YELLOW}{STRINGID}
STR_1173 :Construír sendeiros e filas de espera
STR_1174 :Letreiro no medio
STR_1175 :Non se pode construír isto nun sendeiro inclinado
@@ -1113,7 +1112,6 @@ STR_1727 :Os dereitos de construción non están á venda!
STR_1728 :Non se poden mercar dereitos de construción aquí…
STR_1729 :O terreo non é propiedade do parque!
STR_1730 :{RED}Pechado
STR_1731 :{WHITE}{STRINGID} - -
STR_1732 :Construír
STR_1733 :Modo
STR_1734 :{WINDOW_COLOUR_2}Número de voltas:
@@ -1154,7 +1152,6 @@ STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COM
STR_1773 :Só se permite unha sección de fotos por atracción.
STR_1774 :Só se permite unha subida con cable por atracción
STR_1777 :Música de atracción
STR_1778 :{STRINGID} - -
STR_1790 :Seleccione a cor do uniforme para este tipo de persoal
STR_1791 :{WINDOW_COLOUR_2}Cor do uniforme:
STR_1792 :Respondendo á avaría de {STRINGID}
-3
View File
@@ -556,7 +556,6 @@ STR_1168 :Beállítások
STR_1169 :(semmi)
STR_1170 :{STRING}
STR_1171 :{RED}Zárva
STR_1172 :{YELLOW}{STRINGID}
STR_1173 :Utak és várósorok építése
STR_1174 :Egy hirdetőtábla útban van
STR_1175 :Nem építhető lejtős úton
@@ -1113,7 +1112,6 @@ STR_1727 :Az építési jogok nem eladóak!
STR_1728 :Itt nem lehet építési jogokat vásárolni…
STR_1729 :A terület nem a park tulajdona!
STR_1730 :{RED}Zárva
STR_1731 :{WHITE}{STRINGID} - -
STR_1732 :Építés
STR_1733 :Mód
STR_1734 :{WINDOW_COLOUR_2}Körök száma:
@@ -1154,7 +1152,6 @@ STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COM
STR_1773 :Csak egy élményfotó-szakasz engedélyezett játékonként
STR_1774 :Csak egy kábeles felvonószakasz engedélyezett játékonként
STR_1777 :Játékok zenéje
STR_1778 :{STRINGID} - -
STR_1790 :A választott típusú alkalmazottak által viselt egyenruha színének kiválasztása
STR_1791 :{WINDOW_COLOUR_2}Egyenruha színe:
STR_1792 :{STRINGID} segélykérésére válaszol
-3
View File
@@ -555,7 +555,6 @@ STR_1168 :Opzioni
STR_1169 :(Nessuno)
STR_1170 :{STRING}
STR_1171 :{RED}Chiuso
STR_1172 :{YELLOW}{STRINGID}
STR_1173 :Costruisci sentieri e corsie d’attesa
STR_1174 :Un’insegna è d’intralcio
STR_1175 :Impossibile costruirlo su un sentiero in pendenza
@@ -1112,7 +1111,6 @@ STR_1727 :I diritti di costruzione non sono in vendita!
STR_1728 :Impossibile comprare i diritti di costruzione qui…
STR_1729 :Questo terreno non è di proprietà del parco!
STR_1730 :{RED}Chiuso
STR_1731 :{WHITE}{STRINGID} - -
STR_1732 :Costruisci
STR_1733 :Modalità
STR_1734 :{WINDOW_COLOUR_2}Numero di giri:
@@ -1153,7 +1151,6 @@ STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COM
STR_1773 :Può esserci soltanto una sezione di foto-in-corsa per attrazione
STR_1774 :Può esserci soltanto una salita per il traino con cavo per attrazione
STR_1777 :Musica attrazioni
STR_1778 :{STRINGID} - -
STR_1790 :Scegli il colore dell’uniforme per questo tipo di dipendente
STR_1791 :{WINDOW_COLOUR_2}Colore dell’uniforme:
STR_1792 :Sta accorrendo al guasto di {STRINGID}
-3
View File
@@ -552,7 +552,6 @@ STR_1168 :設定
STR_1169 :(なし)
STR_1170 :{STRING}
STR_1171 :{RED}閉鎖中
STR_1172 :{YELLOW}{STRINGID}
STR_1173 :歩道と行列歩道を敷設
STR_1174 :バナーがあります
STR_1175 :これは傾斜のある歩道には設置できません
@@ -1109,7 +1108,6 @@ STR_1727 :建設権は売りに出ていません!
STR_1728 :ここの建設権を購入できません…
STR_1729 :この土地は遊園地のものではありません!
STR_1730 :{RED}閉鎖中
STR_1731 :{WHITE}{STRINGID} - -
STR_1732 :建設
STR_1733 :モード
STR_1734 :{WINDOW_COLOUR_2}ラップ数:
@@ -1150,7 +1148,6 @@ STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COM
STR_1773 :乗物からの写真の場所は、各乗物につき一箇所だけです
STR_1774 :ケーブルリフトヒルは、各乗物につき一箇所だけです
STR_1777 :音楽
STR_1778 :{STRINGID} - -
STR_1790 :このスタッフのタイプの制服の色を選択:
STR_1791 :{WINDOW_COLOUR_2}制服の色:
STR_1792 :{STRINGID}の故障の電話を返事中
-3
View File
@@ -557,7 +557,6 @@ STR_1168 :설정
STR_1169 :(없음)
STR_1170 :{STRING}
STR_1171 :{RED}닫힘
STR_1172 :{YELLOW}{STRINGID}
STR_1173 :보도와 대기 줄을 만듭니다
STR_1174 :팻말이 있습니다
STR_1175 :경사진 보도 위에 건설할 수 없습니다
@@ -1115,7 +1114,6 @@ STR_1727 :판매 중인 건설권이 아닙니다!
STR_1728 :이곳의 건설권을 살 수 없습니다…
STR_1729 :공원 소유의 땅이 아닙니다!
STR_1730 :{RED}닫힘
STR_1731 :{WHITE}{STRINGID} - -
STR_1732 :건설
STR_1733 :모드
STR_1734 :{WINDOW_COLOUR_2}바퀴 수:
@@ -1156,7 +1154,6 @@ STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COM
STR_1773 :한 놀이기구에는 하나의 탑승 사진 섹션만 만들 수 있습니다
STR_1774 :한 놀이기구에는 하나의 케이블 리프트만 만들 수 있습니다
STR_1777 :놀이기구 음악
STR_1778 :{STRINGID} - -
STR_1790 :이 직종의 유니폼 색상을 선택하세요
STR_1791 :{WINDOW_COLOUR_2}유니폼 색상:
STR_1792 :{STRINGID} 고장 연락을 받음
-3
View File
@@ -550,7 +550,6 @@ STR_1168 :Valg
STR_1169 :(Ingenting)
STR_1170 :{STRING}
STR_1171 :{RED}Stengt
STR_1172 :{YELLOW}{STRINGID}
STR_1173 :Bygg gangstier og køer
STR_1174 :Banner i veien
STR_1175 :Kan ikke bygges på hellende gangsti
@@ -1107,7 +1106,6 @@ STR_1727 :Byggerettigheter ikke til salgs!
STR_1728 :Kan ikke kjøpe byggerettigheter her…
STR_1729 :Land ikke eid av parken!
STR_1730 :{RED}Lukket
STR_1731 :{WHITE}{STRINGID} - -
STR_1732 :Bygg
STR_1733 :Modus
STR_1734 :{WINDOW_COLOUR_2}Antall runder:
@@ -1148,7 +1146,6 @@ STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COM
STR_1773 :Kun én fotoseksjon tillatt per bane
STR_1774 :Kun ett kabeltrekk tillatt per bane
STR_1777 :Attraksjonsmusikk
STR_1778 :{STRINGID} - -
STR_1790 :Velg uniform-farge for denne typen personale
STR_1791 :{WINDOW_COLOUR_2}Uniform-farge:
STR_1792 :Svarer på {STRINGID} beskjed om sammenbrudd
-3
View File
@@ -554,7 +554,6 @@ STR_1168 :Opties
STR_1169 :(Geen)
STR_1170 :{STRING}
STR_1171 :{RED}Gesloten
STR_1172 :{YELLOW}{STRINGID}
STR_1173 :Voetpaden en wachtrijen aanleggen
STR_1174 :Lichtkrant in de weg
STR_1175 :Kan dit niet op hellend voetpad neerzetten
@@ -1112,7 +1111,6 @@ STR_1727 :Voor dit land zijn geen bouwrechten te koop!
STR_1728 :Kan hier geen bouwrechten kopen…
STR_1729 :Land is geen eigendom van het park!
STR_1730 :{RED}Gesloten
STR_1731 :{WHITE}{STRINGID} - -
STR_1732 :Bouwen
STR_1733 :Modus
STR_1734 :{WINDOW_COLOUR_2}Aantal rondes:
@@ -1153,7 +1151,6 @@ STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COM
STR_1773 :Een attractie mag maar één actiefotogedeelte hebben
STR_1774 :Een attractie mag maar één kabellift hebben
STR_1777 :Attractiemuziek
STR_1778 :{STRINGID} - -
STR_1790 :Selecteer de uniformkleur voor dit type werknemer
STR_1791 :{WINDOW_COLOUR_2}Uniformkleur:
STR_1792 :Gaat {STRINGID} repareren
+5 -3
View File
@@ -556,7 +556,6 @@ STR_1168 :Opcje
STR_1169 :(Brak)
STR_1170 :{STRING}
STR_1171 :{RED}Zamknięte
STR_1172 :{YELLOW}{STRINGID}
STR_1173 :Buduj dróżki i kolejki
STR_1174 :Baner blokuje
STR_1175 :Nie można tego postawić na nierównej ścieżce
@@ -1113,7 +1112,6 @@ STR_1727 :Prawa do budowy nie są na sprzedaż!
STR_1728 :Nie można tu kupić praw do budowy…
STR_1729 :Teren nie należy do parku!
STR_1730 :{RED}Zamknięte
STR_1731 :{WHITE}{STRINGID} - -
STR_1732 :Buduj
STR_1733 :Tryb
STR_1734 :{WINDOW_COLOUR_2}Liczba okrążeń:
@@ -1154,7 +1152,6 @@ STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COM
STR_1773 :Tylko jedna sekcja fotograficzna dostępna na atrakcję
STR_1774 :Tylko jedna wyciągarka dostępna na atrakcję
STR_1777 :{WINDOW_COLOUR_2}Muzyka atrakcji
STR_1778 :{STRINGID} - -
STR_1790 :Wybierz kolor uniformu dla tego typu pracownika
STR_1791 :{WINDOW_COLOUR_2}Kolor uniformu:
STR_1792 :Zmierza naprawić {STRINGID}
@@ -3839,3 +3836,8 @@ STR_7009 :Otrzymywanie skryptów…
STR_7010 :Nie udało się uruchomić powtórki, plik ‘{STRING}’ nie istnieje lub jest nieprawidłowy
STR_7011 :Nie udało się uruchomić powtórki
STR_7012 :Polski Złoty (zł)
STR_7013 :Przeciągnij po obszarze, aby utworzyć ścieżkę
STR_7014 :Posiadam grę na platformie Steam, ale jej jeszcze nie zainstalowałem/-am.
STR_7015 :Zamknij aplikację Steam, jeśli jest uruchomiona i kliknij ‘OK’.
STR_7016 :OpenRCT2 próbował zainicjować pobieranie w aplikacji Steam. Otwórz aplikację Steam i manualnie rozpocznij pobieranie gry. Kiedy Steam zakończy pobieranie, kliknij ‘OK’.
STR_7017 :Wyjdź
-3
View File
@@ -556,7 +556,6 @@ STR_1168 :Opções
STR_1169 :(Nenhum)
STR_1170 :{STRING}
STR_1171 :{RED}Fechado
STR_1172 :{YELLOW}{STRINGID}
STR_1173 :Construir calçadas e filas de espera
STR_1174 :Banner está no caminho
STR_1175 :Impossível construir isto na calçada inclinada
@@ -1113,7 +1112,6 @@ STR_1727 :Direitos de construção não está à venda!
STR_1728 :Não pode comprar os direitos de construção aqui…
STR_1729 :Os terrenos não são propriedade do parque!
STR_1730 :{RED}Fechado
STR_1731 :{WHITE}{STRINGID} - -
STR_1732 :Construir
STR_1733 :Modo
STR_1734 :{WINDOW_COLOUR_2}Número de voltas:
@@ -1154,7 +1152,6 @@ STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COM
STR_1773 :Somente uma seção de fotos é permitida por atração
STR_1774 :Somente uma subida com cabo de elevação é permitida por atração
STR_1777 :Música da atração
STR_1778 :{STRINGID} - -
STR_1790 :Selecione a cor do uniforme para este tipo de funcionário
STR_1791 :{WINDOW_COLOUR_2}Cor do uniforme:
STR_1792 :Respondendo a chamada de quebra da {STRINGID}
-3
View File
@@ -550,7 +550,6 @@ STR_1168 :Опции
STR_1169 :(Нет)
STR_1170 :{STRING}
STR_1171 :{RED}Закрыто - -
STR_1172 :{YELLOW}{STRINGID}
STR_1173 :Построить дорожки и заграждения
STR_1174 :На пути баннер
STR_1175 :Нельзя это строить на наклонной дорожке
@@ -1107,7 +1106,6 @@ STR_1727 :Права на строительство не продаются!
STR_1728 :Здесь нельзя купить права на строительство…
STR_1729 :Земля не принадлежит парку!
STR_1730 :{RED}Закрыто - -
STR_1731 :{WHITE}{STRINGID} - -
STR_1732 :Строить
STR_1733 :Режим
STR_1734 :{WINDOW_COLOUR_2}Число кругов:
@@ -1148,7 +1146,6 @@ STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COM
STR_1773 :Допускается только одна фото секция
STR_1774 :Допускается только один кабельный лифт
STR_1777 :{WINDOW_COLOUR_2}Музыка
STR_1778 :{STRINGID} - -
STR_1790 :Выберите цвет униформы для этого типа работников
STR_1791 :{WINDOW_COLOUR_2}Цвет формы:
STR_1792 :Отвечает на вызов по {STRINGID}
-3
View File
@@ -557,7 +557,6 @@ STR_1168 :Inställningar
STR_1169 :(Inga)
STR_1170 :{STRING}
STR_1171 :{RED}Stängd
STR_1172 :{YELLOW}{STRINGID}
STR_1173 :Bygg gångvägar och köer
STR_1174 :En skylt är i vägen
STR_1175 :Kan inte bygga på en sluttande gångväg
@@ -1114,7 +1113,6 @@ STR_1727 :Bygglov är inte till salu!
STR_1728 :Kan inte få bygglov här…
STR_1729 :Marken ägs inte av parken!
STR_1730 :{RED}Stängd
STR_1731 :{WHITE}{STRINGID} - -
STR_1732 :Bygg
STR_1733 :Läge
STR_1734 :{WINDOW_COLOUR_2}Antal varv:
@@ -1155,7 +1153,6 @@ STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COM
STR_1773 :Bara en fotosektion tillåten per åktur
STR_1774 :Bara en uppskjutskulle tillåten per åktur
STR_1777 :Musik för åkturer
STR_1778 :{STRINGID} - -
STR_1790 :Välj uniformfärg för den här sortens personal
STR_1791 :{WINDOW_COLOUR_2}Uniformfärg:
STR_1792 :Svarar på radioanrop om {STRINGID}
-2
View File
@@ -1100,7 +1100,6 @@ STR_1727 :İnşa hakkı satılmıyor!
STR_1728 :Burada inşa hakkı alınamıyor…
STR_1729 :Bu alan parka ait değil
STR_1730 :{RED}Kapalı - -
STR_1731 :{WHITE}{STRINGID} - -
STR_1732 :İnşa et
STR_1733 :Mod
STR_1734 :{WINDOW_COLOUR_2}Tur sayısı:
@@ -1141,7 +1140,6 @@ STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COM
STR_1773 :Alet başı bir tane fotoğraf alanı inşa edilebilir
STR_1774 :Alet başı bir tane asansörlü tırmanma zinciri inşa edilebilir
STR_1777 :{WINDOW_COLOUR_2}Alet müziği
STR_1778 :{STRINGID} - -
STR_1790 :Bu işçinin üniforma{NEWLINE}rengini seçiniz
STR_1791 :{WINDOW_COLOUR_2}Üniforma rengi:
STR_1792 :{STRINGID} aletinin tamirine gidiyor
-3
View File
@@ -550,7 +550,6 @@ STR_1168 :Параметри
STR_1169 :(Немає)
STR_1170 :{STRING}
STR_1171 :{RED}Зачинено
STR_1172 :{YELLOW}{STRINGID}
STR_1173 :Побудова пішохідних доріжок та ліній черги
STR_1174 :Знак банеру на шляху
STR_1175 :Неможливо побудувати це на похилій доріжці
@@ -1107,7 +1106,6 @@ STR_1727 :Права на будівництво не продаються!
STR_1728 :Не вдалося купити права на будівництво…
STR_1729 :Ділянка не належить парку!
STR_1730 :{RED}Зачинено
STR_1731 :{WHITE}{STRINGID} - -
STR_1732 :Build
STR_1733 :Режим
STR_1734 :{WINDOW_COLOUR_2}Кількість кіл:
@@ -1148,7 +1146,6 @@ STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COM
STR_1773 :Only one on-ride photo section allowed per ride
STR_1774 :Only one cable lift hill allowed per ride
STR_1777 :Музика в атракціонах
STR_1778 :{STRINGID} - -
STR_1790 :Вибрати колір уніформи для цього типу працівників
STR_1791 :{WINDOW_COLOUR_2}Колір уніформи:
STR_1792 :Відповідає на {STRINGING} виклик про поломку
-3
View File
@@ -556,7 +556,6 @@ STR_1168 :Tùy chọn
STR_1169 :(Không có)
STR_1170 :{STRING}
STR_1171 :{RED}Đã đóng
STR_1172 :{YELLOW}{STRINGID}
STR_1173 :Xây dựng đường đi bộ và hàng chờ
STR_1174 :Biển hiệu biểu ngữ bị cản trở
STR_1175 :Không thể xây dựng cái này trên đường đi bộ dốc
@@ -1063,7 +1062,6 @@ STR_1727 :Quyền xây dựng không rao bán!
STR_1728 :Không thể mua quyền xây dựng ở đây…
STR_1729 :Đất không thuộc sở hữu của công viên!
STR_1730 :{RED}Đã đóng
STR_1731 :{WHITE}{STRINGID} - -
STR_1732 :Xây dựng
STR_1733 :Chế độ
STR_1734 :{WINDOW_COLOUR_2}Số vòng:
@@ -1104,7 +1102,6 @@ STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COM
STR_1773 :Chỉ cho phép một phần chụp ảnh trên trò chơi mỗi trò chơi
STR_1774 :Chỉ cho phép một đồi nâng dây cáp mỗi trò chơi
STR_1777 :Nhạc trò chơi
STR_1778 :{STRINGID} - -
STR_1790 :Chọn màu đồng phục cho loại nhân viên này
STR_1791 :{WINDOW_COLOUR_2}Màu đồng phục:
STR_1792 :Đang phản hồi cuộc gọi hỏng hóc {STRINGID}
-3
View File
@@ -556,7 +556,6 @@ STR_1168 :选项
STR_1169 :(无)
STR_1170 :{STRING}
STR_1171 :{RED}已关闭
STR_1172 :{YELLOW}{STRINGID}
STR_1173 :建造道路和队列线
STR_1174 :被横幅挡住了
STR_1175 :不能在倾斜的小径上建造这个
@@ -1113,7 +1112,6 @@ STR_1727 :建筑权不供购买!
STR_1728 :不能在此购买建权……
STR_1729 :非游乐园所属地块!
STR_1730 :{RED}已关闭
STR_1731 :{WHITE}{STRINGID}——-
STR_1732 :建造
STR_1733 :模式
STR_1734 :{WINDOW_COLOUR_2}圈数:
@@ -1154,7 +1152,6 @@ STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COM
STR_1773 :每个游乐设施只能建造一个照相区域
STR_1774 :每个游乐设施只能建造一个牵引轨道
STR_1777 :设施音乐
STR_1778 :{STRINGID} - -
STR_1790 :选择这种员工的制服颜色
STR_1791 :{WINDOW_COLOUR_2}制服的颜色:
STR_1792 :正在回应{STRINGID}的故障呼叫
-3
View File
@@ -557,7 +557,6 @@ STR_1168 :選項
STR_1169 :(無)
STR_1170 :{STRING}
STR_1171 :{RED}已關閉
STR_1172 :{YELLOW}{STRINGID}
STR_1173 :建造道路及‘輪候區’道路
STR_1174 :橫額擋在路上
STR_1175 :不能在斜路上建造此物件
@@ -1115,7 +1114,6 @@ STR_1727 :建造權不供購買!
STR_1728 :不能在此購買建造權…
STR_1729 :土地並非由樂園所擁有!
STR_1730 :{RED}已關閉
STR_1731 :{WHITE}{STRINGID} - -
STR_1732 :建造
STR_1733 :模式
STR_1734 :{WINDOW_COLOUR_2}圈數:
@@ -1156,7 +1154,6 @@ STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COM
STR_1773 :每個遊樂設施只可建造一個即時照相區域
STR_1774 :每個遊樂設施只可建造一個纜索坡道
STR_1777 :音樂
STR_1778 :{STRINGID} - -
STR_1790 :選擇這種員工的制服色彩
STR_1791 :{WINDOW_COLOUR_2}制服的色彩:
STR_1792 :回應{STRINGID}的故障呼叫中
+1 -1
View File
@@ -4,7 +4,7 @@ Section: misc
Priority: optional
Standards-Version: 3.9.2
Multi-Arch: same
Build-Depends: debhelper (>= 9), cmake (>= 3.8), libsdl2-dev, g++ (>= 4:10), pkg-config, nlohmann-json3-dev (>= 3.9.0), libspeex-dev, libspeexdsp-dev, libcurl4-openssl-dev, libcrypto++-dev, libfontconfig1-dev, libfreetype6-dev, libpng-dev, libssl-dev, libzip-dev (>= 1.0.0), libicu-dev (>= 59.0), libflac-dev, libvorbis-dev, libzstd-dev
Build-Depends: debhelper (>= 9), cmake (>= 3.8), libsdl2-dev, g++ (>= 4:10), pkg-config, nlohmann-json3-dev (>= 3.9.0), libcurl4-openssl-dev, libcrypto++-dev, libfontconfig1-dev, libfreetype6-dev, libpng-dev, libssl-dev, libzip-dev (>= 1.0.0), libicu-dev (>= 59.0), libflac-dev, libvorbis-dev, libzstd-dev
Package: openrct2
Architecture: any
+28
View File
@@ -1,3 +1,31 @@
0.4.32 (in development)
------------------------------------------------------------------------
- Feature: [#22704] Rides can be made invisible more easily.
- Improved: [#21753] Tracked rides with cheated powered launch mode can change powered launch speed without extra cheats.
- Improved: [#25526] When a shop item cannot be recoloured, show a preview of the building instead.
- Improved: [#25941] The command line sprite build command is now faster.
- Improved: [#26002] Rides with newer track elements (like the zero G roll or diagonal brakes) can now be saved as track designs.
- Improved: [#26026] Profiler is now thread safe and supports JSON export with call graph data.
- Improved: [#26050] Add Danish translation to Windows installer.
- Improved: [#26091] When all rides are closed, the marketing window will no longer show the ride advertisement campaign.
- Change: [#26011] Audio resampling no longer depends on the third-party library libspeexdsp.
- Change: [#26049] Guest generation now starts slowing down above 52000 guests instead of 7000.
- Fix: [#14686, #23996, #25981] Preview images from different windows overwrite each other when using OpenGL.
- Fix: [#15128, #15626, #16331, #17443, #18626, #21597, #24175, #24971, #25963] Crash when loading corrupted RCT2/RCT1 save files with duplicate entity indices.
- Fix: [#23519] Title sequence cannot open .sea scenarios from RCTC.
- Fix: [#25237] Wrong colours on the Knight costume (original bug).
- Fix: [#25712, #25727] Crash during startup from window list race condition.
- Fix: [#25763] Crash when opening the Footpath window in Multiplayer.
- Fix: [#25910] Folders starting with numbers are sorted incorrectly (e.g. 1, 10, 2 instead of 1, 2, 10).
- Fix: [#25954] Guests display hats, balloons, and umbrellas while puking.
- Fix: [#25961] Fix crash when rendering malformed vehicles in the ride window.
- Fix: [#25978] Frozen peeps start clapping when the scenario is won.
- Fix: [#25999] Scenery picker tool does not pick the tertiary colour of large scenery correctly.
- Fix: [#26037] Selecting elements in the tile inspector list and changing all tiles of a track piece does not redraw correctly.
- Fix: [#26057] In the scrolling intro, the Infogrames logo is taken off the screen before it reaches the bottom (original bug).
- Fix: [#26058] RCT Classic scenarios with packed objects missing from scenario index.
- Fix: [#26083] You can advertise for closed food & drink stalls.
0.4.31 (2026-02-01)
------------------------------------------------------------------------
- Feature: [#25844] The sprite builder now also supports adding JSON-based palettes.
@@ -7,6 +7,7 @@
<summary>Amusement park simulation</summary>
<summary xml:lang="ca">Simulador de parcs d’atraccions</summary>
<summary xml:lang="cs">Simulátor zábavního parku</summary>
<summary xml:lang="da">Forlystelsespark‑simulation</summary>
<summary xml:lang="de">Freizeitparksimulation</summary>
<summary xml:lang="eo">Amuzparko-simulado</summary>
<summary xml:lang="es">Simulador de parque de atracciones</summary>
@@ -21,6 +22,7 @@
<name>The OpenRCT2 Team</name>
<name xml:lang="ca">Equip de l’OpenRCT2</name>
<name xml:lang="cs">Tým OpenRCT2</name>
<name xml:lang="da">OpenRCT2 holdet</name>
<name xml:lang="de">Das OpenRCT2-Team</name>
<name xml:lang="eo">La OpenRCT2-Teamo</name>
<name xml:lang="es">El equipo de OpenRCT2</name>
@@ -62,6 +64,14 @@
i pískoviště. Ve scénářích má hráč za úkol splnit dané cíle v časovém limitu, zatímco
na pískovišti může stavět s větší volností, volitelně bez finančních nebo jiných omezení.
</p>
<p xml:lang="da">
OpenRCT2 er en open source‑genimplementering af RollerCoaster Tycoon 2.
Spillet går ud på at bygge og drive en forlystelsespark med attraktioner, butikker
og faciliteter. Spilleren skal skabe overskud, holde gæsterne glade og opretholde
et godt ry. OpenRCT2 kan spilles både som scenarier og i sandkassetilstand.
Scenarier kræver, at spilleren opfylder et mål inden for en tidsgrænse, mens
sandkasse giver friere rammer med mulighed for at slå begrænsninger og økonomi fra.
</p>
<p xml:lang="de">
OpenRCT2 ist eine Open-Source-Reimplementierung von RollerCoaster Tycoon 2 (RCT2).
Im Spiel geht es um den Bau und die Verwaltung eines Freizeitparks mit Attraktionen,
@@ -179,6 +189,9 @@
<p xml:lang="cs">
OpenRCT2 obsahuje mnoho změn oproti originálnímu RollerCoaster Tycoon 2, například:
</p>
<p xml:lang="da">
OpenRCT2 indeholder mange forbedringer i forhold til det originale RollerCoaster Tycoon 2. Her er nogle af dem:
</p>
<p xml:lang="de">
OpenRCT2 hat viele Änderungen im Verleich mit dem Originalspiel RollerCoaster Tycoon 2. Hier sind einige von ihnen aufgelistet.
</p>
@@ -220,6 +233,7 @@
<li>User Interface theming.</li>
<li xml:lang="ca">Temes per a la interfície gràfica</li>
<li xml:lang="cs">Barevné motivy uživatelského rozhraní</li>
<li xml:lang="da">Brugerflade temaer</li>
<li xml:lang="de">Thematische User-Interface-Anpassung.</li>
<li xml:lang="eo">Etosoj de uzantinterfaco.</li>
<li xml:lang="es">Temas para la interfaz de usuario.</li>
@@ -236,6 +250,7 @@
<li>Fast-forwarding gameplay.</li>
<li xml:lang="ca">Diferents velocitats de joc</li>
<li xml:lang="cs">Možnost zrychlení hry</li>
<li xml:lang="da">Hurtigspoling af spilhastighed.</li>
<li xml:lang="de">Spielsimulation beschleunigen.</li>
<li xml:lang="eo">Rapidpluigo de ludado.</li>
<li xml:lang="es">Aceleración de la velocidad del juego.</li>
@@ -252,6 +267,7 @@
<li>Multiplayer support.</li>
<li xml:lang="ca">Suport multijugador</li>
<li xml:lang="cs">Multiplayer - hra více hráčů</li>
<li xml:lang="da">Multiplayer understøttelse.</li>
<li xml:lang="de">Mehrspielerunterstützung.</li>
<li xml:lang="eo">Plurludanta subteno.</li>
<li xml:lang="es">Soporte multijugador.</li>
@@ -268,6 +284,7 @@
<li>Multilingual. Improved translations.</li>
<li xml:lang="ca">Traduccions a diversos idiomes i correccions de les traduccions originals</li>
<li xml:lang="cs">Vylepšený překlad do mnoha jazyků</li>
<li xml:lang="da">Flersproget med forbedrede oversættelser.</li>
<li xml:lang="de">Mehrsprachig. Verbesserte Übersetzungen.</li>
<li xml:lang="eo">Plurlingva. Plibonigitaj tradukoj.</li>
<li xml:lang="es">Traducido a varios idiomas y traducciones originales mejoradas.</li>
@@ -284,6 +301,7 @@
<li>OpenGL hardware rendering.</li>
<li xml:lang="ca">Renderització OpenGL per maquinari</li>
<li xml:lang="cs">OpenGL hardwarové vykreslování</li>
<li xml:lang="da">OpenGL‑hardware‑rendering.</li>
<li xml:lang="de">OpenGL-Hardwarerendering.</li>
<li xml:lang="eo">Aparatara bildigo de OpenGL.</li>
<li xml:lang="es">Renderizado acelerado por hardware con OpenGL.</li>
@@ -300,6 +318,7 @@
<li>Various fixes and improvements for bugs in the original game.</li>
<li xml:lang="ca">Correccions i millores dels errors del joc original</li>
<li xml:lang="cs">Opravy chyb původní hry a různá vylepšení</li>
<li xml:lang="da">Diverse fejlrettelser og forbedringer i forhold til originalspillet.</li>
<li xml:lang="de">Diverse Fehlerkorrekturen und Verbesserungen für Fehler im Originalspiel.</li>
<li xml:lang="eo">Diversaj riparoj kaj plibonigoj por cimoj en la originala ludo.</li>
<li xml:lang="es">Correcciones y mejoras de errores presentes en el juego original.</li>
@@ -316,6 +335,7 @@
<li>Native support for Linux and macOS.</li>
<li xml:lang="ca">Suport natiu per a Linux i macOS</li>
<li xml:lang="cs">Verze pro Linux a macOS</li>
<li xml:lang="da">Indbygget support til Linux og macOS.</li>
<li xml:lang="de">Native Unterstützung für Linux und macOS.</li>
<li xml:lang="eo">Operaciuma subteno por Linux kaj macOS.</li>
<li xml:lang="es">Compatibilidad nativa para Linux y macOS.</li>
@@ -332,6 +352,7 @@
<li>Added hacks and cheats.</li>
<li xml:lang="ca">Es poden fer trucs i trampes</li>
<li xml:lang="cs">Přidané hacky a cheaty</li>
<li xml:lang="da">Tilføjede hacks og snydekoder.</li>
<li xml:lang="de">Eingebaute Hacks und Cheats.</li>
<li xml:lang="eo">Aldonis kodumojn kaj trompojn.</li>
<li xml:lang="es">Incorporación de hacks y trucos.</li>
@@ -348,6 +369,7 @@
<li>Auto-saving and giant screenshots.</li>
<li xml:lang="ca">Desades automàtiques i captures de pantalla gegants</li>
<li xml:lang="cs">Automatické ukládaní a obrovské snímky obrazovky</li>
<li xml:lang="da">Autosave og gigantiske Screenshots.</li>
<li xml:lang="de">Automatisches Speichern und gigantische Screenshots.</li>
<li xml:lang="eo">Aŭtokonservado kaj gigantaj ekrankopioj.</li>
<li xml:lang="es">Guardado automático y capturas de pantalla gigantes.</li>
@@ -371,6 +393,9 @@
<p xml:lang="cs">
OpenRCT2 vyžaduje k fungování soubory původního RollerCoaster Tycoon 2 nebo RollerCoaster Tycoon Classic.
</p>
<p xml:lang="da">
Originale spilfiler fra RollerCoaster Tycoon 2 eller RollerCoaster Tycoon Classic kræves for at spille OpenRCT2.
</p>
<p xml:lang="de">
Die Originaldateien von RollerCoaster Tycoon 2 oder RollerCoaster Tycoon Classic werden benötigt, um OpenRCT2 zu spielen.
</p>
@@ -410,10 +435,11 @@
</description>
<screenshots>
<screenshot type="default">
<image>https://camo.githubusercontent.com/f513bc551e2c9e04e292724113ea4789726d23921d286f21dad39a6e955b5a56/68747470733a2f2f692e696d6775722e636f6d2f6537434b3553632e706e67</image>
<image>https://openrct2.io/uploads/images/showcase/screenshot1.png</image>
<caption>Amusement park featuring an inverted roller coaster, a river rapids ride and custom scenery</caption>
<caption xml:lang="ca">Parc d’atraccions amb una muntanya russa invertida, ràpids amb bots inflables i decoracions temàtiques.</caption>
<caption xml:lang="cs">Zábavní park s obrácenou horskou dráhou, projížďkou po divoké vodě a uživatelskými kulisami</caption>
<caption xml:lang="da">Forlystelsespark med en inverted rutsjebane, river rapids og specialbygget sceneri</caption>
<caption xml:lang="de">Freizeitpark mit einer umgekehrten Achterbahn, einer Stromschnellenattraktion und einer eigens errichteten Szenerie</caption>
<caption xml:lang="eo">Amuzparko havante inversan ondan fervojon, rapidfluo-rajdon kaj propran pejzaĝon</caption>
<caption xml:lang="es">Parque de atracciones con una montaña rusa invertida, un recorrido de rápidos y decoraciones personalizadas.</caption>
@@ -433,6 +459,7 @@
<url type="faq">https://github.com/OpenRCT2/OpenRCT2/wiki/FAQ-&amp;-Common-Issues</url>
<url type="help">https://docs.openrct2.io</url>
<url type="translate">https://github.com/OpenRCT2/Localisation</url>
<url type="vcs-browser">https://github.com/OpenRCT2/OpenRCT2</url>
<content_rating type="oars-1.0">
<content_attribute id="violence-cartoon">mild</content_attribute>
<content_attribute id="violence-fantasy">none</content_attribute>
+10 -5
View File
@@ -844,11 +844,10 @@ declare global {
/** Surface object */
object: number;
railingsObject: number;
/**
* - `0`: Flat
* - `4`, `5`, `6`, `7`: Slope direction + 4
*/
slope: number;
/** 0 if flat, 1 if sloped */
slopeType: number; //
/** direction if sloped, otherwise ignored */
slopeDirection: Direction;
constructFlags: number;
}
@@ -2309,6 +2308,12 @@ declare global {
/**
* Various flags related to the operation of the ride.
*/
flags: number;
/**
* Old name of ‘flags’ property
* @deprecated
*/
lifecycleFlags: number;
/**
+1 -2
View File
@@ -1,4 +1,4 @@
Last updated: 2025-08-04
Last updated: 2026-02-15
------------------------------------------------------------------------
@@ -146,7 +146,6 @@ duktape | MIT licence.
libcURL | MIT (or Modified BSD-style) licence.
libicu | Unicode licence.
libpng | libpng licence.
libspeex | BSD-style licence.
libzip | BSD 3 clause licence.
nlohmann-json | MIT licence.
OpenSSL | OpenSSL licence.
+2 -1
View File
@@ -108,7 +108,7 @@ ManifestDPIAware true
!insertmacro MUI_LANGUAGE "Arabic"
!insertmacro MUI_LANGUAGE "Catalan"
!insertmacro MUI_LANGUAGE "Czech"
;!insertmacro MUI_LANGUAGE "Danish"
!insertmacro MUI_LANGUAGE "Danish"
!insertmacro MUI_LANGUAGE "German"
;!insertmacro MUI_LANGUAGE "Esperanto"
!insertmacro MUI_LANGUAGE "Spanish"
@@ -136,6 +136,7 @@ ManifestDPIAware true
!include "language\install_ar.nsi"
!include "language\install_ca.nsi"
!include "language\install_cs.nsi"
!include "language\install_da.nsi"
!include "language\install_de.nsi"
!include "language\install_es.nsi"
!include "language\install_fi.nsi"
@@ -0,0 +1,23 @@
LangString ls32bitVersionOn64bitOS ${LANG_DANISH} "Du forsøger at installere 32-bit OpenRCT2 på et 64-bit operativsystem. Dette anbefales ikke, men vil fungere med begrænsede muligheder. Vi foreslår, at du downloader den korrekte version. Vil du virkelig fortsætte?"
LangString ls64bitVersionOn32bitOS ${LANG_DANISH} "Du forsøger at installere 64-bit OpenRCT2 på et 32-bit operativsystem. Dette kommer ikke til at virke. Download venligst den korrekte version. Vil du virkelig fortsætte?"
LangString lsBrandingText ${LANG_DANISH} "OpenRCT2-installationsprogram"
LangString lsCannotInstallToRCT2Dir ${LANG_DANISH} "Du kan ikke installere OpenRCT2 i samme mappe som RollerCoaster Tycoon 2."
LangString lsCannotInstallToRCTClassicDir ${LANG_DANISH} "Du kan ikke installere OpenRCT2 i samme mappe som RollerCoaster Tycoon Classic."
LangString lsComponentDescription ${LANG_DANISH} "Minimal OpenRCT2-installation. Du skal have RollerCoaster Tycoon 2 eller Classic installeret."
LangString lsFinishPageLink ${LANG_DANISH} "Besøg OpenRCT2-siden for mere information"
LangString lsInstallerName ${LANG_DANISH} "${APPNAMEANDVERSION} ${PLATFORM} til $(lsSupportedOS)"
LangString lsNewWindowsVersionOnOldWindows ${LANG_DANISH} "Du forsøger at installere versionen til Windows XP SP3, Vista og nyere på Windows 95, 98, ME, 2000 eller XP uden SP3. Dette vil ikke virke. Download venligst den korrekte version. Vil du virkelig fortsætte?"
LangString lsOldWindowsVersionOnNewWindows ${LANG_DANISH} "Du forsøger at installere versionen til Windows 95, 98, 2000 og XP uden SP3 på Windows XP SP3, Vista eller nyere. Dette anbefales ikke, men vil fungere med begrænsede muligheder. Vi foreslår, at du downloader den korrekte version. Vil du virkelig fortsætte?"
LangString lsOpenRCT2IsRunning ${LANG_DANISH} "OpenRCT2 kører. Luk det venligst og prøv igen."
LangString lsRunNow ${LANG_DANISH} "Kør ${APPNAMEANDVERSION} nu!"
LangString lsSupportedOS ${LANG_DANISH} "Windows 7 og nyere"
LangString lsUACErrorDefault ${LANG_DANISH} "Kan ikke forhøje rettigheder, fejl $0"
LangString lsUACError1062 ${LANG_DANISH} "Logon-tjenesten kører ikke, afbryder!"
LangString lsUACError1223 ${LANG_DANISH} "Denne ${thing} kræver administratorrettigheder, afbryder!"
LangString lsUACRequiresElevation ${LANG_DANISH} "Denne ${thing} kræver administratorrettigheder, prøv igen"
LangString lsUninstall ${LANG_DANISH} "Afinstaller ${APPNAMEANDVERSION}"
LangString lsUpgradeNotice ${LANG_DANISH} "Velkommen til ${APPNAMEANDVERSION}-opsætningen.$\nDette giver dig mulighed for at opgradere fra version $OLDVERSION."
VIAddVersionKey /LANG=${LANG_DANISH} "Comments" "Installerer ${APPNAMEANDVERSION}"
VIAddVersionKey /LANG=${LANG_DANISH} "CompanyName" "OpenRCT2-udviklerne"
VIAddVersionKey /LANG=${LANG_DANISH} "FileDescription" "Installerer ${APPNAMEANDVERSION}"
VIAddVersionKey /LANG=${LANG_DANISH} "ProductName" "OpenRCT2 ${PLATFORM}-installationsprogram til Windows 7 og nyere"
+7 -2
View File
@@ -21,6 +21,10 @@
<VcpkgTriplet Condition="'$(Platform)'=='x64' and '$(UseSharedLibs)'!='true'">x64-windows-static</VcpkgTriplet>
<VcpkgTriplet Condition="'$(Platform)'=='arm64' and '$(UseSharedLibs)'!='true'">arm64-windows-static</VcpkgTriplet>
</PropertyGroup>
<PropertyGroup>
<!-- Enable Precompiled Headers by default for better build performance -->
<UsePCH Condition="'$(UsePCH)'==''">true</UsePCH>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<UseDebugLibraries>true</UseDebugLibraries>
</PropertyGroup>
@@ -88,7 +92,7 @@
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
<AdditionalDependencies>brotlicommon.lib;brotlidec.lib;brotlienc.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies Condition="'$(Breakpad)'=='true' and ('$(Platform)'=='Win32' or '$(Platform)'=='x64')">libbreakpadd.lib;libbreakpad_clientd.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>bz2d.lib;discord-rpc.lib;flac.lib;freetyped.lib;libpng16d.lib;ogg.lib;speexdsp.lib;SDL2-staticd.lib;vorbis.lib;vorbisfile.lib;zip.lib;zlibd.lib;zstd.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>bz2d.lib;discord-rpc.lib;flac.lib;freetyped.lib;libpng16d.lib;ogg.lib;SDL2-staticd.lib;vorbis.lib;vorbisfile.lib;zip.lib;zlibd.lib;zstd.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release' or '$(Configuration)'=='ReleaseLTCG'">
@@ -109,7 +113,7 @@
<OptimizeReferences>true</OptimizeReferences>
<AdditionalDependencies>brotlicommon.lib;brotlidec.lib;brotlienc.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies Condition="'$(Breakpad)'=='true' and ('$(Platform)'=='Win32' or '$(Platform)'=='x64')">libbreakpad.lib;libbreakpad_client.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>bz2.lib;discord-rpc.lib;flac.lib;freetype.lib;libpng16.lib;ogg.lib;speexdsp.lib;SDL2-static.lib;vorbis.lib;vorbisfile.lib;zip.lib;zlib.lib;zstd.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>bz2.lib;discord-rpc.lib;flac.lib;freetype.lib;libpng16.lib;ogg.lib;SDL2-static.lib;vorbis.lib;vorbisfile.lib;zip.lib;zlib.lib;zstd.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
@@ -131,3 +135,4 @@
<VcpkgEnabled>false</VcpkgEnabled>
</PropertyGroup>
</Project>
+114 -21
View File
@@ -1,10 +1,96 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- ReadAssetsJson task: Parse assets.json and set properties -->
<UsingTask TaskName="ReadAssetsJson"
TaskFactory="RoslynCodeTaskFactory"
AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll">
<ParameterGroup>
<JsonFilePath Required="true" ParameterType="System.String" />
<TitleSequencesUrl Required="false" ParameterType="System.String" Output="true" />
<TitleSequencesSha256 Required="false" ParameterType="System.String" Output="true" />
<ObjectsUrl Required="false" ParameterType="System.String" Output="true" />
<ObjectsSha256 Required="false" ParameterType="System.String" Output="true" />
<OpenSFXUrl Required="false" ParameterType="System.String" Output="true" />
<OpenSFXSha256 Required="false" ParameterType="System.String" Output="true" />
<OpenMusicUrl Required="false" ParameterType="System.String" Output="true" />
<OpenMusicSha256 Required="false" ParameterType="System.String" Output="true" />
<ReplaysUrl Required="false" ParameterType="System.String" Output="true" />
<ReplaysSha256 Required="false" ParameterType="System.String" Output="true" />
</ParameterGroup>
<Task>
<Reference Include="System.Memory" />
<Reference Include="System.Text.Json" />
<Using Namespace="System"/>
<Using Namespace="System.IO"/>
<Using Namespace="System.Text.Json"/>
<Using Namespace="Microsoft.Build.Framework"/>
<Using Namespace="Microsoft.Build.Utilities"/>
<Code Type="Method" Language="cs">
<![CDATA[
public override bool Execute()
{
try
{
if (!File.Exists(JsonFilePath))
{
Log.LogWarning("Assets JSON file not found: {0}", JsonFilePath);
return true;
}
string jsonContent = File.ReadAllText(JsonFilePath);
using (JsonDocument doc = JsonDocument.Parse(jsonContent))
{
JsonElement root = doc.RootElement;
TitleSequencesUrl = GetAssetProperty(root, "title-sequences", "url");
TitleSequencesSha256 = GetAssetProperty(root, "title-sequences", "sha256");
ObjectsUrl = GetAssetProperty(root, "objects", "url");
ObjectsSha256 = GetAssetProperty(root, "objects", "sha256");
OpenSFXUrl = GetAssetProperty(root, "opensfx", "url");
OpenSFXSha256 = GetAssetProperty(root, "opensfx", "sha256");
OpenMusicUrl = GetAssetProperty(root, "openmusic", "url");
OpenMusicSha256 = GetAssetProperty(root, "openmusic", "sha256");
ReplaysUrl = GetAssetProperty(root, "replays", "url");
ReplaysSha256 = GetAssetProperty(root, "replays", "sha256");
}
Log.LogMessage(MessageImportance.Low, "Successfully read asset definitions from {0}", JsonFilePath);
}
catch (Exception ex)
{
Log.LogErrorFromException(ex, showStackTrace: true);
return false;
}
return true;
}
private string GetAssetProperty(JsonElement assets, string assetName, string propertyName)
{
if (assets.TryGetProperty(assetName, out JsonElement asset))
{
if (asset.TryGetProperty(propertyName, out JsonElement property))
{
return property.GetString() ?? string.Empty;
}
}
Log.LogWarning("Could not find property '{0}' in asset '{1}'", propertyName, assetName);
return string.Empty;
}
]]>
</Code>
</Task>
</UsingTask>
<!-- DownloadDependency task -->
<UsingTask TaskName="DownloadDependency"
TaskFactory="CodeTaskFactory"
AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
TaskFactory="RoslynCodeTaskFactory"
AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll">
<ParameterGroup>
<Name Required="true" ParameterType="System.String" />
<Url Required="true" ParameterType="System.String" />
@@ -13,8 +99,6 @@
<OutputDirectory Required="true" ParameterType="System.String" />
</ParameterGroup>
<Task>
<Reference Include="System.IO.Compression, Version=4.0.0.0" />
<Reference Include="System.IO.Compression.FileSystem" />
<Using Namespace="System"/>
<Using Namespace="System.IO"/>
<Using Namespace="System.IO.Compression"/>
@@ -206,32 +290,41 @@
</Task>
</UsingTask>
<!-- 3rd party libraries / dependencies -->
<!-- 3rd party libraries / dependencies loaded from assets.json -->
<PropertyGroup>
<RootDir>$(MsBuildThisFileDirectory)</RootDir>
<DependenciesCheckFile>$(RootDir).dependencies</DependenciesCheckFile>
<AssetsJsonPath>$(RootDir)assets.json</AssetsJsonPath>
<LibsUrl Condition="'$(Platform)'=='ARM64'">https://github.com/OpenRCT2/Dependencies/releases/download/v41/openrct2-libs-v41-arm64-windows-static.zip</LibsUrl>
<LibsSha256 Condition="'$(Platform)'=='ARM64'">5d171f23eee584bdc29b1186dc7a86d935a6ea58efa42b5674c196c5b581923b</LibsSha256>
<LibsUrl Condition="'$(Platform)'=='x64'">https://github.com/OpenRCT2/Dependencies/releases/download/v41/openrct2-libs-v41-x64-windows-static.zip</LibsUrl>
<LibsSha256 Condition="'$(Platform)'=='x64'">8e78f1c3c09c50cb0f509eab6845a93dd69771ff95cdf82d747568093d138f73</LibsSha256>
<LibsUrl Condition="'$(Platform)'=='Win32'">https://github.com/OpenRCT2/Dependencies/releases/download/v41/openrct2-libs-v41-x86-windows-static.zip</LibsUrl>
<LibsSha256 Condition="'$(Platform)'=='Win32'">490263b873dd02c13a043a04d26bb9837d2d378dacd8b2c8d29660fef44db3db</LibsSha256>
<TitleSequencesUrl>https://github.com/OpenRCT2/title-sequences/releases/download/v0.4.26/title-sequences.zip</TitleSequencesUrl>
<TitleSequencesSha256>dabb9787b1576342fca4dd9f64b3f8cfa04a7e6ce9c2bb9610f47b762905c858</TitleSequencesSha256>
<ObjectsUrl>https://github.com/OpenRCT2/objects/releases/download/v1.7.6/objects.zip</ObjectsUrl>
<ObjectsSha256>6aca2eb441fbe8c022ff84d59fb51ed7ea577756640970dc989eab685ff45696</ObjectsSha256>
<OpenSFXUrl>https://github.com/OpenRCT2/OpenSoundEffects/releases/download/v1.0.6/opensound.zip</OpenSFXUrl>
<OpenSFXSha256>06b90f3e19c216752df441d551b26a9e3e1ba7755bdd2102504b73bf993608be</OpenSFXSha256>
<OpenMSXUrl>https://github.com/OpenRCT2/OpenMusic/releases/download/v1.6.1/openmusic.zip</OpenMSXUrl>
<OpenMSXSha256>994b350d3b180ee1cb9619fe27f7ebae3a1a5232840c4bd47a89f33fa89de1a1</OpenMSXSha256>
<ReplaysUrl>https://github.com/OpenRCT2/replays/releases/download/v0.0.92/replays.zip</ReplaysUrl>
<ReplaysSha256>455a19172a8df81b935a942bbbda20167b4740b34653fdb74127740686bf4cbe</ReplaysSha256>
</PropertyGroup>
<!-- Load asset definitions from JSON first, before any download targets run -->
<Target Name="LoadAssetsJson">
<ReadAssetsJson
JsonFilePath="$(AssetsJsonPath)"
Condition="Exists('$(AssetsJsonPath)')">
<Output TaskParameter="TitleSequencesUrl" PropertyName="TitleSequencesUrl" />
<Output TaskParameter="TitleSequencesSha256" PropertyName="TitleSequencesSha256" />
<Output TaskParameter="ObjectsUrl" PropertyName="ObjectsUrl" />
<Output TaskParameter="ObjectsSha256" PropertyName="ObjectsSha256" />
<Output TaskParameter="OpenSFXUrl" PropertyName="OpenSFXUrl" />
<Output TaskParameter="OpenSFXSha256" PropertyName="OpenSFXSha256" />
<Output TaskParameter="OpenMusicUrl" PropertyName="OpenMusicUrl" />
<Output TaskParameter="OpenMusicSha256" PropertyName="OpenMusicSha256" />
<Output TaskParameter="ReplaysUrl" PropertyName="ReplaysUrl" />
<Output TaskParameter="ReplaysSha256" PropertyName="ReplaysSha256" />
</ReadAssetsJson>
</Target>
<!-- Unified Dependency Target -->
<Target Name="DownloadAllDependencies"
BeforeTargets="PrepareForBuild"
DependsOnTargets="DownloadLibs;DownloadTitleSequences;DownloadObjects;DownloadOpenSFX;DownloadOpenMSX;DownloadReplays">
DependsOnTargets="LoadAssetsJson;DownloadLibs;DownloadTitleSequences;DownloadObjects;DownloadOpenSFX;DownloadOpenMusic;DownloadReplays">
<!-- Add completion marker -->
<Touch Files="$(DependenciesCheckFile)" AlwaysCreate="true" />
@@ -275,11 +368,11 @@
OutputDirectory="$(TargetDir)data" />
</Target>
<!-- Target to download OpenMSX -->
<Target Name="DownloadOpenMSX">
<DownloadDependency Name="OpenMSX"
Url="$(OpenMSXUrl)"
Sha256="$(OpenMSXSha256)"
<!-- Target to download OpenMusic -->
<Target Name="DownloadOpenMusic">
<DownloadDependency Name="OpenMusic"
Url="$(OpenMusicUrl)"
Sha256="$(OpenMusicSha256)"
CheckFile="$(DependenciesCheckFile)"
OutputDirectory="$(TargetDir)data" />
</Target>
+4 -4
View File
@@ -113,7 +113,7 @@
<MakeDir Directories="$(DataOutputPath)" />
<Exec Command="&quot;$(GraphicsCLIPath)&quot; sprite build &quot;$(DataOutputPath)g2.dat&quot; &quot;%(G2Input.FullPath)&quot;"
<Exec Command="&quot;$(GraphicsCLIPath)&quot; sprite build &quot;$(DataOutputPath)g2.dat&quot; &quot;%(G2Input.FullPath)&quot; silent"
ConsoleToMSBuild="true"
IgnoreExitCode="false">
<Output TaskParameter="ConsoleOutput" PropertyName="G2BuildOutput" />
@@ -133,7 +133,7 @@
<MakeDir Directories="$(DataOutputPath)" />
<Exec Command="&quot;$(GraphicsCLIPath)&quot; sprite build &quot;$(DataOutputPath)fonts.dat&quot; &quot;%(FontsInput.FullPath)&quot;"
<Exec Command="&quot;$(GraphicsCLIPath)&quot; sprite build &quot;$(DataOutputPath)fonts.dat&quot; &quot;%(FontsInput.FullPath)&quot; silent"
ConsoleToMSBuild="true"
IgnoreExitCode="false">
<Output TaskParameter="ConsoleOutput" PropertyName="FontsBuildOutput" />
@@ -153,7 +153,7 @@
<MakeDir Directories="$(DataOutputPath)" />
<Exec Command="&quot;$(GraphicsCLIPath)&quot; sprite build &quot;$(DataOutputPath)tracks.dat&quot; &quot;%(TracksInput.FullPath)&quot;"
<Exec Command="&quot;$(GraphicsCLIPath)&quot; sprite build &quot;$(DataOutputPath)tracks.dat&quot; &quot;%(TracksInput.FullPath)&quot; silent"
ConsoleToMSBuild="true"
IgnoreExitCode="false">
<Output TaskParameter="ConsoleOutput" PropertyName="TracksBuildOutput" />
@@ -173,7 +173,7 @@
<MakeDir Directories="$(DataOutputPath)" />
<Exec Command="&quot;$(GraphicsCLIPath)&quot; sprite build &quot;$(DataOutputPath)palettes.dat&quot; &quot;%(PalettesInput.FullPath)&quot;"
<Exec Command="&quot;$(GraphicsCLIPath)&quot; sprite build &quot;$(DataOutputPath)palettes.dat&quot; &quot;%(PalettesInput.FullPath)&quot; silent"
ConsoleToMSBuild="true"
IgnoreExitCode="false">
<Output TaskParameter="ConsoleOutput" PropertyName="PalettesBuildOutput" />
+1 -1
View File
@@ -24,7 +24,7 @@ if [[ "$OSTYPE" == "cygwin" || "$OSTYPE" == "msys" ]]; then
# Build everything
echo -e "\033[0;36mBuilding OpenRCT2 for Windows $CONFIGURATION|$PLATFORM...\033[0m"
vstool msbuild openrct2.proj -t:build -p:Breakpad=true -p:UsePCH=true
vstool msbuild openrct2.proj -t:build -p:Breakpad=true -p:UsePCH=true -maxcpucount
# Create openrct2.exe and openrct2.com with correct subsystem
cp bin/openrct2.exe bin/openrct2.com
-3
View File
@@ -6,7 +6,6 @@ mkdir -p build
cd build
START_DIR=$(pwd)
SPEEXDSP_ROOT=/ext/speexdsp
ICU_ROOT=/ext/icu/icu4c/source
LIBZIP_ROOT=/ext/libzip
ZSTD_ROOT=/ext/zstd
@@ -22,8 +21,6 @@ emcmake cmake ../ \
-DDISABLE_DISCORD_RPC=ON \
-DCMAKE_SYSTEM_NAME=Emscripten \
-DCMAKE_BUILD_TYPE=Release \
-DSPEEXDSP_INCLUDE_DIR="$SPEEXDSP_ROOT/include/" \
-DSPEEXDSP_LIBRARY="$SPEEXDSP_ROOT/libspeexdsp/.libs/libspeexdsp.a" \
-DICU_INCLUDE_DIR="$ICU_ROOT/common" \
-DICU_DATA_LIBRARIES=$ICU_ROOT/lib/libicuuc.so \
-DICU_DT_LIBRARY_RELEASE="$ICU_ROOT/stubdata/libicudata.so" \
+36 -27
View File
@@ -1,63 +1,72 @@
apply plugin: 'com.android.application'
android {
compileSdk 36
ndkVersion "27.3.13750724" // Latest r27d (LTS), to be synced with CI container image
namespace "io.openrct2"
compileSdk = 36
buildToolsVersion = "36.0.0" // to be synced with CI container image
ndkVersion = "27.3.13750724" // Latest r27d (LTS), to be synced with CI container image
namespace = "io.openrct2"
signingConfigs {
release {
if (System.getenv('OPENRCT2_KEYSTORE_FILE') && System.getenv('OPENRCT2_KEYSTORE_PASSWORD')) {
storeFile file(System.getenv('OPENRCT2_KEYSTORE_FILE'))
storePassword System.getenv('OPENRCT2_KEYSTORE_PASSWORD')
keyAlias "openrct2"
keyPassword System.getenv('OPENRCT2_KEYSTORE_PASSWORD') // Same as keystore password in PKCS12
storeFile = file(System.getenv('OPENRCT2_KEYSTORE_FILE'))
storePassword = System.getenv('OPENRCT2_KEYSTORE_PASSWORD')
keyAlias = "openrct2"
keyPassword = System.getenv('OPENRCT2_KEYSTORE_PASSWORD') // Same as keystore password in PKCS12
}
}
}
defaultConfig {
applicationId 'io.openrct2'
minSdkVersion 24
targetSdkVersion 36
applicationId = 'io.openrct2'
minSdkVersion = 24
targetSdkVersion = 36
versionCode 18
versionName '0.4.31'
externalNativeBuild {
cmake {
arguments '-DANDROID_STL=c++_shared', '-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON'
targets 'openrct2', 'openrct2-ui', 'openrct2-cli'
// abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86_64'
versionCode = 18
versionName = '0.4.31'
if (!project.hasProperty('skipNativeBuild')) {
externalNativeBuild {
cmake {
arguments '-DANDROID_STL=c++_shared', '-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON'
targets 'openrct2', 'openrct2-ui', 'openrct2-cli'
if (project.hasProperty('abiFilter')) {
abiFilters project.property('abiFilter').split(',')
} else {
// abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86_64'
}
}
}
}
}
buildTypes {
release {
if (System.getenv('OPENRCT2_KEYSTORE_FILE') && System.getenv('OPENRCT2_KEYSTORE_PASSWORD')) {
signingConfig signingConfigs.release
signingConfig = signingConfigs.release
} else {
// Fallback to ephemeral debug signing when keystore is not available
signingConfig signingConfigs.debug
signingConfig = signingConfigs.debug
}
}
}
sourceSets.main {
jniLibs.srcDir 'libs'
jniLibs.srcDirs = ['libs']
java {
srcDir 'src/main/java'
srcDir('src/main/java')
}
}
externalNativeBuild {
cmake {
version "4.0.3"
path 'src/main/CMakeLists.txt'
if (!project.hasProperty('skipNativeBuild')) {
externalNativeBuild {
cmake {
version = "4.0.3"
path = 'src/main/CMakeLists.txt'
}
}
}
lintOptions {
abortOnError false
abortOnError = false
}
}
@@ -18,6 +18,7 @@
android:label="@string/app_name"
android:largeHeap="true"
android:theme="@style/AppTheme.Splash"
android:requestLegacyExternalStorage="true"
tools:targetApi="36">
<activity
android:name=".MainActivity"
@@ -40,7 +40,6 @@ ExternalProject_Add(libs
${CMAKE_BINARY_DIR}/libs/lib/${CMAKE_SHARED_LIBRARY_PREFIX}freetype${CMAKE_SHARED_LIBRARY_SUFFIX}
${CMAKE_BINARY_DIR}/libs/lib/${CMAKE_SHARED_LIBRARY_PREFIX}png16${CMAKE_SHARED_LIBRARY_SUFFIX}
${CMAKE_BINARY_DIR}/libs/lib/${CMAKE_SHARED_LIBRARY_PREFIX}SDL2${CMAKE_SHARED_LIBRARY_SUFFIX}
${CMAKE_BINARY_DIR}/libs/lib/${CMAKE_SHARED_LIBRARY_PREFIX}speexdsp${CMAKE_SHARED_LIBRARY_SUFFIX}
${CMAKE_BINARY_DIR}/libs/lib/${CMAKE_SHARED_LIBRARY_PREFIX}ssl${CMAKE_SHARED_LIBRARY_SUFFIX}
${CMAKE_BINARY_DIR}/libs/lib/${CMAKE_SHARED_LIBRARY_PREFIX}icudata${CMAKE_SHARED_LIBRARY_SUFFIX}
${CMAKE_BINARY_DIR}/libs/lib/${CMAKE_SHARED_LIBRARY_PREFIX}icui18n${CMAKE_SHARED_LIBRARY_SUFFIX}
@@ -76,7 +75,6 @@ add_custom_command(TARGET libs POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_BINARY_DIR}/libs/lib/libfreetype.so" ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_BINARY_DIR}/libs/lib/libpng16.so" ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_BINARY_DIR}/libs/lib/libSDL2.so" ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_BINARY_DIR}/libs/lib/libspeexdsp.so" ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_BINARY_DIR}/libs/lib/libssl.so" ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_BINARY_DIR}/libs/lib/libz.so" ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_BINARY_DIR}/libs/lib/libzstd.so" ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
@@ -118,12 +116,6 @@ set_target_properties(SDL2main PROPERTIES IMPORTED_LOCATION
)
add_dependencies(SDL2main libs)
add_library(speexdsp SHARED IMPORTED)
set_target_properties(speexdsp PROPERTIES IMPORTED_LOCATION
${CMAKE_BINARY_DIR}/libs/lib/${CMAKE_SHARED_LIBRARY_PREFIX}speexdsp${CMAKE_SHARED_LIBRARY_SUFFIX}
)
add_dependencies(speexdsp libs)
add_library(icu STATIC IMPORTED)
set_target_properties(icu PROPERTIES IMPORTED_LOCATION
${CMAKE_BINARY_DIR}/libs/lib/${CMAKE_SHARED_LIBRARY_PREFIX}icui18n${CMAKE_SHARED_LIBRARY_SUFFIX}
@@ -207,9 +199,6 @@ add_definitions(-DDISABLE_DISCORD_RPC -DDISABLE_OPENGL -DGL_GLEXT_PROTOTYPES -D_
# Enable scripting
add_definitions(-DENABLE_SCRIPTING)
# Fix SpeexDSP compilation
add_definitions(-DHAVE_STDINT_H)
# -Werror -Wall
set(COMMON_COMPILE_OPTIONS "${COMMON_COMPILE_OPTIONS} -fstrict-aliasing -Wundef -Wmissing-declarations -Winit-self -Wno-unknown-pragmas -Wno-unused-function -Wno-missing-braces ")
set(COMMON_COMPILE_OPTIONS "${COMMON_COMPILE_OPTIONS} -Wno-comment -Wshadow -Wmissing-declarations -Wnonnull")
@@ -261,7 +250,7 @@ add_library(openrct2 SHARED ${LIBOPENRCT2_SOURCES})
target_link_libraries(openrct2 android stdc++ log dl SDL2 png z zstd icu icuuc icudata crypto ssl freetype)
add_library(openrct2-ui SHARED ${OPENRCT2_GUI_SOURCES})
target_link_libraries(openrct2-ui openrct2 android stdc++ GLESv1_CM GLESv2 SDL2main speexdsp brotlicommon brotlidec bz2 freetype ogg vorbis vorbisfile FLAC)
target_link_libraries(openrct2-ui openrct2 android stdc++ GLESv1_CM GLESv2 SDL2main brotlicommon brotlidec bz2 freetype ogg vorbis vorbisfile FLAC)
add_executable(openrct2-cli ${OPENRCT2_CLI_SOURCES})
target_link_libraries(openrct2-cli openrct2 android stdc++ GLESv1_CM GLESv2)
@@ -76,7 +76,6 @@ public class GameActivity extends SDLActivity {
protected String[] getLibraries() {
return new String[]{
"c++_shared",
"speexdsp",
"bz2",
"freetype",
"z",
+1
View File
@@ -18,6 +18,7 @@
# org.gradle.parallel=true
android.enableJetifier=false
android.useAndroidX=true
org.gradle.caching=true
org.gradle.configuration-cache=true
org.gradle.jvmargs=-Xmx4096m
+5 -23
View File
@@ -13,20 +13,10 @@ if (EMSCRIPTEN)
set(SHARED_FLAGS "-fexceptions")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${USE_FLAGS} ${SHARED_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${EMSCRIPTEN_LDFLAGS} --bind ${SHARED_FLAGS} -sEXPORTED_FUNCTIONS=${EMSCRIPTEN_EXPORTED_FUNCTIONS} --js-library ${ROOT_DIR}/emscripten/deps.js")
find_package(SpeexDSP REQUIRED)
elseif (MSVC)
find_package(SDL2 REQUIRED)
find_library(SPEEX_LDFLAGS libspeexdsp)
if (NOT DISABLE_FLAC)
find_library(SPEEX_LDFLAGS libflac)
endif ()
if (NOT DISABLE_VORBIS)
find_library(SPEEX_LDFLAGS libogg)
find_library(SPEEX_LDFLAGS libvorbis)
endif ()
else ()
PKG_CHECK_MODULES(SDL2 REQUIRED IMPORTED_TARGET sdl2)
PKG_CHECK_MODULES(SPEEX REQUIRED IMPORTED_TARGET speexdsp)
if (NOT DISABLE_FLAC)
PKG_CHECK_MODULES(FLAC REQUIRED IMPORTED_TARGET flac)
endif ()
@@ -67,17 +57,14 @@ ipo_set_target_properties(openrct2)
# mingw builds cannot use the PkgConfig imported targets
if (EMSCRIPTEN)
target_link_libraries(openrct2 "libopenrct2"
${SPEEXDSP_LIBRARIES}
${ICU_DATA_LIBRARIES}
${ICU_DT_LIBRARY_RELEASE})
elseif (NOT MSVC AND NOT WIN32)
target_link_libraries(openrct2 "libopenrct2"
PkgConfig::SDL2
PkgConfig::SPEEX)
PkgConfig::SDL2)
else ()
target_link_libraries(openrct2 "libopenrct2"
${SDL2_LDFLAGS}
${SPEEX_LDFLAGS})
${SDL2_LDFLAGS})
endif ()
target_link_platform_libraries(openrct2)
@@ -109,7 +96,6 @@ endif ()
# Includes
target_include_directories(openrct2 PRIVATE "${CMAKE_CURRENT_LIST_DIR}/.."
${SPEEX_INCLUDE_DIRS}
${OGG_INCLUDE_DIRS}
${VORBIS_INCLUDE_DIRS}
${FLAC_INCLUDE_DIRS})
@@ -235,32 +221,28 @@ if(MACOS_BUNDLE)
set(OBJECTS_DIR ${CMAKE_BINARY_DIR}/object)
set(TITLE_SEQUENCE_DIR ${CMAKE_BINARY_DIR}/sequence)
download_openrct2_zip(
ZIP_VERSION ${OBJECTS_VERSION}
DOWNLOAD_DIR ${OBJECTS_DIR}
ZIP_URL ${OBJECTS_URL}
SHA256 ${OBJECTS_SHA256}
)
download_openrct2_zip(
ZIP_VERSION ${TITLE_SEQUENCE_VERSION}
DOWNLOAD_DIR ${TITLE_SEQUENCE_DIR}
ZIP_URL ${TITLE_SEQUENCE_URL}
SHA256 ${TITLE_SEQUENCE_SHA256}
)
# Download opensfx and openmsx
# Download opensfx and openmusic
set(ASSET_PACK_DIR ${CMAKE_BINARY_DIR}/assetpack)
download_openrct2_zip(
ZIP_VERSION ${OPENSFX_VERSION}
DOWNLOAD_DIR ${CMAKE_BINARY_DIR}
ZIP_URL ${OPENSFX_URL}
SHA256 ${OPENSFX_SHA256}
)
download_openrct2_zip(
ZIP_VERSION ${OPENMSX_VERSION}
DOWNLOAD_DIR ${CMAKE_BINARY_DIR}
ZIP_URL ${OPENMSX_URL}
SHA256 ${OPENMSX_SHA256}
ZIP_URL ${OPENMUSIC_URL}
SHA256 ${OPENMUSIC_SHA256}
)
# Copy downloaded data
+5 -1
View File
@@ -816,7 +816,11 @@ private:
_window = SDL_CreateWindow(OPENRCT2_NAME, windowPos.x, windowPos.y, width, height, flags);
if (_window == nullptr)
{
SDLException::Throw("SDL_CreateWindow(...)");
const char* error = SDL_GetError();
std::string errorMessage = String::stdFormat(
"SDL_CreateWindow(" OPENRCT2_NAME ", %d, %d, %d, %d, %d) failed: %s", windowPos.x, windowPos.y, width, height,
flags, error);
SDLException::Throw(errorMessage.c_str());
}
ApplyScreenSaverLockSetting();
+4
View File
@@ -1481,6 +1481,10 @@ namespace OpenRCT2
STR_LOSS_PER_ITEM_SOLD = 1857,
STR_MAINTENANCE_OPTIONS_TIP = 1395,
STR_MAIN_COLOUR_SCHEME = 2971,
STR_MAKE_INVISIBLE = 7023,
STR_MAKE_INVISIBLE_TIP = 7024,
STR_MAKE_VISIBLE = 7025,
STR_MAKE_VISIBLE_TIP = 7026,
STR_MAXIMUM_LENGTH_BEFORE_DEPARTING_TIP = 1214,
STR_MAXIMUM_WAITING_TIME = 1212,
STR_MAX_CARS_PER_TRAIN_TIP = 5923,
-21
View File
@@ -14,7 +14,6 @@
#include <algorithm>
#include <cmath>
#include <openrct2/audio/AudioSource.h>
#include <speex/speex_resampler.h>
namespace OpenRCT2::Audio
{
@@ -25,7 +24,6 @@ namespace OpenRCT2::Audio
private:
AudioSource_* _source = nullptr;
SpeexResamplerState* _resampler = nullptr;
MixerGroup _group = MixerGroup::Sound;
double _rate = 0;
@@ -52,30 +50,11 @@ namespace OpenRCT2::Audio
AudioChannelImpl::SetPan(0.5f);
}
~AudioChannelImpl() override
{
if (_resampler != nullptr)
{
speex_resampler_destroy(_resampler);
_resampler = nullptr;
}
}
[[nodiscard]] IAudioSource* GetSource() const override
{
return _source;
}
[[nodiscard]] SpeexResamplerState* GetResampler() const override
{
return _resampler;
}
void SetResampler(SpeexResamplerState* value) override
{
_resampler = value;
}
[[nodiscard]] MixerGroup GetGroup() const override
{
return _group;
-3
View File
@@ -15,7 +15,6 @@
#include <string>
struct SDL_RWops;
using SpeexResamplerState = struct SpeexResamplerState_;
namespace OpenRCT2::Audio
{
@@ -25,8 +24,6 @@ namespace OpenRCT2::Audio
struct ISDLAudioChannel : public IAudioChannel
{
[[nodiscard]] virtual AudioFormat GetFormat() const = 0;
[[nodiscard]] virtual SpeexResamplerState* GetResampler() const = 0;
virtual void SetResampler(SpeexResamplerState* value) = 0;
};
namespace AudioChannel
+55 -19
View File
@@ -13,7 +13,6 @@
#include <iterator>
#include <openrct2/OpenRCT2.h>
#include <openrct2/config/Config.h>
#include <speex/speex_resampler.h>
using namespace OpenRCT2::Audio;
@@ -124,6 +123,7 @@ const AudioFormat& AudioMixer::GetFormat() const
return _outputFormat;
}
// TODO: investigate replacing this with OpenAL (#26035)
void AudioMixer::GetNextAudioChunk(uint8_t* dst, size_t length)
{
UpdateAdjustedSound();
@@ -156,6 +156,7 @@ void AudioMixer::GetNextAudioChunk(uint8_t* dst, size_t length)
}
}
// TODO: investigate replacing this with OpenAL (#26035)
void AudioMixer::UpdateAdjustedSound()
{
// Did the volume level get changed? Recalculate level in this case.
@@ -171,6 +172,7 @@ void AudioMixer::UpdateAdjustedSound()
}
}
// TODO: investigate replacing this with OpenAL (#26035)
void AudioMixer::MixChannel(ISDLAudioChannel* channel, uint8_t* data, size_t length)
{
int32_t outputByteRate = _outputFormat.GetByteRate();
@@ -236,8 +238,7 @@ void AudioMixer::MixChannel(ISDLAudioChannel* channel, uint8_t* data, size_t len
outRate = _outputFormat.freq * (1 / rate);
}
_effectBuffer.resize(length);
bufferLen = ApplyResample(
channel, buffer, static_cast<int32_t>(bufferLen / outputByteRate), numSamples, inRate, outRate);
bufferLen = ApplyResample(buffer, static_cast<int32_t>(bufferLen / outputByteRate), numSamples, inRate, outRate);
buffer = _effectBuffer.data();
}
@@ -256,30 +257,60 @@ void AudioMixer::MixChannel(ISDLAudioChannel* channel, uint8_t* data, size_t len
/**
* Resample the given buffer into _effectBuffer.
* Assumes that srcBuffer is the same format as _outputFormat.
*
* TODO: investigate replacing this with OpenAL (#26035)
*/
size_t AudioMixer::ApplyResample(
ISDLAudioChannel* channel, const void* srcBuffer, int32_t srcSamples, int32_t dstSamples, int32_t inRate, int32_t outRate)
size_t AudioMixer::ApplyResample(const void* srcBuffer, int32_t srcSamples, int32_t dstSamples, int32_t inRate, int32_t outRate)
{
int32_t outputByteRate = _outputFormat.GetByteRate();
// Prevent buffer underread in inner loop
if (srcSamples < 2)
return 0;
// Create resampler
SpeexResamplerState* resampler = channel->GetResampler();
if (resampler == nullptr)
const int channels = _outputFormat.channels;
const int bytesPerFrame = channels * sizeof(int16_t);
const int16_t* src = static_cast<const int16_t*>(srcBuffer);
int16_t* dst = reinterpret_cast<int16_t*>(_effectBuffer.data());
double ratio = static_cast<double>(inRate) / static_cast<double>(outRate);
for (int32_t i = 0; i < dstSamples; ++i)
{
resampler = speex_resampler_init(_outputFormat.channels, _outputFormat.freq, _outputFormat.freq, 0, nullptr);
channel->SetResampler(resampler);
double srcPos = i * ratio;
int32_t index = static_cast<int32_t>(srcPos);
double frac = srcPos - index;
// Clamp to avoid reading past end
if (index >= srcSamples - 1)
{
index = srcSamples - 2;
frac = 1.0;
}
for (int ch = 0; ch < channels; ++ch)
{
int32_t baseIndex = index * channels + ch;
int16_t s1 = src[baseIndex];
int16_t s2 = src[baseIndex + channels];
// Linear interpolation
double sample = (1.0 - frac) * s1 + frac * s2;
// Clamp to int16 range
if (sample > 32767.0)
sample = 32767.0;
if (sample < -32768.0)
sample = -32768.0;
dst[i * channels + ch] = static_cast<int16_t>(sample);
}
}
speex_resampler_set_rate(resampler, inRate, outRate);
uint32_t inLen = srcSamples;
uint32_t outLen = dstSamples;
speex_resampler_process_interleaved_int(
resampler, static_cast<const spx_int16_t*>(srcBuffer), &inLen, reinterpret_cast<spx_int16_t*>(_effectBuffer.data()),
&outLen);
return outLen * outputByteRate;
return dstSamples * bytesPerFrame;
}
// TODO: investigate replacing this with OpenAL (#26035)
void AudioMixer::ApplyPan(const IAudioChannel* channel, void* buffer, size_t len, size_t sampleSize)
{
if (channel->GetPan() != 0.5f && _outputFormat.channels == 2)
@@ -296,6 +327,7 @@ void AudioMixer::ApplyPan(const IAudioChannel* channel, void* buffer, size_t len
}
}
// TODO: investigate replacing this with OpenAL (#26035)
int32_t AudioMixer::ApplyVolume(const IAudioChannel* channel, void* buffer, size_t len)
{
float volumeAdjust = _volume;
@@ -347,6 +379,7 @@ int32_t AudioMixer::ApplyVolume(const IAudioChannel* channel, void* buffer, size
return mixVolume;
}
// TODO: investigate replacing this with OpenAL (#26035)
void AudioMixer::EffectPanS16(const IAudioChannel* channel, int16_t* data, int32_t length)
{
const float dt = 1.0f / static_cast<float>(length * 2.0f);
@@ -364,6 +397,7 @@ void AudioMixer::EffectPanS16(const IAudioChannel* channel, int16_t* data, int32
}
}
// TODO: investigate replacing this with OpenAL (#26035)
void AudioMixer::EffectPanU8(const IAudioChannel* channel, uint8_t* data, int32_t length)
{
float volumeL = channel->GetVolumeL();
@@ -379,6 +413,7 @@ void AudioMixer::EffectPanU8(const IAudioChannel* channel, uint8_t* data, int32_
}
}
// TODO: investigate replacing this with OpenAL (#26035)
void AudioMixer::EffectFadeS16(int16_t* data, int32_t length, int32_t startvolume, int32_t endvolume)
{
static_assert(SDL_MIX_MAXVOLUME == kMixerVolumeMax, "Max volume differs between OpenRCT2 and SDL2");
@@ -392,6 +427,7 @@ void AudioMixer::EffectFadeS16(int16_t* data, int32_t length, int32_t startvolum
}
}
// TODO: investigate replacing this with OpenAL (#26035)
void AudioMixer::EffectFadeU8(uint8_t* data, int32_t length, int32_t startvolume, int32_t endvolume)
{
static_assert(SDL_MIX_MAXVOLUME == kMixerVolumeMax, "Max volume differs between OpenRCT2 and SDL2");
+1 -3
View File
@@ -69,9 +69,7 @@ namespace OpenRCT2::Audio
* Resample the given buffer into _effectBuffer.
* Assumes that srcBuffer is the same format as _outputFormat.
*/
size_t ApplyResample(
ISDLAudioChannel* channel, const void* srcBuffer, int32_t srcSamples, int32_t dstSamples, int32_t inRate,
int32_t outRate);
size_t ApplyResample(const void* srcBuffer, int32_t srcSamples, int32_t dstSamples, int32_t inRate, int32_t outRate);
void ApplyPan(const IAudioChannel* channel, void* buffer, size_t len, size_t sampleSize);
int32_t ApplyVolume(const IAudioChannel* channel, void* buffer, size_t len);
static void EffectPanS16(const IAudioChannel* channel, int16_t* data, int32_t length);
@@ -272,7 +272,7 @@ private:
SDL_RenderPresent(_sdlRenderer);
}
void CopyBitsToTexture(SDL_Texture* texture, uint8_t* src, int32_t width, int32_t height, const uint32_t* palette)
void CopyBitsToTexture(SDL_Texture* texture, PaletteIndex* src, int32_t width, int32_t height, const uint32_t* palette)
{
void* pixels;
int32_t pitch;
@@ -284,7 +284,7 @@ private:
uint32_t* dst = static_cast<uint32_t*>(pixels);
for (int32_t i = width * height; i > 0; i--)
{
*dst++ = palette[*src++];
*dst++ = palette[EnumValue(*src++)];
}
}
else
@@ -296,8 +296,8 @@ private:
{
for (int32_t x = width; x > 0; x--)
{
const uint8_t lower = *reinterpret_cast<const uint8_t*>(&palette[*src++]);
const uint8_t upper = *reinterpret_cast<const uint8_t*>(&palette[*src++]);
const uint8_t lower = *reinterpret_cast<const uint8_t*>(&palette[EnumValue(*src++)]);
const uint8_t upper = *reinterpret_cast<const uint8_t*>(&palette[EnumValue(*src++)]);
*dst++ = (lower << 8) | upper;
}
dst = reinterpret_cast<uint16_t*>(reinterpret_cast<uint8_t*>(dst) + padding);
@@ -310,7 +310,7 @@ private:
{
for (int32_t x = width; x > 0; x--)
{
*dst++ = *reinterpret_cast<const uint8_t*>(&palette[*src++]);
*dst++ = *reinterpret_cast<const uint8_t*>(&palette[EnumValue(*src++)]);
}
dst += padding;
}
@@ -117,7 +117,7 @@ public:
void Clear(RenderTarget& rt, PaletteIndex paletteIndex) override;
void FillRect(
RenderTarget& rt, PaletteIndex paletteIndex, int32_t x, int32_t y, int32_t w, int32_t h,
RenderTarget& rt, PaletteIndex paletteIndex, int32_t left, int32_t top, int32_t right, int32_t bottom,
bool crossHatch = false) override;
void FilterRect(
RenderTarget& rt, FilterPaletteID palette, int32_t left, int32_t top, int32_t right, int32_t bottom) override;
@@ -204,7 +204,7 @@ private:
uint32_t _height = 0;
uint32_t _pitch = 0;
size_t _bitsSize = 0;
std::unique_ptr<uint8_t[]> _bits;
std::unique_ptr<PaletteIndex[]> _bits;
RenderTarget _mainRT = {};
@@ -485,8 +485,8 @@ public:
framebuffer.GetPixels(_mainRT);
int32_t stride = _mainRT.LineStride();
uint8_t* to = _mainRT.bits + y * stride + x;
uint8_t* from = _mainRT.bits + (y - dy) * stride + x - dx;
PaletteIndex* to = _mainRT.bits + y * stride + x;
PaletteIndex* from = _mainRT.bits + (y - dy) * stride + x - dx;
if (dy > 0)
{
@@ -552,10 +552,10 @@ private:
{
size_t newBitsSize = pitch * height;
auto newBits = std::make_unique<uint8_t[]>(newBitsSize);
auto newBits = std::make_unique<PaletteIndex[]>(newBitsSize);
if (_bits == nullptr)
{
std::fill_n(newBits.get(), newBitsSize, 0);
std::fill_n(newBits.get(), newBitsSize, PaletteIndex::transparent);
}
else
{
@@ -565,8 +565,8 @@ private:
}
else
{
uint8_t* src = _bits.get();
uint8_t* dst = newBits.get();
PaletteIndex* src = _bits.get();
PaletteIndex* dst = newBits.get();
uint32_t minWidth = std::min(_width, width);
uint32_t minHeight = std::min(_height, height);
@@ -575,7 +575,7 @@ private:
std::copy_n(src, minWidth, dst);
if (pitch - minWidth > 0)
{
std::fill_n(dst + minWidth, pitch - minWidth, 0);
std::fill_n(dst + minWidth, pitch - minWidth, PaletteIndex::transparent);
}
src += _pitch;
dst += pitch;
@@ -184,14 +184,14 @@ void OpenGLFramebuffer::GetPixels(Drawing::RenderTarget& rt) const
{
assert(rt.width == _width && rt.height == _height);
auto pixels = std::make_unique<uint8_t[]>(_width * _height);
auto pixels = std::make_unique<Drawing::PaletteIndex[]>(_width * _height);
glCall(glBindTexture, GL_TEXTURE_2D, _texture);
glCall(glPixelStorei, GL_PACK_ALIGNMENT, 1);
glCall(glGetTexImage, GL_TEXTURE_2D, 0, GL_RED_INTEGER, GL_UNSIGNED_BYTE, pixels.get());
// Flip pixels vertically on copy
uint8_t* src = pixels.get() + ((_height - 1) * _width);
uint8_t* dst = rt.bits;
Drawing::PaletteIndex* src = pixels.get() + ((_height - 1) * _width);
Drawing::PaletteIndex* dst = rt.bits;
for (int32_t y = 0; y < _height; y++)
{
std::copy_n(src, _width, dst);
@@ -204,10 +204,10 @@ void OpenGLFramebuffer::SetPixels(const Drawing::RenderTarget& rt)
{
assert(rt.width == _width && rt.height == _height);
auto pixels = std::make_unique<uint8_t[]>(_width * _height);
auto pixels = std::make_unique<Drawing::PaletteIndex[]>(_width * _height);
// Flip pixels vertically on copy
uint8_t* dst = pixels.get() + ((_height - 1) * _width);
uint8_t* src = rt.bits;
Drawing::PaletteIndex* dst = pixels.get() + ((_height - 1) * _width);
Drawing::PaletteIndex* src = rt.bits;
for (int32_t y = 0; y < _height; y++)
{
std::copy_n(src, _width, dst);
@@ -213,7 +213,7 @@ void TextureCache::GeneratePaletteTexture()
// Init no-op palette
for (int i = 0; i < width; ++i)
{
rt.bits[i] = i;
rt.bits[i] = static_cast<PaletteIndex>(i);
}
for (int i = 0; i < kPaletteTotalOffsets; ++i)
@@ -390,8 +390,8 @@ void TextureCache::FreeTextures()
RenderTarget TextureCache::CreateRT(int32_t width, int32_t height)
{
size_t numPixels = width * height;
auto pixels8 = new uint8_t[numPixels];
std::fill_n(pixels8, numPixels, 0);
auto pixels8 = new PaletteIndex[numPixels];
std::fill_n(pixels8, numPixels, PaletteIndex::transparent);
RenderTarget rt;
rt.bits = pixels8;
@@ -19,11 +19,10 @@
#include <unordered_map>
#include <vector>
struct PaletteMap;
namespace OpenRCT2::Drawing
{
enum class FilterPaletteID : int32_t;
struct PaletteMap;
struct RenderTarget;
} // namespace OpenRCT2::Drawing
@@ -208,7 +207,7 @@ namespace OpenRCT2::Ui
~TextureCache();
void InvalidateImage(ImageIndex image);
BasicTextureInfo GetOrLoadImageTexture(ImageId imageId);
BasicTextureInfo GetOrLoadGlyphTexture(ImageId imageId, const PaletteMap& paletteMap);
BasicTextureInfo GetOrLoadGlyphTexture(ImageId imageId, const Drawing::PaletteMap& paletteMap);
BasicTextureInfo GetOrLoadBitmapTexture(ImageIndex image, const void* pixels, size_t width, size_t height);
GLuint GetAtlasesTexture();
@@ -221,11 +220,11 @@ namespace OpenRCT2::Ui
void GeneratePaletteTexture();
void EnlargeAtlasesTexture(GLuint newEntries);
AtlasTextureInfo LoadImageTexture(ImageId image);
AtlasTextureInfo LoadGlyphTexture(ImageId image, const PaletteMap& paletteMap);
AtlasTextureInfo LoadGlyphTexture(ImageId image, const Drawing::PaletteMap& paletteMap);
AtlasTextureInfo AllocateImage(int32_t imageWidth, int32_t imageHeight);
AtlasTextureInfo LoadBitmapTexture(ImageIndex image, const void* pixels, size_t width, size_t height);
static Drawing::RenderTarget GetImageAsRT(ImageId imageId);
static Drawing::RenderTarget GetGlyphAsRT(ImageId imageId, const PaletteMap& paletteMap);
static Drawing::RenderTarget GetGlyphAsRT(ImageId imageId, const Drawing::PaletteMap& paletteMap);
void FreeTextures();
static Drawing::RenderTarget CreateRT(int32_t width, int32_t height);
+5 -4
View File
@@ -23,10 +23,11 @@
#include <openrct2/GameState.h>
#include <openrct2/Input.h>
#include <openrct2/OpenRCT2.h>
#include <openrct2/actions/CheatSetAction.h>
#include <openrct2/actions/LoadOrQuitAction.h>
#include <openrct2/actions/PauseToggleAction.h>
#include <openrct2/actions/TileModifyAction.h>
#include <openrct2/actions/GameActionRunner.h>
#include <openrct2/actions/cheats/CheatSetAction.h>
#include <openrct2/actions/general/LoadOrQuitAction.h>
#include <openrct2/actions/general/PauseToggleAction.h>
#include <openrct2/actions/general/TileModifyAction.h>
#include <openrct2/audio/Audio.h>
#include <openrct2/config/Config.h>
#include <openrct2/core/EnumUtils.hpp>
+3 -3
View File
@@ -52,8 +52,8 @@ namespace OpenRCT2::Ui::Windows
std::span<const Dropdown::Item> items, int32_t width, size_t prefRowsPerColumn = 0);
void WindowDropdownShowImage(
int32_t x, int32_t y, int32_t extray, ColourWithFlags colour, uint8_t flags, int32_t numItems, int32_t itemWidth,
int32_t itemHeight, int32_t numColumns);
const ScreenCoordsXY& screenPos, int32_t extray, ColourWithFlags colour, uint8_t flags, int32_t numItems,
int32_t itemWidth, int32_t itemHeight, int32_t numColumns);
void WindowDropdownClose();
@@ -86,7 +86,7 @@ namespace OpenRCT2::Dropdown
enum class ItemType
{
/**
* Regular label with padding at the left. Will get marked with » if selected.
* Regular label with padding on the left. Will get marked with » if selected.
*/
regular,
/**
+20 -32
View File
@@ -69,7 +69,7 @@ namespace OpenRCT2::Ui::FileBrowser
const bool isSave = (action == LoadSaveAction::save);
const auto defaultDirectory = GetDir(type);
const u8string path = OpenSystemFileBrowser(isSave, type, defaultDirectory, defaultPath);
const u8string path = OpenSystemFileBrowser(isSave, type, defaultDirectory, defaultPath, trackDesign);
if (!path.empty())
{
Select(path.c_str(), action, type, trackDesign);
@@ -174,7 +174,7 @@ namespace OpenRCT2::Ui::FileBrowser
return env.GetDirectoryPath(DirBase::user);
}
const char* GetFilterPatternByType(const LoadSaveType type, const bool isSave)
u8string GetFilterPatternByType(const LoadSaveType type, const bool isSave, const TrackDesign* trackDesign)
{
switch (type)
{
@@ -188,7 +188,15 @@ namespace OpenRCT2::Ui::FileBrowser
return isSave ? "*.park" : "*.park;*.sc6;*.sc4";
case LoadSaveType::track:
return isSave ? "*.td6" : "*.td6;*.td4";
{
if (!isSave)
return "*.td6;*.td4;*.td7";
if (trackDesign == nullptr)
return "*.td6";
return "*" + trackDesignGetExtension(trackDesign->version);
}
case LoadSaveType::heightmap:
return "*.bmp;*.png";
@@ -197,12 +205,12 @@ namespace OpenRCT2::Ui::FileBrowser
Guard::Fail("Unsupported load/save directory type.");
}
return nullptr;
return {};
}
u8string RemovePatternWildcard(u8string_view pattern)
{
while (pattern.length() >= 1 && pattern.front() == '*')
while (!pattern.empty() && pattern.front() == '*')
{
pattern.remove_prefix(1);
}
@@ -412,9 +420,10 @@ namespace OpenRCT2::Ui::FileBrowser
}
case LoadSaveType::track:
{
auto extension = trackDesignGetExtension(trackDesignPtr->version);
SetAndSaveConfigPath(Config::Get().general.lastSaveTrackDirectory, pathBuffer);
const auto withExtension = Path::WithExtension(pathBuffer, ".td6");
const auto withExtension = Path::WithExtension(pathBuffer, extension);
String::set(pathBuffer, sizeof(pathBuffer), withExtension.c_str());
RCT2::T6Exporter t6Export{ *trackDesignPtr };
@@ -468,28 +477,7 @@ namespace OpenRCT2::Ui::FileBrowser
}
}
static u8string GetDefaultExtensionByType(LoadSaveType type)
{
switch (type)
{
case LoadSaveType::park:
return u8".park";
case LoadSaveType::landscape:
return u8".park";
case LoadSaveType::scenario:
return u8".park";
case LoadSaveType::track:
return u8".td6";
default:
return {};
}
}
static FileDialogDesc::Filter GetFilterForType(LoadSaveType type, bool isSave)
static FileDialogDesc::Filter GetFilterForType(LoadSaveType type, bool isSave, const TrackDesign* trackDesign)
{
switch (type)
{
@@ -503,7 +491,7 @@ namespace OpenRCT2::Ui::FileBrowser
return { LanguageGetString(STR_OPENRCT2_SCENARIO_FILE), GetFilterPatternByType(type, isSave) };
case LoadSaveType::track:
return { LanguageGetString(STR_OPENRCT2_TRACK_DESIGN_FILE), GetFilterPatternByType(type, isSave) };
return { LanguageGetString(STR_OPENRCT2_TRACK_DESIGN_FILE), GetFilterPatternByType(type, isSave, trackDesign) };
case LoadSaveType::heightmap:
return { LanguageGetString(STR_OPENRCT2_HEIGHTMAP_FILE), GetFilterPatternByType(type, isSave) };
@@ -514,7 +502,8 @@ namespace OpenRCT2::Ui::FileBrowser
}
}
u8string OpenSystemFileBrowser(bool isSave, LoadSaveType type, u8string defaultDirectory, u8string defaultPath)
u8string OpenSystemFileBrowser(
bool isSave, LoadSaveType type, u8string defaultDirectory, u8string defaultPath, const TrackDesign* trackDesign)
{
u8string path = defaultDirectory;
if (isSave)
@@ -535,7 +524,6 @@ namespace OpenRCT2::Ui::FileBrowser
}
}
u8string extension = GetDefaultExtensionByType(type);
StringId title = GetTitleStringId(type, isSave);
FileDialogDesc desc = {
@@ -543,7 +531,7 @@ namespace OpenRCT2::Ui::FileBrowser
.Title = LanguageGetString(title),
.InitialDirectory = defaultDirectory,
.DefaultFilename = isSave ? path : u8string(),
.Filters = { GetFilterForType(type, isSave), { LanguageGetString(STR_ALL_FILES), "*" } },
.Filters = { GetFilterForType(type, isSave, trackDesign), { LanguageGetString(STR_ALL_FILES), "*" } },
};
return ContextOpenCommonFileDialog(desc);
+3 -2
View File
@@ -55,14 +55,15 @@ namespace OpenRCT2::Ui::FileBrowser
bool IsValidPath(const char* path);
u8string GetLastDirectoryByType(LoadSaveType type);
u8string GetInitialDirectoryByType(LoadSaveType type);
const char* GetFilterPatternByType(LoadSaveType type, bool isSave);
u8string GetFilterPatternByType(LoadSaveType type, bool isSave, const TrackDesign* trackDesign = nullptr);
u8string RemovePatternWildcard(u8string_view pattern);
u8string GetDir(LoadSaveType type);
void RegisterCallback(LoadSaveCallback callback);
void InvokeCallback(ModalResult result, const utf8* path);
void Select(const char* path, LoadSaveAction action, LoadSaveType type, TrackDesign* trackDesignPtr);
StringId GetTitleStringId(LoadSaveType type, bool isSave);
u8string OpenSystemFileBrowser(bool isSave, LoadSaveType type, u8string defaultDirectory, u8string defaultPath);
u8string OpenSystemFileBrowser(
bool isSave, LoadSaveType type, u8string defaultDirectory, u8string defaultPath, const TrackDesign* trackDesign);
WindowBase* OpenPreferred(
LoadSaveAction action, LoadSaveType type, u8string defaultPath, LoadSaveCallback callback, TrackDesign* trackDesign);
} // namespace OpenRCT2::Ui::FileBrowser
+1 -1
View File
@@ -62,7 +62,7 @@ namespace OpenRCT2::Ui
void Close() override;
void Hide() override;
void Toggle();
void WriteLine(const std::string& s, FormatToken colourFormat) override;
void WriteLine(const std::string& input, FormatToken colourFormat) override;
void Input(ConsoleInput input);
void RefreshCaret(size_t position = 0);
+2 -2
View File
@@ -78,7 +78,7 @@ void LandTool::ShowSurfaceStyleDropdown(WindowBase* w, Widget* widget, ObjectEnt
uint32_t surfaceCount = itemIndex;
WindowDropdownShowImage(
w->windowPos.x + widget->left, w->windowPos.y + widget->top, widget->height() - 1, w->colours[2], 0, surfaceCount, 47,
w->windowPos + ScreenCoordsXY{ widget->left, widget->top }, widget->height() - 1, w->colours[2], 0, surfaceCount, 47,
36, DropdownGetAppropriateImageDropdownItemsPerRow(surfaceCount));
gDropdown.hasTooltips = true;
@@ -129,7 +129,7 @@ void LandTool::ShowEdgeStyleDropdown(WindowBase* w, Widget* widget, ObjectEntryI
auto itemsPerRow = DropdownGetAppropriateImageDropdownItemsPerRow(edgeCount);
WindowDropdownShowImage(
w->windowPos.x + widget->left, w->windowPos.y + widget->top, widget->height() - 1, w->colours[2], 0, edgeCount, 47, 36,
w->windowPos + ScreenCoordsXY{ widget->left, widget->top }, widget->height() - 1, w->colours[2], 0, edgeCount, 47, 36,
itemsPerRow);
gDropdown.hasTooltips = true;
@@ -21,13 +21,14 @@
#include <openrct2/GameState.h>
#include <openrct2/Input.h>
#include <openrct2/OpenRCT2.h>
#include <openrct2/actions/BalloonPressAction.h>
#include <openrct2/actions/FootpathAdditionRemoveAction.h>
#include <openrct2/actions/FootpathRemoveAction.h>
#include <openrct2/actions/LargeSceneryRemoveAction.h>
#include <openrct2/actions/ParkEntranceRemoveAction.h>
#include <openrct2/actions/SmallSceneryRemoveAction.h>
#include <openrct2/actions/WallRemoveAction.h>
#include <openrct2/actions/GameActionRunner.h>
#include <openrct2/actions/footpath/FootpathAdditionRemoveAction.h>
#include <openrct2/actions/footpath/FootpathRemoveAction.h>
#include <openrct2/actions/general/BalloonPressAction.h>
#include <openrct2/actions/park/ParkEntranceRemoveAction.h>
#include <openrct2/actions/scenery/LargeSceneryRemoveAction.h>
#include <openrct2/actions/scenery/SmallSceneryRemoveAction.h>
#include <openrct2/actions/scenery/WallRemoveAction.h>
#include <openrct2/entity/Balloon.h>
#include <openrct2/entity/Duck.h>
#include <openrct2/entity/EntityList.h>
+1 -1
View File
@@ -77,7 +77,7 @@ namespace OpenRCT2::Ui::Windows
void WindowInitScrollWidgets(WindowBase& w);
void WindowUpdateScrollWidgets(WindowBase& w);
void WindowMovePosition(WindowBase& w, const ScreenCoordsXY& screenCoords);
void WindowMovePosition(WindowBase& w, const ScreenCoordsXY& deltaCoords);
void WindowSetPosition(WindowBase& w, const ScreenCoordsXY& screenCoords);
void WindowMoveAndSnap(WindowBase& w, ScreenCoordsXY newWindowCoords, int32_t snapProximity);
void WindowRelocateWindows(int32_t width, int32_t height);
+9 -2
View File
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<SolutionDir Condition="'$(SolutionDir)'==''">..\..\</SolutionDir>
@@ -80,6 +80,7 @@
<ClInclude Include="interface\ViewportQuery.h" />
<ClInclude Include="interface\Widget.h" />
<ClInclude Include="interface\Window.h" />
<ClInclude Include="openrct2ui_pch.h" />
<ClInclude Include="ride\Construction.h" />
<ClInclude Include="ride\VehicleSounds.h" />
<ClInclude Include="scripting\CustomImages.h" />
@@ -145,6 +146,9 @@
<ClCompile Include="interface\ViewportQuery.cpp" />
<ClCompile Include="interface\Widget.cpp" />
<ClCompile Include="interface\Window.cpp" />
<ClCompile Include="openrct2ui_pch.cpp" Condition="'$(UsePCH)'=='true'">
<PrecompiledHeader>Create</PrecompiledHeader>
</ClCompile>
<ClCompile Include="ride\Construction.cpp" />
<ClCompile Include="ride\VehicleSounds.cpp" />
<ClCompile Include="scripting\CustomImages.cpp" />
@@ -255,6 +259,9 @@
<ItemDefinitionGroup>
<ClCompile>
<PreprocessorDefinitions Condition="'$(Breakpad)'=='true' and ('$(Platform)'=='Win32' or '$(Platform)'=='x64')">USE_BREAKPAD;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PrecompiledHeader Condition="'$(UsePCH)'=='true'">Use</PrecompiledHeader>
<PrecompiledHeaderFile Condition="'$(UsePCH)'=='true'">openrct2ui_pch.h</PrecompiledHeaderFile>
<ForcedIncludeFiles Condition="'$(UsePCH)'=='true'">openrct2ui_pch.h</ForcedIncludeFiles>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup>
@@ -268,4 +275,4 @@
</Lib>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>
</Project>
+2
View File
@@ -0,0 +1,2 @@
// Empty file for MSVC's PCH
// Do not include the header file - it is set up with MSVC solution
+24
View File
@@ -0,0 +1,24 @@
#pragma once
// Precompiled header for libopenrct2ui project
// Standard library headers that are expensive to compile
#include <algorithm>
#include <filesystem>
#include <functional>
#include <memory>
#include <string>
#include <vector>
// Project core headers (from libopenrct2) that are used in UI
#include "../openrct2/Context.h"
#include "../openrct2/GameState.h"
#include "../openrct2/core/StringTypes.h"
// Interface headers that are widely used in UI
// Note: These must be in dependency order
#include "../openrct2/interface/Viewport.h"
#include "../openrct2/interface/Window.h"
#include "interface/Viewport.h"
#include "interface/Widget.h"
#include "interface/Window.h"
+4 -3
View File
@@ -12,7 +12,8 @@
#include "../interface/Viewport.h"
#include <openrct2/GameState.h>
#include <openrct2/actions/RideCreateAction.h>
#include <openrct2/actions/GameActionRunner.h>
#include <openrct2/actions/ride/RideCreateAction.h>
#include <openrct2/config/Config.h>
#include <openrct2/ride/Ride.h>
#include <openrct2/ride/RideConstruction.h>
@@ -108,7 +109,7 @@ namespace OpenRCT2
kSeparator,
// (Wooden) water splash
TrackElemType::watersplash,
TrackElemType::waterSplash,
kSeparator,
// River Rapids
@@ -281,7 +282,7 @@ namespace OpenRCT2
// Additional tower bases can only be built if the ride allows for it (elevator)
if (trackType == TrackElemType::towerBase
&& !currentRide.getRideTypeDescriptor().HasFlag(RtdFlag::allowExtraTowerBases))
&& !currentRide.getRideTypeDescriptor().flags.has(RtdFlag::allowExtraTowerBases))
entryIsDisabled = true;
// Check if a previous element exists, to collate entries if possible
+4 -4
View File
@@ -322,7 +322,7 @@ namespace OpenRCT2::Scripting
auto importMode = getImportModeFromPalette(pixelData.Palette);
auto pngData = DukGetDataFromBufferLikeObject(pixelData.Data);
auto image = Imaging::ReadFromBuffer(pngData, imageFormat);
constexpr uint8_t flags = EnumToFlag(ImportFlags::RLE);
constexpr ImportFlags flags = { ImportFlag::rle };
ImageImportMeta meta = { { 0, 0 }, palette, flags, importMode };
ImageImporter importer;
@@ -449,7 +449,7 @@ namespace OpenRCT2::Scripting
if (createNewImage)
{
auto bufferSize = size.width * size.height;
rt.bits = new uint8_t[bufferSize];
rt.bits = new PaletteIndex[bufferSize];
std::memset(rt.bits, 0, bufferSize);
drawingEngine->BeginDraw();
@@ -461,7 +461,7 @@ namespace OpenRCT2::Scripting
}
else
{
rt.bits = g1->offset;
rt.bits = reinterpret_cast<PaletteIndex*>(g1->offset);
}
auto dukG = GetObjectAsDukValue(ctx, std::make_shared<ScGraphicsContext>(ctx, rt));
@@ -477,7 +477,7 @@ namespace OpenRCT2::Scripting
delete[] g1->offset;
newg1 = *g1;
}
newg1.offset = rt.bits;
newg1.offset = reinterpret_cast<uint8_t*>(rt.bits);
newg1.width = size.width;
newg1.height = size.height;
newg1.flags = {};
+3 -3
View File
@@ -615,9 +615,9 @@ void CustomListView::Paint(WindowBase* w, RenderTarget& rt, const ScrollArea* sc
}
// Columns
if (Columns.size() == 0)
if (Columns.empty())
{
if (item.Cells.size() != 0)
if (!item.Cells.empty())
{
const auto& text = item.Cells[0];
if (!text.empty())
@@ -804,7 +804,7 @@ std::optional<RowColumn> CustomListView::GetItemIndexAt(const ScreenCoordsXY& po
}
// Check what column we pressed if there are any
if (result && Columns.size() > 0)
if (result && !Columns.empty())
{
bool found = false;
int32_t x = 0;
+3 -3
View File
@@ -897,7 +897,7 @@ namespace OpenRCT2::Ui::Windows
}
// Add window tabs
if (_info.Desc.Tabs.size() != 0)
if (!_info.Desc.Tabs.empty())
{
widgetList[WIDX_CONTENT_PANEL].top = kTabBarHeight;
}
@@ -919,7 +919,7 @@ namespace OpenRCT2::Ui::Windows
// Add custom widgets
auto totalWidgets = _info.Desc.Widgets.size();
auto tabWidgetsOffset = totalWidgets;
if (_info.Desc.Tabs.size() != 0)
if (!_info.Desc.Tabs.empty())
{
totalWidgets += _info.Desc.Tabs[page].Widgets.size();
}
@@ -1271,7 +1271,7 @@ namespace OpenRCT2::Ui::Windows
auto& widget = w->widgets[widgetIndex];
auto lastSelectedIndex = customWidgetInfo->SelectedIndex;
if (customWidgetInfo->Items.size() == 0)
if (customWidgetInfo->Items.empty())
{
selectedIndex = -1;
}
+1 -1
View File
@@ -24,7 +24,7 @@ namespace OpenRCT2::Ui::Windows
std::string GetWindowTitle(WindowBase* w);
void UpdateWindowTitle(WindowBase* w, std::string_view value);
void UpdateWindowTab(WindowBase* w, int32_t tabIndex);
void UpdateWidgetText(WindowBase* w, WidgetIndex widget, std::string_view string_view);
void UpdateWidgetText(WindowBase* w, WidgetIndex widget, std::string_view value);
void UpdateWidgetItems(WindowBase* w, WidgetIndex widgetIndex, const std::vector<std::string>& items);
void UpdateWidgetColour(WindowBase* w, WidgetIndex widgetIndex, Drawing::Colour colour);
void UpdateWidgetSelectedIndex(WindowBase* w, WidgetIndex widgetIndex, int32_t selectedIndex);
@@ -339,9 +339,9 @@ namespace OpenRCT2::Title
_initialLoadCommand = false;
success = true;
}
catch (const std::exception&)
catch (const std::exception& e)
{
Console::Error::WriteLine("Unable to load park: %s", path.c_str());
Console::Error::WriteLine("Unable to load park ‘%s’: %s", path.c_str(), e.what());
GetContext()->CloseProgress();
}
+4 -3
View File
@@ -16,9 +16,10 @@
#include <openrct2/Game.h>
#include <openrct2/GameState.h>
#include <openrct2/SpriteIds.h>
#include <openrct2/actions/BannerRemoveAction.h>
#include <openrct2/actions/BannerSetNameAction.h>
#include <openrct2/actions/BannerSetStyleAction.h>
#include <openrct2/actions/GameActionRunner.h>
#include <openrct2/actions/scenery/BannerRemoveAction.h>
#include <openrct2/actions/scenery/BannerSetNameAction.h>
#include <openrct2/actions/scenery/BannerSetStyleAction.h>
#include <openrct2/config/Config.h>
#include <openrct2/drawing/TextColour.h>
#include <openrct2/object/BannerSceneryEntry.h>
+3 -2
View File
@@ -18,8 +18,9 @@
#include <openrct2/GameState.h>
#include <openrct2/OpenRCT2.h>
#include <openrct2/SpriteIds.h>
#include <openrct2/actions/CheatSetAction.h>
#include <openrct2/actions/ParkSetDateAction.h>
#include <openrct2/actions/GameActionRunner.h>
#include <openrct2/actions/cheats/CheatSetAction.h>
#include <openrct2/actions/park/ParkSetDateAction.h>
#include <openrct2/config/Config.h>
#include <openrct2/core/EnumUtils.hpp>
#include <openrct2/drawing/Drawing.h>
+2 -1
View File
@@ -16,7 +16,8 @@
#include <openrct2/GameState.h>
#include <openrct2/Input.h>
#include <openrct2/SpriteIds.h>
#include <openrct2/actions/ClearAction.h>
#include <openrct2/actions/GameActionRunner.h>
#include <openrct2/actions/terraform/ClearAction.h>
#include <openrct2/drawing/Drawing.h>
#include <openrct2/localisation/Formatter.h>
#include <openrct2/ui/WindowManager.h>
@@ -11,7 +11,8 @@
#include <openrct2-ui/windows/Windows.h>
#include <openrct2/Game.h>
#include <openrct2/GameState.h>
#include <openrct2/actions/RideDemolishAction.h>
#include <openrct2/actions/GameActionRunner.h>
#include <openrct2/actions/ride/RideDemolishAction.h>
#include <openrct2/drawing/Drawing.h>
#include <openrct2/localisation/Formatter.h>
#include <openrct2/ui/WindowManager.h>
+83 -77
View File
@@ -7,8 +7,6 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include "openrct2/core/String.hpp"
#include <algorithm>
#include <bitset>
#include <iterator>
@@ -20,6 +18,7 @@
#include <openrct2/SpriteIds.h>
#include <openrct2/config/Config.h>
#include <openrct2/core/BitSet.hpp>
#include <openrct2/core/String.hpp>
#include <openrct2/drawing/ColourMap.h>
#include <openrct2/drawing/Drawing.h>
#include <openrct2/drawing/Rectangle.h>
@@ -89,6 +88,82 @@ namespace OpenRCT2::Ui::Windows
return Config::Get().interface.enlargedUi ? 6 : 0;
}
void drawItem(RenderTarget& rt, ScreenCoordsXY screenCoords, int32_t i)
{
int32_t highlightedIndex = gDropdown.highlightedIndex;
bool highlighted = (i == highlightedIndex);
if (highlighted)
{
// Darken the cell's background slightly when highlighted
const ScreenCoordsXY rightBottom = screenCoords + ScreenCoordsXY{ ItemWidth - 1, ItemHeight - 1 };
Rectangle::filter(rt, { screenCoords, rightBottom }, FilterPaletteID::paletteDarken3);
}
const auto& item = gDropdown.items[i];
switch (item.type)
{
case Dropdown::ItemType::regular:
{
auto formatString = STR_OPTIONS_DROPDOWN_ITEM;
if (i < Dropdown::kItemsMaxSize && gDropdown.items[i].isChecked())
formatString = STR_OPTIONS_DROPDOWN_ITEM_SELECTED;
drawTextItem(rt, screenCoords, width, item, highlighted, formatString, colours[0].colour);
break;
}
case Dropdown::ItemType::toggle:
{
auto formatString = STR_TOGGLE_OPTION;
if (i < Dropdown::kItemsMaxSize && gDropdown.items[i].isChecked())
formatString = STR_TOGGLE_OPTION_CHECKED;
drawTextItem(rt, screenCoords, width, item, highlighted, formatString, colours[0].colour);
break;
}
case Dropdown::ItemType::plain:
{
drawTextItem(rt, screenCoords, width, item, highlighted, STR_STRING, colours[0].colour);
break;
}
case Dropdown::ItemType::image:
{
GfxDrawSprite(rt, item.image, screenCoords);
break;
}
case Dropdown::ItemType::colour:
{
auto image = item.image;
if (highlightedIndex == i)
image = image.WithIndexOffset(1);
GfxDrawSprite(rt, image, screenCoords);
break;
}
case Dropdown::ItemType::separator:
break;
}
}
void drawSeparator(RenderTarget& rt, ScreenCoordsXY screenCoords)
{
const auto leftTop = screenCoords + ScreenCoordsXY{ 2, (ItemHeight / 2) - 1 };
const auto rightBottom = leftTop + ScreenCoordsXY{ ItemWidth - 4, 0 };
const auto shadowOffset = ScreenCoordsXY{ 0, 1 };
if (colours[0].flags.has(ColourFlag::translucent))
{
auto palette = kTranslucentWindowPalettes[EnumValue(colours[0].colour)];
Rectangle::filter(rt, { leftTop, rightBottom }, palette.highlight);
Rectangle::filter(rt, { leftTop + shadowOffset, rightBottom + shadowOffset }, palette.shadow);
}
else
{
Rectangle::fill(rt, { leftTop, rightBottom }, getColourMap(colours[0].colour).midDark);
Rectangle::fill(
rt, { leftTop + shadowOffset, rightBottom + shadowOffset }, getColourMap(colours[0].colour).lightest);
}
}
void drawTextItem(
RenderTarget& rt, ScreenCoordsXY screenCoords, int32_t ddWidth, const Dropdown::Item& item, bool highlighted,
StringId format, Colour background)
@@ -110,7 +185,6 @@ namespace OpenRCT2::Ui::Windows
{
drawWidgets(rt);
int32_t highlightedIndex = gDropdown.highlightedIndex;
for (int32_t i = 0; i < gDropdown.numItems; i++)
{
ScreenCoordsXY cellCoords;
@@ -124,76 +198,11 @@ namespace OpenRCT2::Ui::Windows
if (gDropdown.items[i].isSeparator())
{
const auto leftTop = screenCoords + ScreenCoordsXY{ 2, (ItemHeight / 2) - 1 };
const auto rightBottom = leftTop + ScreenCoordsXY{ ItemWidth - 4, 0 };
const auto shadowOffset = ScreenCoordsXY{ 0, 1 };
if (colours[0].flags.has(ColourFlag::translucent))
{
TranslucentWindowPalette palette = kTranslucentWindowPalettes[EnumValue(colours[0].colour)];
Rectangle::filter(rt, { leftTop, rightBottom }, palette.highlight);
Rectangle::filter(rt, { leftTop + shadowOffset, rightBottom + shadowOffset }, palette.shadow);
}
else
{
Rectangle::fill(rt, { leftTop, rightBottom }, getColourMap(colours[0].colour).midDark);
Rectangle::fill(
rt, { leftTop + shadowOffset, rightBottom + shadowOffset },
getColourMap(colours[0].colour).lightest);
}
drawSeparator(rt, screenCoords);
}
else
{
auto highlighted = (i == highlightedIndex);
if (highlighted)
{
// Darken the cell's background slightly when highlighted
const ScreenCoordsXY rightBottom = screenCoords + ScreenCoordsXY{ ItemWidth - 1, ItemHeight - 1 };
Rectangle::filter(rt, { screenCoords, rightBottom }, FilterPaletteID::paletteDarken3);
}
const auto& item = gDropdown.items[i];
switch (item.type)
{
case Dropdown::ItemType::regular:
{
auto formatString = STR_OPTIONS_DROPDOWN_ITEM;
if (i < Dropdown::kItemsMaxSize && gDropdown.items[i].isChecked())
formatString = STR_OPTIONS_DROPDOWN_ITEM_SELECTED;
drawTextItem(rt, screenCoords, width, item, highlighted, formatString, colours[0].colour);
break;
}
case Dropdown::ItemType::toggle:
{
auto formatString = STR_TOGGLE_OPTION;
if (i < Dropdown::kItemsMaxSize && gDropdown.items[i].isChecked())
formatString = STR_TOGGLE_OPTION_CHECKED;
drawTextItem(rt, screenCoords, width, item, highlighted, formatString, colours[0].colour);
break;
}
case Dropdown::ItemType::plain:
{
drawTextItem(rt, screenCoords, width, item, highlighted, STR_STRING, colours[0].colour);
break;
}
case Dropdown::ItemType::image:
{
GfxDrawSprite(rt, item.image, screenCoords);
break;
}
case Dropdown::ItemType::colour:
{
auto image = item.image;
if (highlightedIndex == i)
image = image.WithIndexOffset(1);
GfxDrawSprite(rt, image, screenCoords);
break;
}
case Dropdown::ItemType::separator:
break;
}
drawItem(rt, screenCoords, i);
}
}
}
@@ -434,8 +443,8 @@ namespace OpenRCT2::Ui::Windows
* @param numColumns (bl)
*/
void WindowDropdownShowImage(
int32_t x, int32_t y, int32_t extray, ColourWithFlags colour, uint8_t flags, int32_t numItems, int32_t itemWidth,
int32_t itemHeight, int32_t numColumns)
const ScreenCoordsXY& screenPos, int32_t extray, ColourWithFlags colour, uint8_t flags, int32_t numItems,
int32_t itemWidth, int32_t itemHeight, int32_t numColumns)
{
gInputFlags.unset(InputFlag::dropdownStayOpen, InputFlag::dropdownMouseUp);
if (flags & Dropdown::Flag::StayOpen || Config::Get().interface.touchEnhancements)
@@ -449,7 +458,7 @@ namespace OpenRCT2::Ui::Windows
auto* w = windowMgr->Create<DropdownWindow>(WindowClass::dropdown, { itemWidth, itemHeight }, WindowFlag::stickToFront);
if (w != nullptr)
{
w->setImageItems({ x, y }, extray, colour, numItems, itemWidth, itemHeight, numColumns);
w->setImageItems(screenPos, extray, colour, numItems, itemWidth, itemHeight, numColumns);
}
}
@@ -607,7 +616,7 @@ namespace OpenRCT2::Ui::Windows
// Show dropdown
auto squareSize = DropdownWindow::GetDefaultRowHeight();
WindowDropdownShowImage(
w->windowPos.x + widget->left, w->windowPos.y + widget->top, widget->height(), dropdownColour,
w->windowPos + ScreenCoordsXY{ widget->left, widget->top }, widget->height(), dropdownColour,
Dropdown::Flag::StayOpen, numColours, squareSize, squareSize,
DropdownGetAppropriateImageDropdownItemsPerRow(static_cast<uint32_t>(numColours)));
@@ -624,9 +633,6 @@ namespace OpenRCT2::Ui::Windows
}
} // namespace OpenRCT2::Ui::Windows
using namespace OpenRCT2::Ui::Windows;
using namespace OpenRCT2;
namespace OpenRCT2::Dropdown
{
static Item StringItem(ItemType _type, const utf8* string)
@@ -114,7 +114,7 @@ namespace OpenRCT2::Ui::Windows
int16_t columnSplitOffset = width / 2;
if (researchItem.type == Research::EntryType::ride
&& !GetRideTypeDescriptor(researchItem.baseRideType).HasFlag(RtdFlag::listVehiclesSeparately))
&& !GetRideTypeDescriptor(researchItem.baseRideType).flags.has(RtdFlag::listVehiclesSeparately))
{
const StringId rideTypeName = GetRideNaming(researchItem.baseRideType, GetRideEntryByIndex(researchItem.entryIndex))
.Name;
@@ -421,7 +421,7 @@ namespace OpenRCT2::Ui::Windows
auto ft = Formatter();
if (researchItem->type == Research::EntryType::ride
&& !GetRideTypeDescriptor(researchItem->baseRideType).HasFlag(RtdFlag::listVehiclesSeparately))
&& !GetRideTypeDescriptor(researchItem->baseRideType).flags.has(RtdFlag::listVehiclesSeparately))
{
drawString = STR_WINDOW_COLOUR_2_STRINGID_STRINGID;
StringId rideTypeName = GetRideNaming(researchItem->baseRideType, GetRideEntryByIndex(researchItem->entryIndex))
@@ -21,8 +21,8 @@
#include <openrct2/Input.h>
#include <openrct2/OpenRCT2.h>
#include <openrct2/SpriteIds.h>
#include <openrct2/actions/LoadOrQuitAction.h>
#include <openrct2/actions/ResultWithMessage.h>
#include <openrct2/actions/general/LoadOrQuitAction.h>
#include <openrct2/audio/Audio.h>
#include <openrct2/config/Config.h>
#include <openrct2/core/EnumUtils.hpp>
@@ -524,7 +524,7 @@ namespace OpenRCT2::Ui::Windows
// Track designs manager cannot select multiple, so only show selection filters if not in track designs
// manager
if (!(gLegacyScene == LegacyScene::trackDesignsManager))
if (gLegacyScene != LegacyScene::trackDesignsManager)
{
numSelectionItems = 3;
gDropdown.items[DDIX_FILTER_SEPARATOR] = Dropdown::Separator();
@@ -546,7 +546,7 @@ namespace OpenRCT2::Ui::Windows
}
}
if (!(gLegacyScene == LegacyScene::trackDesignsManager))
if (gLegacyScene != LegacyScene::trackDesignsManager)
{
gDropdown.items[DDIX_FILTER_SELECTED].setChecked(IsFilterActive(FILTER_SELECTED));
gDropdown.items[DDIX_FILTER_NONSELECTED].setChecked(IsFilterActive(FILTER_NONSELECTED));
@@ -743,7 +743,7 @@ namespace OpenRCT2::Ui::Windows
if (screenCoords.y + kScrollableRowHeight >= rt.y && screenCoords.y <= rt.y + rt.height)
{
// Draw checkbox
if (!(gLegacyScene == LegacyScene::trackDesignsManager) && !(*listItem.flags & 0x20))
if (gLegacyScene != LegacyScene::trackDesignsManager && !(*listItem.flags & 0x20))
Rectangle::fillInset(
rt, { { 2, screenCoords.y }, { 11, screenCoords.y + 10 } }, colours[1],
Rectangle::BorderStyle::inset, Rectangle::FillBrightness::dark,
@@ -759,8 +759,7 @@ namespace OpenRCT2::Ui::Windows
}
// Draw checkmark
if (!(gLegacyScene == LegacyScene::trackDesignsManager)
&& (*listItem.flags & ObjectSelectionFlags::Selected))
if (gLegacyScene != LegacyScene::trackDesignsManager && (*listItem.flags & ObjectSelectionFlags::Selected))
{
screenCoords.x = 2;
auto darkness = highlighted ? TextDarkness::extraDark : TextDarkness::dark;
@@ -1071,7 +1070,7 @@ namespace OpenRCT2::Ui::Windows
getColourMap(colours[1].colour).darkest);
// Draw number of selected items
if (!(gLegacyScene == LegacyScene::trackDesignsManager))
if (gLegacyScene != LegacyScene::trackDesignsManager)
{
auto screenPos = windowPos + ScreenCoordsXY{ 3, height - 13 };
@@ -15,7 +15,8 @@
#include <openrct2/GameState.h>
#include <openrct2/Input.h>
#include <openrct2/SpriteIds.h>
#include <openrct2/actions/ParkEntrancePlaceAction.h>
#include <openrct2/actions/GameActionRunner.h>
#include <openrct2/actions/park/ParkEntrancePlaceAction.h>
#include <openrct2/audio/Audio.h>
#include <openrct2/drawing/ColourMap.h>
#include <openrct2/drawing/Drawing.h>
@@ -19,8 +19,9 @@
#include <openrct2/GameState.h>
#include <openrct2/OpenRCT2.h>
#include <openrct2/SpriteIds.h>
#include <openrct2/actions/ParkSetNameAction.h>
#include <openrct2/actions/ScenarioSetSettingAction.h>
#include <openrct2/actions/GameActionRunner.h>
#include <openrct2/actions/general/ScenarioSetSettingAction.h>
#include <openrct2/actions/park/ParkSetNameAction.h>
#include <openrct2/core/String.hpp>
#include <openrct2/drawing/ColourMap.h>
#include <openrct2/drawing/Drawing.h>
@@ -2287,7 +2288,7 @@ namespace OpenRCT2::Ui::Windows
auto* currentRide = GetRide(_rideableRides[i]);
if (currentRide != nullptr)
{
currentRide->lifecycleFlags ^= RIDE_LIFECYCLE_INDESTRUCTIBLE;
currentRide->flags.flip(RideFlag::indestructible);
}
invalidate();
}
@@ -2365,7 +2366,7 @@ namespace OpenRCT2::Ui::Windows
auto* currentRide = GetRide(_rideableRides[i]);
if (currentRide != nullptr)
{
if (currentRide->lifecycleFlags & RIDE_LIFECYCLE_INDESTRUCTIBLE)
if (currentRide->flags.has(RideFlag::indestructible))
{
auto darkness = stringId == STR_WINDOW_COLOUR_2_STRINGID ? TextDarkness::extraDark : TextDarkness::dark;
DrawText(
+2 -1
View File
@@ -13,7 +13,8 @@
#include <openrct2-ui/windows/Windows.h>
#include <openrct2/GameState.h>
#include <openrct2/SpriteIds.h>
#include <openrct2/actions/ParkSetLoanAction.h>
#include <openrct2/actions/GameActionRunner.h>
#include <openrct2/actions/park/ParkSetLoanAction.h>
#include <openrct2/drawing/ColourMap.h>
#include <openrct2/drawing/Drawing.h>
#include <openrct2/drawing/Rectangle.h>
+17 -16
View File
@@ -24,8 +24,9 @@
#include <openrct2/Input.h>
#include <openrct2/OpenRCT2.h>
#include <openrct2/SpriteIds.h>
#include <openrct2/actions/FootpathPlaceAction.h>
#include <openrct2/actions/FootpathRemoveAction.h>
#include <openrct2/actions/GameActionRunner.h>
#include <openrct2/actions/footpath/FootpathPlaceAction.h>
#include <openrct2/actions/footpath/FootpathRemoveAction.h>
#include <openrct2/audio/Audio.h>
#include <openrct2/core/FlagHolder.hpp>
#include <openrct2/drawing/Drawing.h>
@@ -819,7 +820,7 @@ namespace OpenRCT2::Ui::Windows
auto itemsPerRow = DropdownGetAppropriateImageDropdownItemsPerRow(numPathTypes);
WindowDropdownShowImage(
windowPos.x + widget->left, windowPos.y + widget->top, widget->height(), colours[1], 0, numPathTypes, 47, 36,
windowPos + ScreenCoordsXY{ widget->left, widget->top }, widget->height(), colours[1], 0, numPathTypes, 47, 36,
itemsPerRow);
gDropdown.hasTooltips = true;
@@ -855,7 +856,7 @@ namespace OpenRCT2::Ui::Windows
auto itemsPerRow = DropdownGetAppropriateImageDropdownItemsPerRow(numRailingsTypes);
WindowDropdownShowImage(
windowPos.x + widget->left, windowPos.y + widget->top, widget->height(), colours[1], 0, numRailingsTypes, 47,
windowPos + ScreenCoordsXY{ widget->left, widget->top }, widget->height(), colours[1], 0, numRailingsTypes, 47,
36, itemsPerRow);
gDropdown.hasTooltips = true;
@@ -1274,7 +1275,7 @@ namespace OpenRCT2::Ui::Windows
}
FootpathUpdateProvisional();
if (_provisionalFootpath.tiles.size() == 0)
if (_provisionalFootpath.tiles.empty())
return;
// Try and place path
@@ -1946,7 +1947,7 @@ namespace OpenRCT2::Ui::Windows
FootpathRemoveProvisional();
GameActions::Result res;
std::vector<ProvisionalTile> succesfulTiles{};
std::vector<ProvisionalTile> successfulTiles{};
money64 cost = 0;
for (const auto& tile : tiles)
{
@@ -1958,20 +1959,20 @@ namespace OpenRCT2::Ui::Windows
// from glitching through the existing path.
if (res.error == GameActions::Status::ok || res.error == GameActions::Status::itemAlreadyPlaced)
{
succesfulTiles.emplace_back(tile);
successfulTiles.emplace_back(tile);
cost += res.cost;
}
}
bool anySuccesful = succesfulTiles.size() > 0;
if (anySuccesful)
bool anySuccessful = (!successfulTiles.empty());
if (anySuccessful)
{
_provisionalFootpath.surfaceIndex = type;
_provisionalFootpath.railingsIndex = railingsType;
_provisionalFootpath.positionA = footpathLocA;
_provisionalFootpath.positionB = footpathLocB;
_provisionalFootpath.startZ = startZ;
_provisionalFootpath.tiles = succesfulTiles;
_provisionalFootpath.tiles = successfulTiles;
_provisionalFootpath.constructFlags = constructFlags;
_provisionalFootpath.flags.set(ProvisionalPathFlag::placed);
@@ -1987,26 +1988,26 @@ namespace OpenRCT2::Ui::Windows
if (!isToolActive(WindowClass::scenery))
{
if (succesfulTiles.size() == 0)
if (successfulTiles.empty())
{
// If we can't build this, don't show a virtual floor.
VirtualFloorSetHeight(0);
}
else if (
succesfulTiles[0].slope.type == FootpathSlopeType::flat
|| succesfulTiles[0].position.z < _footpathConstructFromPosition.z)
successfulTiles[0].slope.type == FootpathSlopeType::flat
|| successfulTiles[0].position.z < _footpathConstructFromPosition.z)
{
// Going either straight on, or down.
VirtualFloorSetHeight(succesfulTiles[0].position.z);
VirtualFloorSetHeight(successfulTiles[0].position.z);
}
else
{
// Going up in the world!
VirtualFloorSetHeight(succesfulTiles[0].position.z + kLandHeightStep);
VirtualFloorSetHeight(successfulTiles[0].position.z + kLandHeightStep);
}
}
return anySuccesful ? cost : kMoney64Undefined;
return anySuccessful ? cost : kMoney64Undefined;
}
/**
+4 -3
View File
@@ -19,9 +19,10 @@
#include <openrct2/GameState.h>
#include <openrct2/Input.h>
#include <openrct2/SpriteIds.h>
#include <openrct2/actions/GuestSetFlagsAction.h>
#include <openrct2/actions/GuestSetNameAction.h>
#include <openrct2/actions/PeepPickupAction.h>
#include <openrct2/actions/GameActionRunner.h>
#include <openrct2/actions/peep/GuestSetFlagsAction.h>
#include <openrct2/actions/peep/GuestSetNameAction.h>
#include <openrct2/actions/peep/PeepPickupAction.h>
#include <openrct2/config/Config.h>
#include <openrct2/core/EnumUtils.hpp>
#include <openrct2/core/String.hpp>
+2 -1
View File
@@ -194,7 +194,8 @@ namespace OpenRCT2::Ui::Windows
if (guestRide != nullptr)
{
ft.Add<StringId>(
guestRide->getRideTypeDescriptor().HasFlag(RtdFlag::describeAsInside) ? STR_IN_RIDE : STR_ON_RIDE);
guestRide->getRideTypeDescriptor().flags.has(RtdFlag::describeAsInside) ? STR_IN_RIDE
: STR_ON_RIDE);
guestRide->formatNameTo(ft);
_selectedFilter = GuestFilterType::Guests;
+12 -12
View File
@@ -71,7 +71,7 @@ namespace OpenRCT2::Ui::Windows
std::unique_ptr<TrackDesign> _trackDesign;
std::string _trackPath;
std::string _trackName;
std::vector<uint8_t> _trackDesignPreviewPixels;
TrackDesignPreviewBuffer _trackDesignPreviewPixels{};
public:
void setupTrack(const utf8* path, std::unique_ptr<TrackDesign> trackDesign)
@@ -79,7 +79,7 @@ namespace OpenRCT2::Ui::Windows
_trackDesign = std::move(trackDesign);
_trackPath = path;
_trackName = GetNameFromTrackPath(path);
_trackDesignPreviewPixels.resize(4 * kTrackPreviewImageSize);
std::fill(_trackDesignPreviewPixels.begin(), _trackDesignPreviewPixels.end(), PaletteIndex::transparent);
UpdatePreview();
invalidate();
@@ -97,8 +97,6 @@ namespace OpenRCT2::Ui::Windows
{
_trackPath.clear();
_trackName.clear();
_trackDesignPreviewPixels.clear();
_trackDesignPreviewPixels.shrink_to_fit();
_trackDesign = nullptr;
}
@@ -162,13 +160,14 @@ namespace OpenRCT2::Ui::Windows
Rectangle::fill(rt, { screenPos, screenPos + ScreenCoordsXY{ 369, 216 } }, colour);
G1Element g1temp = {};
g1temp.offset = _trackDesignPreviewPixels.data() + (_currentTrackPieceDirection * kTrackPreviewImageSize);
g1temp.offset = reinterpret_cast<uint8_t*>(
_trackDesignPreviewPixels.data() + (_currentTrackPieceDirection * kTrackPreviewImageSize));
g1temp.width = 370;
g1temp.height = 217;
g1temp.flags = { G1Flag::hasTransparency };
GfxSetG1Element(SPR_TEMP, &g1temp);
DrawingEngineInvalidateImage(SPR_TEMP);
GfxDrawSprite(rt, ImageId(SPR_TEMP), screenPos);
GfxSetG1Element(SPR_TEMP_INSTALL_TRACK, &g1temp);
DrawingEngineInvalidateImage(SPR_TEMP_INSTALL_TRACK);
GfxDrawSprite(rt, ImageId(SPR_TEMP_INSTALL_TRACK), screenPos);
screenPos = windowPos + ScreenCoordsXY{ widget->midX(), widget->bottom - 12 };
@@ -281,7 +280,7 @@ namespace OpenRCT2::Ui::Windows
screenPos.y += kListRowHeight;
}
if (GetRideTypeDescriptor(td.trackAndVehicle.rtdIndex).HasFlag(RtdFlag::hasGForces))
if (GetRideTypeDescriptor(td.trackAndVehicle.rtdIndex).flags.has(RtdFlag::hasGForces))
{
// Maximum positive vertical Gs
{
@@ -317,7 +316,7 @@ namespace OpenRCT2::Ui::Windows
}
}
if (GetRideTypeDescriptor(td.trackAndVehicle.rtdIndex).HasFlag(RtdFlag::hasDrops))
if (GetRideTypeDescriptor(td.trackAndVehicle.rtdIndex).flags.has(RtdFlag::hasDrops))
{
auto ft = Formatter();
ft.Add<uint16_t>(td.statistics.drops);
@@ -361,7 +360,7 @@ namespace OpenRCT2::Ui::Windows
private:
void UpdatePreview()
{
TrackDesignDrawPreview(*_trackDesign, _trackDesignPreviewPixels.data(), !gTrackDesignSceneryToggle);
TrackDesignDrawPreview(*_trackDesign, _trackDesignPreviewPixels, !gTrackDesignSceneryToggle);
}
void InstallTrackDesign()
@@ -375,7 +374,8 @@ namespace OpenRCT2::Ui::Windows
return;
}
destPath = Path::Combine(destPath, _trackName + u8".td6");
auto extension = trackDesignGetExtension(_trackDesign->version);
destPath = Path::Combine(destPath, _trackName + extension);
if (File::Exists(destPath))
{
Loaded 100 of 606 files, more files were not shown because too many files have changed in this diff. Show more