diff --git a/.ci/Arch/Dockerfile b/.ci/Arch/Dockerfile
index 36cf5c4ae..b08e568f3 100644
--- a/.ci/Arch/Dockerfile
+++ b/.ci/Arch/Dockerfile
@@ -8,10 +8,13 @@ RUN pacman --sync --refresh --sysupgrade --needed --noconfirm \
gtest \
mariadb-libs \
ninja \
+ openssl \
protobuf \
qt6-base \
+ qt6-declarative \
qt6-imageformats \
qt6-multimedia \
+ qt6-shadertools \
qt6-svg \
qt6-tools \
qt6-translations \
diff --git a/.ci/Debian12/Dockerfile b/.ci/Debian12/Dockerfile
index 202405b84..e3df94ab5 100644
--- a/.ci/Debian12/Dockerfile
+++ b/.ci/Debian12/Dockerfile
@@ -15,12 +15,15 @@ RUN apt-get update && \
libprotobuf-dev \
libqt6multimedia6 \
libqt6sql6-mysql \
+ libssl-dev \
ninja-build \
protobuf-compiler \
qt6-image-formats-plugins \
qt6-l10n-tools \
qt6-multimedia-dev \
+ qt6-declarative-dev \
qt6-svg-dev \
+ qt6-shadertools-dev \
qt6-tools-dev \
qt6-tools-dev-tools \
qt6-websockets-dev \
diff --git a/.ci/Debian13/Dockerfile b/.ci/Debian13/Dockerfile
index d7ab6ac86..60e490c98 100644
--- a/.ci/Debian13/Dockerfile
+++ b/.ci/Debian13/Dockerfile
@@ -16,12 +16,15 @@ RUN apt-get update && \
libprotobuf-dev \
libqt6multimedia6 \
libqt6sql6-mysql \
+ libssl-dev \
ninja-build \
protobuf-compiler \
qt6-image-formats-plugins \
qt6-l10n-tools \
qt6-multimedia-dev \
+ qt6-declarative-dev \
qt6-svg-dev \
+ qt6-shadertools-dev \
qt6-tools-dev \
qt6-tools-dev-tools \
qt6-websockets-dev \
diff --git a/.ci/Fedora43/Dockerfile b/.ci/Fedora43/Dockerfile
index 27570cf99..4005bbf67 100644
--- a/.ci/Fedora43/Dockerfile
+++ b/.ci/Fedora43/Dockerfile
@@ -7,8 +7,9 @@ RUN dnf install -y \
git \
mariadb-devel \
ninja-build \
+ openssl-devel \
protobuf-devel \
- qt6-{qttools,qtsvg,qtmultimedia,qtwebsockets}-devel \
+ qt6-{qtdeclarative,qtshadertools,qttools,qtsvg,qtmultimedia,qtwebsockets}-devel \
qt6-qtimageformats \
rpm-build \
xz-devel \
diff --git a/.ci/Fedora44/Dockerfile b/.ci/Fedora44/Dockerfile
index e6c8da7f3..e0224cdc6 100644
--- a/.ci/Fedora44/Dockerfile
+++ b/.ci/Fedora44/Dockerfile
@@ -7,8 +7,9 @@ RUN dnf install -y \
git \
mariadb-devel \
ninja-build \
+ openssl-devel \
protobuf-devel \
- qt6-{qttools,qtsvg,qtmultimedia,qtwebsockets}-devel \
+ qt6-{qtdeclarative,qtshadertools,qttools,qtsvg,qtmultimedia,qtwebsockets}-devel \
qt6-qtimageformats \
rpm-build \
xz-devel \
diff --git a/.ci/Servatrice_Debian12/Dockerfile b/.ci/Servatrice_Debian12/Dockerfile
index 21f6a036e..321aa7c0f 100644
--- a/.ci/Servatrice_Debian12/Dockerfile
+++ b/.ci/Servatrice_Debian12/Dockerfile
@@ -12,6 +12,7 @@ RUN apt-get update && \
libmariadb-dev-compat \
libprotobuf-dev \
libqt6sql6-mysql \
+ libssl-dev \
ninja-build \
protobuf-compiler \
qt6-tools-dev \
diff --git a/.ci/Ubuntu24.04/Dockerfile b/.ci/Ubuntu24.04/Dockerfile
index 809b2e43a..10adc5e64 100644
--- a/.ci/Ubuntu24.04/Dockerfile
+++ b/.ci/Ubuntu24.04/Dockerfile
@@ -15,12 +15,15 @@ RUN apt-get update && \
libprotobuf-dev \
libqt6multimedia6 \
libqt6sql6-mysql \
+ libssl-dev \
ninja-build \
protobuf-compiler \
qt6-image-formats-plugins \
qt6-l10n-tools \
qt6-multimedia-dev \
+ qt6-declarative-dev \
qt6-svg-dev \
+ qt6-shadertools-dev \
qt6-tools-dev \
qt6-tools-dev-tools \
qt6-websockets-dev \
diff --git a/.ci/Ubuntu26.04/Dockerfile b/.ci/Ubuntu26.04/Dockerfile
index 7b0cd389f..1b6cf825f 100644
--- a/.ci/Ubuntu26.04/Dockerfile
+++ b/.ci/Ubuntu26.04/Dockerfile
@@ -16,12 +16,15 @@ RUN apt-get update && \
libprotobuf-dev \
libqt6multimedia6 \
libqt6sql6-mysql \
+ libssl-dev \
ninja-build \
protobuf-compiler \
qt6-image-formats-plugins \
qt6-l10n-tools \
qt6-multimedia-dev \
+ qt6-declarative-dev \
qt6-svg-dev \
+ qt6-shadertools-dev \
qt6-tools-dev \
qt6-tools-dev-tools \
qt6-websockets-dev \
diff --git a/.ci/compile.sh b/.ci/compile.sh
index ee846897b..bd8c900c8 100755
--- a/.ci/compile.sh
+++ b/.ci/compile.sh
@@ -149,6 +149,9 @@ if [[ $MAKE_TEST ]]; then
fi
if [[ $USE_CCACHE ]]; then
flags+=("-DUSE_CCACHE=1")
+ # PCH-aware caching is required or ccache refuses to cache any TU that
+ # consumes a precompiled header, silently recompiling everything on every run.
+ ccache --set-config sloppiness=pch_defines,time_macros
if [[ $CCACHE_SIZE ]]; then
# note, this setting persists after running the script
ccache --max-size "$CCACHE_SIZE"
@@ -159,6 +162,7 @@ if [[ $PACKAGE_TYPE ]]; then
fi
if [[ $USE_VCPKG ]]; then
flags+=("-DUSE_VCPKG=1")
+ flags+=("-DVCPKG_INSTALL_OPTIONS=--x-abi-tools-use-exact-versions")
fi
# Add cmake --build flags
diff --git a/.ci/release_template.md b/.ci/release_template.md
index ac78a193a..23b475150 100644
--- a/.ci/release_template.md
+++ b/.ci/release_template.md
@@ -12,9 +12,9 @@ Available pre-compiled binaries for installation:
• Windows 10+macOS
- • macOS 15+SequoiaApple M
- • macOS 14+SonomaApple M
- • macOS 13+VenturaIntel
+ • macOS 15+Sequoia
+ • macOS 14+Sonoma
+ • macOS 13+Ventura (x86)Linux
• Ubuntu 26.04 LTSResolute Racoon
@@ -24,10 +24,10 @@ Available pre-compiled binaries for installation:
• Fedora 44
• Fedora 43
-We are also packaged in Arch Linux's official extra repository, courtesy of @FFY00.
-General Linux support is available via a flatpak package at Flathub!
+ General Linux support is available via a flatpak package hosted at Flathub (x86 & ARM)!
+ Thanks to courtesy of @FFY00, the app is also available in Arch Linux's official extra repository.
-We provide a Docker image for "Servatrice" in GHCR. You can docker pull it or use our Docker Compose files!
+ We maintain a Docker image for "Servatrice" in GHCR (x86 & ARM). You can docker pull it or use our Docker Compose files!
diff --git a/.codacy.yml b/.codacy.yml
deleted file mode 100644
index f9482da2f..000000000
--- a/.codacy.yml
+++ /dev/null
@@ -1,5 +0,0 @@
----
-exclude_paths:
- - '**/translations/*.ts'
-
-# codacy config documentation: https://support.codacy.com/hc/en-us/articles/115002130625-Codacy-Configuration-File
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 56ad64283..589cae1d8 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -334,7 +334,7 @@ the tr() call, also you can add an extra string as a hint for translators:
QString message = tr("Everyone draws %n cards", "english hint for translators", amount);
```
See [Qt's wiki on translations](
-https://doc.qt.io/qt-5/i18n-source-translation.html#handling-plurals)
+https://doc.qt.io/qt-6/i18n-source-translation.html#handling-plurals)
If you're about to propose a change that adds or modifies any translatable
string in the code, you don't need to take care of adding the new strings to
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
new file mode 100644
index 000000000..75fbc59f1
--- /dev/null
+++ b/.github/workflows/codeql.yml
@@ -0,0 +1,95 @@
+# GitHub Docs on Code Scanning:
+# https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning
+# https://docs.github.com/en/code-security/how-tos/find-and-fix-code-vulnerabilities/manage-your-configuration
+# https://docs.github.com/en/code-security/reference/code-scanning/workflow-configuration-options
+#
+# CodeQL Docs:
+# https://codeql.github.com/docs/
+
+name: CodeQL
+
+permissions:
+ contents: read
+ security-events: write # needed to post results
+
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+
+# Cancel earlier, unfinished runs of this workflow on the same branch
+concurrency:
+ group: "${{ github.workflow }} @ ${{ github.ref_name }}"
+ cancel-in-progress: true
+
+jobs:
+ analyze:
+ name: Analyze (${{ matrix.language }})
+ runs-on: ubuntu-latest
+
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ # https://codeql.github.com/docs/codeql-overview/supported-languages-and-frameworks/
+ - language: cpp
+ build-mode: manual
+ - language: actions
+ build-mode: none
+
+ steps:
+ - name: "Checkout repository"
+ uses: actions/checkout@v7
+
+ - name: "Initialize CodeQL"
+ uses: github/codeql-action/init@v4
+ with:
+ languages: ${{ matrix.language }}
+ build-mode: ${{ matrix.build-mode }}
+ # https://docs.github.com/en/code-security/reference/code-scanning/codeql/codeql-queries/c-cpp-built-in-queries
+ # https://docs.github.com/en/code-security/reference/code-scanning/codeql/codeql-queries/actions-built-in-queries
+ queries: security-extended
+ dependency-caching: true
+
+ - name: "[C++] Install dependencies"
+ if: matrix.language == 'cpp' && matrix.build-mode == 'manual'
+ shell: bash
+ env:
+ DEBIAN_FRONTEND: noninteractive
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y --no-install-recommends \
+ cmake \
+ g++ \
+ libgl-dev \
+ liblzma-dev \
+ libmariadb-dev-compat \
+ libprotobuf-dev \
+ ninja-build \
+ protobuf-compiler \
+ qt6-declarative-dev \
+ qt6-multimedia-dev \
+ qt6-shadertools-dev \
+ qt6-svg-dev \
+ qt6-tools-dev \
+ qt6-tools-dev-tools \
+ qt6-websockets-dev
+
+# Minimize dependency install
+# Add ccache usage for faster compilation, (install ccache dep, actions/cache step + append DUSE_CCACHE=1 in cmake config, CCACHE env values)
+
+ - name: "[C++] Configure CMake"
+ if: matrix.language == 'cpp' && matrix.build-mode == 'manual'
+ shell: bash
+ run: cmake -S . -B build -G Ninja -DWITH_SERVER=1 -DCMAKE_BUILD_TYPE=Release
+
+ - name: "[C++] Build application"
+ if: matrix.language == 'cpp' && matrix.build-mode == 'manual'
+ shell: bash
+ run: cmake --build build
+
+ - name: "Perform CodeQL Analysis"
+ uses: github/codeql-action/analyze@v4
+ with:
+ category: "/language:${{ matrix.language }}"
diff --git a/.github/workflows/desktop-build.yml b/.github/workflows/desktop-build.yml
index 40cb372b2..f94569ac3 100644
--- a/.github/workflows/desktop-build.yml
+++ b/.github/workflows/desktop-build.yml
@@ -3,7 +3,7 @@ name: Build Desktop
permissions:
actions: write # needed to delete entries in GHA cache (update ccache)
attestations: write # needed to persist the attestation.
- contents: write
+ contents: write # needed for e.g. vcpkg dependency graph updates
id-token: write # needed for signing certificate in attestation
on:
@@ -34,7 +34,7 @@ on:
- 'vcpkg.json'
- 'vcpkg' # needed to match submodule bumps (gitlink)
-# Cancel earlier, unfinished runs of this workflow on the same branch (unless on release)
+# Cancel earlier, unfinished runs of this workflow on the same branch (unless on tag --> release)
concurrency:
group: "${{ github.workflow }} @ ${{ github.ref_name }}"
cancel-in-progress: ${{ github.ref_type != 'tag' }}
@@ -42,7 +42,7 @@ concurrency:
jobs:
configure:
name: Configure
- runs-on: ubuntu-slim
+ runs-on: ubuntu-slim # https://github.com/actions/runner-images/blob/main/images/ubuntu-slim/ubuntu-slim-Readme.md
outputs:
tag: ${{ steps.configure.outputs.tag }}
sha: ${{ steps.configure.outputs.sha }}
@@ -146,13 +146,13 @@ jobs:
name: ${{ matrix.distro }} ${{ matrix.version }}
needs: configure
- runs-on: ubuntu-latest
+ runs-on: ubuntu-latest # https://github.com/actions/runner-images
continue-on-error: ${{ matrix.allow-failure == 'yes' }}
timeout-minutes: 70
env:
CACHE: ${{ github.workspace }}/.cache/${{ matrix.distro }}${{ matrix.version }} # directory for caching docker image and ccache
CCACHE_EVICTION_AGE: 7d
- CCACHE_SIZE: 550M # space of all repo is 10Gi: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy
+ CCACHE_SIZE: 600M # space of all repo is 10Gi: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy
CMAKE_GENERATOR: 'Ninja'
NAME: ${{ matrix.distro }}${{ matrix.version }}
@@ -161,14 +161,11 @@ jobs:
uses: actions/checkout@v7
- name: "Restore compiler cache (ccache)"
- id: ccache_restore
+ id: restore_ccache
uses: actions/cache/restore@v6
- env:
- BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
with:
- key: ccache-${{ matrix.distro }}${{ matrix.version }}-${{ env.BRANCH_NAME }}
+ key: ccache-${{ matrix.distro }}${{ matrix.version }}
path: ${{ env.CACHE }}
- restore-keys: ccache-${{ matrix.distro }}${{ matrix.version }}-
- name: "Build ${{ matrix.distro }} ${{ matrix.version }} Docker image"
shell: bash
@@ -179,8 +176,12 @@ jobs:
shell: bash
run: |
source .ci/docker.sh
- RUN --server --debug --test --ccache "$CCACHE_SIZE" \
- --cmake-generator "$CMAKE_GENERATOR"
+ args=()
+ [[ $GITHUB_REF == "refs/heads/master" ]] && args+=(--evict-ccache "$CCACHE_EVICTION_AGE")
+ args+=(--ccache "$CCACHE_SIZE")
+ args+=(--cmake-generator "$CMAKE_GENERATOR")
+
+ RUN --server --debug --test "${args[@]}"
- name: "Build release package"
id: build
@@ -203,10 +204,10 @@ jobs:
# Delete used cache to emulate a ccache update. See https://github.com/actions/cache/issues/342
- name: "Delete remote compiler cache (ccache)"
- if: github.ref == 'refs/heads/master' && steps.ccache_restore.outputs.cache-hit
+ if: github.ref == 'refs/heads/master' && steps.restore_ccache.outputs.cache-hit
continue-on-error: true
env:
- CACHE_PRIMARY_KEY: ${{ steps.ccache_restore.outputs.cache-primary-key }}
+ CACHE_PRIMARY_KEY: ${{ steps.restore_ccache.outputs.cache-primary-key }}
GH_TOKEN: ${{ github.token }}
run: |
if gh cache delete --repo "$GITHUB_REPOSITORY" "$CACHE_PRIMARY_KEY"; then
@@ -217,7 +218,7 @@ jobs:
if: github.ref == 'refs/heads/master'
uses: actions/cache/save@v6
with:
- key: ${{ steps.ccache_restore.outputs.cache-primary-key }}
+ key: ${{ steps.restore_ccache.outputs.cache-primary-key }}
path: ${{ env.CACHE }}
- name: "Upload artifact"
@@ -262,8 +263,9 @@ jobs:
matrix:
include:
- os: macOS
- target: 13
- runner: macos-15-intel
+ target: 13 # EOL 2025-09-15
+ runner: macos-15-intel # https://github.com/actions/runner-images/blob/main/images/macos/macos-15-Readme.md
+ # macos-26-intel is very slow and fails in CPack during DMG config if not increasing Finder timeout
ccache_eviction_age: 7d
cmake_generator: Ninja
@@ -271,70 +273,67 @@ jobs:
override_target: 13
package_suffix: "-macOS13_Intel"
qt_version: 6.11.*
- qt_arch: clang_64
- qt_modules: qtimageformats qtmultimedia qtwebsockets
+ qt_modules: qtimageformats qtmultimedia qtwebsockets qtshadertools
soc: Intel
type: Release
use_ccache: 1
- xcode: "16.4"
+ xcode: "26.3"
- os: macOS
- target: 14
- runner: macos-14
+ target: 14 # EOL 2026-??
+ runner: macos-26 # https://github.com/actions/runner-images/blob/main/images/macos/macos-26-arm64-Readme.md
ccache_eviction_age: 7d
cmake_generator: Ninja
make_package: 1
+ override_target: 14
package_suffix: "-macOS14"
qt_version: 6.11.*
- qt_arch: clang_64
- qt_modules: qtimageformats qtmultimedia qtwebsockets
+ qt_modules: qtimageformats qtmultimedia qtwebsockets qtshadertools
soc: Apple
type: Release
use_ccache: 1
- xcode: "15.4"
+ xcode: "26.6"
- os: macOS
target: 15
- runner: macos-15
+ runner: macos-26 # https://github.com/actions/runner-images/blob/main/images/macos/macos-26-arm64-Readme.md
ccache_eviction_age: 7d
cmake_generator: Ninja
make_package: 1
+ override_target: 15
package_suffix: "-macOS15"
qt_version: 6.11.*
- qt_arch: clang_64
- qt_modules: qtimageformats qtmultimedia qtwebsockets
+ qt_modules: qtimageformats qtmultimedia qtwebsockets qtshadertools
soc: Apple
type: Release
use_ccache: 1
- xcode: "16.4"
+ xcode: "26.6"
- os: macOS
- target: 15
- runner: macos-15
+ target: 26
+ runner: macos-26 # https://github.com/actions/runner-images/blob/main/images/macos/macos-26-arm64-Readme.md
ccache_eviction_age: 7d
cmake_generator: Ninja
qt_version: 6.11.*
- qt_arch: clang_64
- qt_modules: qtimageformats qtmultimedia qtwebsockets
+ qt_modules: qtimageformats qtmultimedia qtwebsockets qtshadertools
soc: Apple
type: Debug
use_ccache: 1
- xcode: "16.4"
+ xcode: "26.6"
- os: Windows
target: 10
- runner: windows-2025
+ runner: windows-2025 # https://github.com/actions/runner-images/blob/main/images/windows/Windows2025-VS2026-Readme.md
cmake_generator: "Visual Studio 18 2026"
cmake_generator_platform: x64
make_package: 1
package_suffix: "-Win10"
qt_version: 6.11.*
- qt_arch: win64_msvc2022_64
- qt_modules: qtimageformats qtmultimedia qtwebsockets
+ qt_modules: qtimageformats qtmultimedia qtwebsockets qtshadertools
type: Release
name: ${{ matrix.os }} ${{ matrix.target }}${{ matrix.soc == 'Intel' && ' Intel' || '' }}${{ matrix.type == 'Debug' && ' Debug' || '' }}
@@ -343,7 +342,7 @@ jobs:
timeout-minutes: 100
env:
CCACHE_DIR: ${{ github.workspace }}/.cache/
- CCACHE_SIZE: 550M # space of all repo is 10Gi: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy
+ CCACHE_SIZE: 600M # space of all repo is 10Gi: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy
steps:
- name: "Checkout"
@@ -353,7 +352,6 @@ jobs:
- name: "[Windows] Add msbuild to PATH"
if: matrix.os == 'Windows'
- id: add-msbuild
uses: microsoft/setup-msbuild@v3
with:
msbuild-architecture: x64
@@ -364,14 +362,11 @@ jobs:
- name: "[macOS] Restore compiler cache (ccache)"
if: matrix.os == 'macOS' && matrix.use_ccache == 1
- id: ccache_restore
+ id: restore_ccache
uses: actions/cache/restore@v6
- env:
- BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
with:
- key: ccache-${{ matrix.runner }}-${{ matrix.soc }}-${{ matrix.type }}-${{ env.BRANCH_NAME }}
+ key: ccache-${{ matrix.runner }}_${{ matrix.override_target }}-Xcode${{ matrix.xcode }}
path: ${{ env.CCACHE_DIR }}
- restore-keys: ccache-${{ matrix.runner }}-${{ matrix.soc }}-${{ matrix.type }}-
# - name: "[macOS] Restore thin Qt ${{ matrix.qt_version }} libraries"
# if: matrix.os == 'macOS'
@@ -387,7 +382,6 @@ jobs:
if: matrix.os == 'macOS' && steps.restore_qt.outputs.cache-hit != 'true'
uses: jurplel/install-qt-action@v4
with:
- arch: ${{ matrix.qt_arch }}
cache: true
dir: ${{ github.workspace }}
modules: ${{ matrix.qt_modules }}
@@ -401,7 +395,7 @@ jobs:
# if: matrix.os == 'macOS' && steps.restore_qt.outputs.cache-hit != 'true'
# uses: actions/cache/save@v6
# with:
- # key: thin-qt-macos-${{ matrix.soc }}-${{ matrix.qt_version }}
+ # key: ${{ steps.restore_qt.outputs.cache-primary-key }}
# path: ${{ github.workspace }}/Qt
- name: "[Windows] Install Qt ${{ matrix.qt_version }}"
@@ -410,8 +404,8 @@ jobs:
with:
# Qt 6.11.0 only works with aqtinstall directly from git until aqtinstall 3.4 is released
aqtsource: git+https://github.com/miurahr/aqtinstall.git
- arch: ${{ matrix.qt_arch }}
cache: true
+ cache-key-prefix: Qt
modules: ${{ matrix.qt_modules }}
version: ${{ matrix.qt_version }}
@@ -436,6 +430,7 @@ jobs:
CMAKE_GENERATOR: ${{ matrix.cmake_generator }}
CMAKE_GENERATOR_PLATFORM: ${{ matrix.cmake_generator_platform }}
DEVELOPER_DIR: '/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer'
+ GITHUB_TOKEN: ${{ github.token }} # needed for vcpkg dependency graph updates, see VCPKG_FEATURE_FLAGS
MACOS_CERTIFICATE: ${{ secrets.PROD_MACOS_CERTIFICATE }}
MACOS_CERTIFICATE_NAME: ${{ secrets.PROD_MACOS_CERTIFICATE_NAME }}
MACOS_CERTIFICATE_PWD: ${{ secrets.PROD_MACOS_CERTIFICATE_PWD }}
@@ -446,25 +441,26 @@ jobs:
USE_CCACHE: ${{ matrix.use_ccache }}
VCPKG_BINARY_SOURCES: 'clear;files,${{ steps.vcpkg-cache.outputs.path }},readwrite'
VCPKG_DISABLE_METRICS: 1
+ VCPKG_FEATURE_FLAGS: dependencygraph
run: .ci/compile.sh --server --test --vcpkg
# Delete used cache to emulate a ccache update. See https://github.com/actions/cache/issues/342
- name: "[macOS] Delete remote compiler cache (ccache)"
- if: matrix.os == 'macOS' && matrix.use_ccache == 1 && github.ref == 'refs/heads/master' && steps.ccache_restore.outputs.cache-hit
+ if: matrix.os == 'macOS' && matrix.use_ccache == 1 && github.ref == 'refs/heads/master' && steps.restore_ccache.outputs.cache-hit
continue-on-error: true
env:
- CACHE_PRIMARY_KEY: ${{ steps.ccache_restore.outputs.cache-primary-key }}
+ CACHE_PRIMARY_KEY: ${{ steps.restore_ccache.outputs.cache-primary-key }}
GH_TOKEN: ${{ github.token }}
run: |
if gh cache delete --repo "$GITHUB_REPOSITORY" "$CACHE_PRIMARY_KEY"; then
echo "Cache deleted successfully"
fi
- - name: "[macOS] Save updated compiler cache (ccache)"
+ - name: "[macOS] Cache updated compiler cache (ccache)"
if: matrix.os == 'macOS' && matrix.use_ccache == 1 && github.ref == 'refs/heads/master'
uses: actions/cache/save@v6
with:
- key: ${{ steps.ccache_restore.outputs.cache-primary-key }}
+ key: ${{ steps.restore_ccache.outputs.cache-primary-key }}
path: ${{ env.CCACHE_DIR }}
- name: "[macOS] Sign app bundle"
diff --git a/.github/workflows/desktop-lint.yml b/.github/workflows/desktop-lint.yml
index 5f31ea59c..93ba79464 100644
--- a/.github/workflows/desktop-lint.yml
+++ b/.github/workflows/desktop-lint.yml
@@ -1,5 +1,8 @@
name: Code Style (C++)
+permissions:
+ contents: read
+
on:
# Push trigger not needed for linting, we do not allow direct pushes to master
pull_request:
diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml
index b479322d0..255e8b045 100644
--- a/.github/workflows/docker-release.yml
+++ b/.github/workflows/docker-release.yml
@@ -1,8 +1,8 @@
-name: Build Docker Image
+name: Build Docker
permissions:
- contents: read
- packages: write
+ contents: read # needed to checkout repo
+ packages: write # needed for interacting with GHCR
on:
push:
@@ -13,7 +13,10 @@ on:
- master
paths:
- '.github/workflows/docker-release.yml'
+ - '.dockerignore'
- 'Dockerfile'
+ - 'docker-compose.yml'
+ - 'docker-compose.yml.windows'
release:
types:
- released # publishing of stable releases
@@ -23,55 +26,157 @@ concurrency:
group: "${{ github.workflow }} @ ${{ github.ref_name }}"
cancel-in-progress: ${{ github.event_name != 'release' }}
+env:
+ GHCR_IMAGE: ghcr.io/cockatrice/servatrice
+ OCI_DESCRIPTION: Server for Cockatrice, a cross-platform virtual tabletop for multiplayer card games
+ OCI_TITLE: Servatrice
+ OCI_URL: https://cockatrice.github.io/
+
jobs:
- docker:
- name: amd64 & arm64
- if: ${{ github.repository_owner == 'Cockatrice' }}
- runs-on: ubuntu-latest
-
+ # Create one platform-specific image and publish its OCI image manifest per matrix job
+ build:
+ name: "Servatrice (${{ matrix.label }})"
+ if: github.repository_owner == 'Cockatrice'
+ runs-on: ${{ matrix.runner }}
+
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - label: x86
+ platform: linux/amd64
+ runner: ubuntu-latest # https://github.com/actions/runner-images
+
+ - label: arm
+ platform: linux/arm64
+ runner: ubuntu-24.04-arm # https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Arm64-Readme.md, replace with "ubuntu-latest-arm" once available
+
+ env:
+ CACHE_SCOPE: servatrice-${{ matrix.label }}
+
steps:
- name: "Checkout"
uses: actions/checkout@v7
- - name: "Docker metadata"
- id: metadata
- uses: docker/metadata-action@v6
- env:
- DOCKER_METADATA_ANNOTATIONS_LEVELS: index # needed for GHCR
- with:
- annotations: |
- org.opencontainers.image.title=Servatrice
- org.opencontainers.image.url=https://cockatrice.github.io/
- org.opencontainers.image.description=Server for Cockatrice, a cross-platform virtual tabletop for multiplayer card games
- images: |
- ghcr.io/cockatrice/servatrice
- labels: |
- org.opencontainers.image.title=Servatrice
- org.opencontainers.image.url=https://cockatrice.github.io/
- org.opencontainers.image.description=Server for Cockatrice, a cross-platform virtual tabletop for multiplayer card games
-
- - name: "Set up QEMU"
- uses: docker/setup-qemu-action@v4
-
- name: "Set up Docker buildx"
uses: docker/setup-buildx-action@v4
- - name: "Login to GitHub Container Registry"
- if: contains(github.event.release.tag_name, 'Release') && github.event.release.target_commitish == 'master'
+ - name: "Login to GitHub Container Registry (GHCR)"
+ if: github.event_name == 'release' && github.event.release.prerelease == false
+ id: login
uses: docker/login-action@v4
with:
- password: ${{ github.token }}
registry: ghcr.io
username: ${{ github.actor }}
+ password: ${{ github.token }}
- - name: "Build and push Docker image"
+ # Don't push for non-release triggers
+ - name: "Build image"
+ if: steps.login.outcome != 'success'
uses: docker/build-push-action@v7
with:
- annotations: ${{ steps.metadata.outputs.annotations }}
- cache-from: type=gha,scope=servatrice
- cache-to: type=gha,mode=max,scope=servatrice
+ cache-from: type=gha,scope=${{ env.CACHE_SCOPE }}
+ cache-to: type=gha,mode=max,scope=${{ env.CACHE_SCOPE }}
context: .
- labels: ${{ steps.metadata.outputs.labels }}
- platforms: linux/amd64,linux/arm64
- push: ${{ github.ref_type == 'tag' }}
- tags: ${{ steps.metadata.outputs.tags }}
+ platforms: ${{ matrix.platform }}
+ push: false
+
+ # Add OCI labels and push single-platform image by digest (without tags)
+ - name: "Build image and push by digest"
+ if: steps.login.outcome == 'success'
+ id: build
+ uses: docker/build-push-action@v7
+ with:
+ cache-from: type=gha,scope=${{ env.CACHE_SCOPE }}
+ cache-to: type=gha,mode=max,scope=${{ env.CACHE_SCOPE }}
+ context: .
+ labels: |
+ org.opencontainers.image.description=${{ env.OCI_DESCRIPTION }}
+ org.opencontainers.image.title=${{ env.OCI_TITLE }}
+ org.opencontainers.image.url=${{ env.OCI_URL }}
+ outputs: type=image,name=${{ env.GHCR_IMAGE }},name-canonical=true,push=true,push-by-digest=true
+ platforms: ${{ matrix.platform }}
+ provenance: mode=max # Do not pass secrets as build arguments with this option
+ sbom: true
+
+ - name: "Export digest"
+ if: steps.login.outcome == 'success'
+ env:
+ DIGEST: ${{ steps.build.outputs.digest }}
+ run: |
+ mkdir -p "$RUNNER_TEMP/digests"
+ touch "$RUNNER_TEMP/digests/${DIGEST#sha256:}"
+
+ - name: "Upload digest"
+ if: steps.login.outcome == 'success'
+ uses: actions/upload-artifact@v7
+ with:
+ archive: false
+ if-no-files-found: error
+ name: digest-${{ matrix.label }}
+ path: ${{ runner.temp }}/digests/*
+ retention-days: 1
+
+
+ # Create an OCI image index from the platform-specific image manifests
+ index:
+ name: "Publish multi-platform Servatrice image"
+ if: github.repository_owner == 'Cockatrice' && github.event_name == 'release' && github.event.release.prerelease == false
+ needs: build
+ runs-on: ubuntu-slim # https://github.com/actions/runner-images/blob/main/images/ubuntu-slim/ubuntu-slim-Readme.md
+
+ steps:
+ - name: "Download digests"
+ uses: actions/download-artifact@v8
+ with:
+ path: ${{ runner.temp }}/digests
+ pattern: digest-*
+ merge-multiple: true
+
+ - name: "Login to GitHub Container Registry (GHCR)"
+ uses: docker/login-action@v4
+ with:
+ registry: ghcr.io
+ username: ${{ github.actor }}
+ password: ${{ github.token }}
+
+ - name: "Docker metadata"
+ id: metadata
+ uses: docker/metadata-action@v6
+ with:
+ images: ${{ env.GHCR_IMAGE }}
+ flavor: |
+ latest=auto
+ tags: |
+ type=ref,event=tag # if semver, also: type=semver,pattern={{version}} / {{major}}.{{minor}}
+
+ # Add OCI annotations to image index and publish tags
+ - name: "Create image index"
+ env:
+ DOCKER_TAGS: ${{ steps.metadata.outputs.tags }}
+ working-directory: ${{ runner.temp }}/digests
+ run: |
+ TAG_ARGS=()
+ while IFS= read -r tag; do
+ TAG_ARGS+=(--tag "$tag")
+ done <<< "$DOCKER_TAGS"
+
+ DIGEST_ARGS=()
+ for digest in *; do
+ DIGEST_ARGS+=("$GHCR_IMAGE@sha256:$digest")
+ done
+
+ docker buildx imagetools create \
+ --prefer-index=true \
+ --annotation "index:org.opencontainers.image.description=$OCI_DESCRIPTION" \
+ --annotation "index:org.opencontainers.image.title=$OCI_TITLE" \
+ --annotation "index:org.opencontainers.image.url=$OCI_URL" \
+ "${TAG_ARGS[@]}" \
+ "${DIGEST_ARGS[@]}"
+
+ - name: "Inspect images"
+ env:
+ GITHUB_TAG: ${{ github.ref_name }}
+ run: |
+ docker buildx imagetools inspect "$GHCR_IMAGE:latest"
+ docker buildx imagetools inspect "$GHCR_IMAGE:$GITHUB_TAG"
diff --git a/.github/workflows/documentation-build.yml b/.github/workflows/documentation-build.yml
index 4b9ca79ab..419cbfbfb 100644
--- a/.github/workflows/documentation-build.yml
+++ b/.github/workflows/documentation-build.yml
@@ -1,5 +1,8 @@
name: Generate Docs
+permissions:
+ contents: read # write permission to the destination repo come from 'deploy_key'
+
on:
pull_request:
paths:
@@ -11,6 +14,11 @@ on:
- published # publishing of stable releases and pre-releases
workflow_dispatch:
+# Cancel earlier, unfinished runs of this workflow on the same branch (unless on release)
+concurrency:
+ group: "${{ github.workflow }} @ ${{ github.ref_name }}"
+ cancel-in-progress: ${{ github.event_name != 'release' }}
+
env:
COCKATRICE_REF: ${{ github.ref_name }} # tag name if the commit is tagged, otherwise branch name
diff --git a/.github/workflows/translations-pull.yml b/.github/workflows/translations-pull.yml
index a3db5f86d..71b0b4c22 100644
--- a/.github/workflows/translations-pull.yml
+++ b/.github/workflows/translations-pull.yml
@@ -1,5 +1,9 @@
name: Update Translations
+permissions:
+ contents: read
+ pull-requests: write
+
on:
pull_request:
paths:
diff --git a/.github/workflows/translations-push.yml b/.github/workflows/translations-push.yml
index c4d3f61fb..41a7aef40 100644
--- a/.github/workflows/translations-push.yml
+++ b/.github/workflows/translations-push.yml
@@ -1,5 +1,9 @@
name: Update Translation Source
+permissions:
+ contents: read
+ pull-requests: write
+
on:
pull_request:
paths:
diff --git a/.gitignore b/.gitignore
index 33c1ae31d..54939bdcf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,6 +6,7 @@ mysql.cnf
.DS_Store
.idea/
*.aps
+*.cache
cmake-build*
preferences
compile_commands.json
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c10e1db68..0da073464 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,23 +5,23 @@
# This file sets all the variables shared between the projects
# like the installation path, compilation flags etc..
-# cmake 3.16 is required if using qt6
-cmake_minimum_required(VERSION 3.10)
+# 3.16 required for Qt6 and target_precompile_headers()
+cmake_minimum_required(VERSION 3.16)
-# Early detect ccache
+# Use compiler cache (ccache)
option(USE_CCACHE "Cache the build results with ccache" ON)
# Treat warnings as errors (Debug builds only)
option(WARNING_AS_ERROR "Treat warnings as errors in debug builds" ON)
# Check for translation updates
option(UPDATE_TRANSLATIONS "Update translations on compile" OFF)
-# Compile servatrice
-option(WITH_SERVER "build servatrice" OFF)
-# Compile cockatrice
-option(WITH_CLIENT "build cockatrice" ON)
-# Compile oracle
-option(WITH_ORACLE "build oracle" ON)
+# Compile Cockatrice
+option(WITH_CLIENT "Build Cockatrice client" ON)
+# Compile Oracle
+option(WITH_ORACLE "Build Cockatrice card database tool (Oracle)" ON)
+# Compile Servatrice
+option(WITH_SERVER "Build Cockatrice server (Servatrice)" OFF)
# Compile tests
-option(TEST "build tests" OFF)
+option(TEST "Build tests" OFF)
# Use vcpkg regardless of OS
option(USE_VCPKG "Use vcpkg regardless of OS" OFF)
@@ -39,13 +39,24 @@ else()
)
endif()
-if(USE_CCACHE)
+# ccache does not support MSVC and must not auto-engage on Windows
+# (it is installed unintentionally on the Windows CI runner).
+# NOTE: this keys off the target OS, so a mingw/Ninja configuration on Windows
+# also opts out of ccache even though the GNUCXX branch below supports it.
+if(USE_CCACHE AND NOT WIN32)
find_program(CCACHE_PROGRAM ccache)
if(CCACHE_PROGRAM)
# Support Unix Makefiles and Ninja
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}")
+ # PCH-aware caching, matching .ci/compile.sh: without this ccache refuses
+ # to cache any TU that consumes a precompiled header, so every PCH-backed
+ # target recompiles from scratch on each build.
+ execute_process(COMMAND ${CCACHE_PROGRAM} --set-config sloppiness=pch_defines,time_macros)
message(STATUS "Found CCache ${CCACHE_PROGRAM}")
endif()
+elseif(USE_CCACHE AND WIN32)
+ # An explicit opt-in must not disappear silently on Windows.
+ message(STATUS "ccache disabled: not supported for the MSVC toolchain on Windows")
endif()
if(WIN32 OR USE_VCPKG)
@@ -64,10 +75,11 @@ if(WIN32 OR USE_VCPKG)
else()
set(QTDIR
""
- CACHE PATH "Path to Qt (e.g. C:/Qt/5.7/msvc2015_64)"
+ CACHE PATH "Path to Qt (e.g. C:/Qt/6.4.2/msvc2019_64)"
)
message(
- WARNING "QTDIR variable is missing. Please set this variable to specify path to Qt (e.g. C:/Qt/5.7/msvc2015_64)"
+ WARNING
+ "QTDIR variable is missing. Please set this variable to specify path to Qt (e.g. C:/Qt/6.4.2/msvc2019_64)"
)
endif()
endif()
@@ -174,7 +186,7 @@ elseif(CMAKE_COMPILER_IS_GNUCXX)
-Wno-error=delete-non-virtual-dtor
-Wno-error=sign-compare
-Wno-error=missing-declarations
- -Wno-error=sfinae-incomplete # GCC 16+: Qt MOC + protobuf forward decls trigger this
+ -Wno-error=sfinae-incomplete # GCC 16+: Qt MOC + protobuf forward decls trigger this
)
foreach(FLAG ${ADDITIONAL_DEBUG_FLAGS})
@@ -183,6 +195,9 @@ elseif(CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${FLAG}")
endif()
endforeach()
+
+ # Reduce compiler I/O by using pipes between stages instead of temp files
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pipe")
else()
# other: osx/llvm, bsd/llvm
set(CMAKE_CXX_FLAGS_RELEASE "-O2")
@@ -191,6 +206,9 @@ else()
else()
set(CMAKE_CXX_FLAGS_DEBUG "-g -O0 -Wall -Wextra")
endif()
+
+ # Reduce compiler I/O by using pipes between stages instead of temp files
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pipe")
endif()
# GNU systems need to define the Mersenne exponent for the RNG to compile w/o warning
@@ -238,11 +256,6 @@ if(WIN32)
find_package(OpenSSL REQUIRED)
if(OPENSSL_FOUND)
include_directories(${OPENSSL_INCLUDE_DIRS})
- else()
- message(
- WARNING
- "Could not find OpenSSL runtime libraries. They are not required for compiling, but needs to be available at runtime."
- )
endif()
endif()
@@ -280,11 +293,7 @@ if(UNIX)
if(CPACK_GENERATOR STREQUAL "RPM")
set(CPACK_RPM_PACKAGE_LICENSE "GPLv2")
set(CPACK_RPM_MAIN_COMPONENT "cockatrice")
- if(Qt6_FOUND)
- set(CPACK_RPM_PACKAGE_REQUIRES "protobuf, qt6-qttools, qt6-qtsvg, qt6-qtmultimedia, qt6-qtimageformats")
- elseif(Qt5_FOUND)
- set(CPACK_RPM_PACKAGE_REQUIRES "protobuf, qt5-qttools, qt5-qtsvg, qt5-qtmultimedia")
- endif()
+ set(CPACK_RPM_PACKAGE_REQUIRES "protobuf, qt6-qttools, qt6-qtsvg, qt6-qtmultimedia, qt6-qtimageformats")
set(CPACK_RPM_PACKAGE_GROUP "Amusements/Games")
set(CPACK_RPM_PACKAGE_URL "http://github.com/Cockatrice/Cockatrice")
# stop directories from making package conflicts
@@ -302,12 +311,8 @@ if(UNIX)
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
set(CPACK_DEBIAN_PACKAGE_SECTION "games")
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "http://github.com/Cockatrice/Cockatrice")
- if(Qt6_FOUND)
- set(CPACK_DEBIAN_PACKAGE_DEPENDS "libqt6multimedia6, libqt6svg6, qt6-qpa-plugins, qt6-image-formats-plugins")
- set(CPACK_DEBIAN_PACKAGE_RECOMMENDS "libqt6sql6-mysql") # for connecting servatrice to a mysql db
- elseif(Qt5_FOUND)
- set(CPACK_DEBIAN_PACKAGE_DEPENDS "libqt5multimedia5-plugins, libqt5svg5")
- endif()
+ set(CPACK_DEBIAN_PACKAGE_DEPENDS "libqt6multimedia6, libqt6svg6, qt6-qpa-plugins, qt6-image-formats-plugins")
+ set(CPACK_DEBIAN_PACKAGE_RECOMMENDS "libqt6sql6-mysql") # for connecting servatrice to a mysql db
endif()
endif()
elseif(WIN32)
diff --git a/Dockerfile b/Dockerfile
index 7c5c773c9..7d3deb5fb 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,35 +3,47 @@ FROM ubuntu:26.04 AS build
ARG DEBIAN_FRONTEND=noninteractive
-RUN apt-get update && apt-get install -y --no-install-recommends \
- build-essential \
- cmake \
- file \
- g++ \
- git \
- libmariadb-dev-compat \
- libprotobuf-dev \
- libqt6sql6-mysql \
- qt6-websockets-dev \
- protobuf-compiler \
- qt6-tools-dev \
- qt6-tools-dev-tools
+RUN apt-get update \
+ && apt-get install -y --no-install-recommends \
+ build-essential \
+ cmake \
+ ninja-build \
+ file \
+ g++ \
+ git \
+ libmariadb-dev-compat \
+ libprotobuf-dev \
+ libqt6sql6-mysql \
+ libssl-dev \
+ qt6-websockets-dev \
+ protobuf-compiler \
+ qt6-tools-dev \
+ qt6-tools-dev-tools
WORKDIR /src
COPY . .
-RUN mkdir build && cd build && \
- cmake .. -DWITH_SERVER=1 -DWITH_CLIENT=0 -DWITH_ORACLE=0 && \
- make -j$(nproc) && \
- make install
+RUN cmake \
+ -S . \
+ -B build \
+ -G Ninja \
+ -DWITH_CLIENT=0 \
+ -DWITH_ORACLE=0 \
+ -DWITH_SERVER=1 \
+ && cmake --build build \
+ && cmake --install build
# -------- Runtime Stage (clean) --------
FROM ubuntu:26.04
-RUN apt-get update && apt-get install -y --no-install-recommends \
- libprotobuf32t64 \
- libqt6sql6-mysql \
- libqt6websockets6 \
+ARG DEBIAN_FRONTEND=noninteractive
+
+RUN apt-get update \
+ && apt-get install -y --no-install-recommends \
+ libprotobuf32t64 \
+ libqt6sql6-mysql \
+ libqt6websockets6 \
+ libssl3 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
diff --git a/Doxyfile b/Doxyfile
index fc96b5f22..9b05682cc 100644
--- a/Doxyfile
+++ b/Doxyfile
@@ -349,7 +349,7 @@ OPTIMIZE_OUTPUT_SLICE = NO
#
# Note see also the list of default file extension mappings.
-EXTENSION_MAPPING =
+EXTENSION_MAPPING = proto=C++
# If the MARKDOWN_SUPPORT tag is enabled then Doxygen pre-processes all comments
# according to the Markdown format, which allows for more readable
@@ -1086,7 +1086,8 @@ FILE_PATTERNS = *.cc \
*.h++ \
*.markdown \
*.md \
- *.dox
+ *.dox \
+ *.proto
# The RECURSIVE tag can be used to specify whether or not subdirectories should
# be searched for input files as well.
@@ -1103,6 +1104,7 @@ RECURSIVE = YES
EXCLUDE = build/ \
cmake/ \
+ cmake-build-debug/ \
doc/doxygen/theme/docs/ \
doc/doxygen/theme/include/ \
vcpkg/
@@ -1195,7 +1197,7 @@ INPUT_FILTER =
# need to set EXTENSION_MAPPING for the extension otherwise the files are not
# properly processed by Doxygen.
-FILTER_PATTERNS =
+FILTER_PATTERNS = "*.proto=python doc/doxygen/filters/proto2cpp.py"
# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
# INPUT_FILTER) will also be used to filter the input files that are used for
diff --git a/README.md b/README.md
index 9a27601cd..5935bb540 100644
--- a/README.md
+++ b/README.md
@@ -149,16 +149,15 @@ You can then
The following flags (with their non-default values) can be passed to `cmake`:
-| Flag | Description |
-| --- | --- |
-| `-DWITH_SERVER=1` | Build Servatrice server |
-| `-DWITH_CLIENT=0` | Don't build Cockatrice client |
-| `-DWITH_ORACLE=0` | Don't build Oracle card database tool |
-| `-DCMAKE_BUILD_TYPE=Debug` | Compile in debug mode Enables extra logging output, debug symbols, and much more verbose compiler warnings |
-| `-DWARNING_AS_ERROR=0` | Don't treat compilation warnings as errors in debug mode |
-| `-DUPDATE_TRANSLATIONS=1` | Configure `make` to update the translation .ts files for new strings in the source code **Note:** `make clean` will remove the .ts files |
-| `-DTEST=1` | Enable regression tests **Note:** `make test` to run tests, *googletest* will be downloaded if not available |
-| `-DFORCE_USE_QT5=1` | Skip looking for Qt6 before trying to find Qt5 |
+| Flag | Description |
+| -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
+| `-DWITH_SERVER=1` | Build Servatrice server |
+| `-DWITH_CLIENT=0` | Don't build Cockatrice client |
+| `-DWITH_ORACLE=0` | Don't build Oracle card database tool |
+| `-DCMAKE_BUILD_TYPE=Debug` | Compile in debug mode Enables extra logging output, debug symbols, and much more verbose compiler warnings |
+| `-DWARNING_AS_ERROR=0` | Don't treat compilation warnings as errors in debug mode |
+| `-DUPDATE_TRANSLATIONS=1` | Configure `make` to update the translation .ts files for new strings in the source code **Note:** `make clean` will remove the .ts files |
+| `-DTEST=1` | Enable regression tests **Note:** `make test` to run tests, *googletest* will be downloaded if not available |
# Run
diff --git a/cmake/FindQtRuntime.cmake b/cmake/FindQtRuntime.cmake
index 485affe52..971c9094d 100644
--- a/cmake/FindQtRuntime.cmake
+++ b/cmake/FindQtRuntime.cmake
@@ -1,8 +1,7 @@
# Find a compatible Qt version
-# Inputs: WITH_SERVER, WITH_CLIENT, WITH_ORACLE, FORCE_USE_QT5
+# Inputs: WITH_SERVER, WITH_CLIENT, WITH_ORACLE
# Optional Input: QT6_DIR -- Hint as to where Qt6 lives on the system
-# Optional Input: QT5_DIR -- Hint as to where Qt5 lives on the system
-# Output: COCKATRICE_QT_VERSION_NAME -- Example values: Qt5, Qt6
+# Output: COCKATRICE_QT_VERSION_NAME -- Example values: Qt6
# Output: SERVATRICE_QT_MODULES
# Output: COCKATRICE_QT_MODULES
# Output: ORACLE_QT_MODULES
@@ -19,14 +18,17 @@ if(WITH_CLIENT)
Multimedia
Network
PrintSupport
+ ShaderTools
Svg
WebSockets
Widgets
Xml
+ Quick
+ QuickWidgets
)
endif()
if(WITH_ORACLE)
- set(_ORACLE_NEEDED Concurrent Network Svg Widgets)
+ set(_ORACLE_NEEDED Concurrent Network Svg Widgets Xml)
endif()
if(TEST)
# Union of Qt modules required across all test targets (independent of application targets).
@@ -39,69 +41,37 @@ set(REQUIRED_QT_COMPONENTS ${REQUIRED_QT_COMPONENTS} ${_SERVATRICE_NEEDED} ${_CO
)
list(REMOVE_DUPLICATES REQUIRED_QT_COMPONENTS)
-if(NOT FORCE_USE_QT5)
- # Linguist is now a component in Qt6 instead of an external package
- find_package(
- Qt6 6.4.2
- COMPONENTS ${REQUIRED_QT_COMPONENTS} Linguist
- QUIET HINTS ${Qt6_DIR}
- )
+# Linguist is now a component in Qt6 instead of an external package
+find_package(
+ Qt6 6.4.2
+ COMPONENTS ${REQUIRED_QT_COMPONENTS} Linguist
+ QUIET HINTS ${Qt6_DIR}
+)
+if(NOT Qt6_FOUND)
+ message(FATAL_ERROR "No suitable version of Qt was found")
endif()
-if(Qt6_FOUND)
- set(COCKATRICE_QT_VERSION_NAME Qt6)
+set(COCKATRICE_QT_VERSION_NAME Qt6)
- list(FIND Qt6LinguistTools_TARGETS Qt6::lrelease QT6_LRELEASE_INDEX)
- if(QT6_LRELEASE_INDEX EQUAL -1)
- message(WARNING "Qt6 lrelease not found.")
- endif()
-
- list(FIND Qt6LinguistTools_TARGETS Qt6::lupdate QT6_LUPDATE_INDEX)
- if(QT6_LUPDATE_INDEX EQUAL -1)
- message(WARNING "Qt6 lupdate not found.")
- endif()
-else()
- find_package(
- Qt5 5.15.2
- COMPONENTS ${REQUIRED_QT_COMPONENTS}
- QUIET HINTS ${Qt5_DIR}
- )
- if(Qt5_FOUND)
- set(COCKATRICE_QT_VERSION_NAME Qt5)
- else()
- message(FATAL_ERROR "No suitable version of Qt was found")
- endif()
-
- # Qt5 Linguist is in a separate package
- find_package(Qt5LinguistTools QUIET)
- if(Qt5LinguistTools_FOUND)
- if(NOT Qt5_LRELEASE_EXECUTABLE)
- message(WARNING "Qt5 lrelease not found.")
- endif()
- if(NOT Qt5_LUPDATE_EXECUTABLE)
- message(WARNING "Qt5 lupdate not found.")
- endif()
- else()
- message(WARNING "Linguist Tools not found, cannot handle translations")
- endif()
+list(FIND Qt6LinguistTools_TARGETS Qt6::lrelease QT6_LRELEASE_INDEX)
+if(QT6_LRELEASE_INDEX EQUAL -1)
+ message(WARNING "Qt6 lrelease not found.")
endif()
-if(Qt5_POSITION_INDEPENDENT_CODE OR Qt6_FOUND)
- set(CMAKE_POSITION_INDEPENDENT_CODE ON)
+list(FIND Qt6LinguistTools_TARGETS Qt6::lupdate QT6_LUPDATE_INDEX)
+if(QT6_LUPDATE_INDEX EQUAL -1)
+ message(WARNING "Qt6 lupdate not found.")
endif()
+set(CMAKE_POSITION_INDEPENDENT_CODE ON)
+
# Establish Qt Plugins directory & Library directories
get_target_property(QT_LIBRARY_DIR ${COCKATRICE_QT_VERSION_NAME}::Core LOCATION)
get_filename_component(QT_LIBRARY_DIR ${QT_LIBRARY_DIR} DIRECTORY)
-if(Qt6_FOUND)
- get_filename_component(QT_PLUGINS_DIR "${Qt6Core_DIR}/../../../${QT6_INSTALL_PLUGINS}" ABSOLUTE)
- get_filename_component(QT_LIBRARY_DIR "${QT_LIBRARY_DIR}/../../.." ABSOLUTE)
- if(UNIX AND APPLE)
- # Mac needs a bit more help finding all necessary components
- list(APPEND QT_LIBRARY_DIR "/usr/local/lib")
- endif()
-elseif(Qt5_FOUND)
- get_filename_component(QT_PLUGINS_DIR "${Qt5Core_DIR}/../../../plugins" ABSOLUTE)
- get_filename_component(QT_LIBRARY_DIR "${QT_LIBRARY_DIR}/.." ABSOLUTE)
+get_filename_component(QT_PLUGINS_DIR "${Qt6Core_DIR}/../../../${QT6_INSTALL_PLUGINS}" ABSOLUTE)
+get_filename_component(QT_LIBRARY_DIR "${QT_LIBRARY_DIR}/../../.." ABSOLUTE)
+if(UNIX AND APPLE)
+ # Mac needs a bit more help finding all necessary components
+ list(APPEND QT_LIBRARY_DIR "/usr/local/lib")
endif()
message(DEBUG "QT_PLUGINS_DIR = ${QT_PLUGINS_DIR}")
message(DEBUG "QT_LIBRARY_DIR = ${QT_LIBRARY_DIR}")
diff --git a/cmake/Info.plist b/cmake/Info.plist
index 614d82509..7f01befcb 100644
--- a/cmake/Info.plist
+++ b/cmake/Info.plist
@@ -1,38 +1,118 @@
-
+
+
+
+
+
+
CFBundleDevelopmentRegionEnglish
+
CFBundleExecutable${MACOSX_BUNDLE_EXECUTABLE_NAME}
+
CFBundleGetInfoString${MACOSX_BUNDLE_INFO_STRING}
+
CFBundleIconFile${MACOSX_BUNDLE_ICON_FILE}
+
CFBundleIdentifier${MACOSX_BUNDLE_GUI_IDENTIFIER}
+
CFBundleInfoDictionaryVersion6.0
+
CFBundleLongVersionString${MACOSX_BUNDLE_LONG_VERSION_STRING}
+
CFBundleName${MACOSX_BUNDLE_BUNDLE_NAME}
+
CFBundlePackageTypeAPPL
+
CFBundleShortVersionString${MACOSX_BUNDLE_SHORT_VERSION_STRING}
+
CFBundleSignature????
+
CFBundleVersion${MACOSX_BUNDLE_BUNDLE_VERSION}
- CSResourcesFileMapped
-
- LSRequiresCarbon
-
+
NSHumanReadableCopyright${MACOSX_BUNDLE_COPYRIGHT}
+
NSHighResolutionCapable
+
+
+
+
+
+ UTExportedTypeDeclarations
+
+
+ UTTypeIdentifier
+ org.cockatrice.deck
+
+ UTTypeDescription
+ Cockatrice Deck
+
+ UTTypeConformsTo
+
+ public.data
+
+
+ UTTypeTagSpecification
+
+ public.filename-extension
+
+ cod
+
+
+
+
+
+ CFBundleDocumentTypes
+
+
+ CFBundleTypeName
+ Cockatrice Deck
+
+ CFBundleTypeRole
+ Editor
+
+ LSHandlerRank
+ Default
+
+ LSItemContentTypes
+
+ org.cockatrice.deck
+
+
+
+
+
+
+
+
+ CFBundleURLTypes
+
+
+ CFBundleURLName
+ Cockatrice URL Scheme
+
+ CFBundleURLSchemes
+
+ cockatrice
+
+
+
+
diff --git a/cmake/pch/qtcore_pch.h b/cmake/pch/qtcore_pch.h
new file mode 100644
index 000000000..cc3dd12ee
--- /dev/null
+++ b/cmake/pch/qtcore_pch.h
@@ -0,0 +1,24 @@
+/** @file qtcore_pch.h
+ * @brief Precompiled header for all Qt targets (Qt Core only).
+ *
+ * Safe for every target that links Qt Core, including the headless
+ * Servatrice binary. Keep this header free of any widget/gui types.
+ */
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
diff --git a/cmake/pch/qtwidgets_pch.h b/cmake/pch/qtwidgets_pch.h
new file mode 100644
index 000000000..2c63f450e
--- /dev/null
+++ b/cmake/pch/qtwidgets_pch.h
@@ -0,0 +1,30 @@
+/** @file qtwidgets_pch.h
+ * @brief Precompiled header for GUI targets (Cockatrice client, Oracle).
+ *
+ * Includes the Qt Core precompiled header plus the heavy Gui, Widgets and
+ * Network layers that virtually every client translation unit re-parses.
+ * Do not use on Servatrice (headless, QT_DONT_USE_QTGUI).
+ */
+
+#include "qtcore_pch.h"
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
diff --git a/cockatrice/CMakeLists.txt b/cockatrice/CMakeLists.txt
index 18679664b..4263fc6e2 100644
--- a/cockatrice/CMakeLists.txt
+++ b/cockatrice/CMakeLists.txt
@@ -15,6 +15,9 @@ set(cockatrice_SOURCES
src/client/network/update/client/client_update_checker.cpp
src/client/network/update/client/release_channel.cpp
src/client/network/update/card_spoiler/spoiler_background_updater.cpp
+ src/client/latency_graph_widget.cpp
+ src/client/latency_status_widget.cpp
+ src/client/lag_monitor.cpp
src/client/sound_engine.cpp
src/client/settings/cache_settings.cpp
src/client/settings/card_counter_settings.cpp
@@ -36,13 +39,16 @@ set(cockatrice_SOURCES
src/interface/widgets/dialogs/dlg_forgot_password_challenge.cpp
src/interface/widgets/dialogs/dlg_forgot_password_request.cpp
src/interface/widgets/dialogs/dlg_forgot_password_reset.cpp
+ src/interface/widgets/dialogs/dlg_invite_to_game.cpp
src/interface/widgets/dialogs/dlg_load_deck.cpp
src/interface/widgets/dialogs/dlg_load_deck_from_clipboard.cpp
src/interface/widgets/dialogs/dlg_load_deck_from_website.cpp
src/interface/widgets/dialogs/dlg_load_remote_deck.cpp
src/interface/widgets/dialogs/dlg_local_game_options.cpp
src/interface/widgets/dialogs/dlg_manage_sets.cpp
+ src/interface/widgets/dialogs/dlg_my_reports.cpp
src/interface/widgets/dialogs/dlg_register.cpp
+ src/interface/widgets/dialogs/dlg_report_user.cpp
src/interface/widgets/dialogs/dlg_select_set_for_cards.cpp
src/interface/widgets/dialogs/dlg_settings.cpp
src/interface/widgets/dialogs/dlg_startup_card_check.cpp
@@ -97,7 +103,11 @@ set(cockatrice_SOURCES
src/game_graphics/player/menu/rfg_menu.cpp
src/game_graphics/player/menu/say_menu.cpp
src/game_graphics/player/menu/sideboard_menu.cpp
+ src/game_graphics/player/menu/tally_menu.cpp
src/game_graphics/player/menu/utility_menu.cpp
+ src/game_graphics/tally/stats_tally.cpp
+ src/game_graphics/tally/subtype_tally.cpp
+ src/game_graphics/tally/tally.cpp
src/game/player/player_actions.cpp
src/game_graphics/player/player_area.cpp
src/game_graphics/player/player_dialogs.cpp
@@ -131,9 +141,19 @@ set(cockatrice_SOURCES
src/interface/card_picture_loader/card_picture_loader_worker.cpp
src/interface/card_picture_loader/card_picture_loader_worker_work.cpp
src/interface/card_picture_loader/card_picture_to_load.cpp
+ src/interface/intents/intent.cpp
+ src/interface/intents/intent.h
+ src/interface/intents/intent_open_local_deck.cpp
+ src/interface/intents/intent_open_local_deck.h
+ src/interface/intents/intent_wait_for_database_load.cpp
+ src/interface/intents/intent_wait_for_database_load.h
src/interface/layouts/flow_layout.cpp
src/interface/layouts/overlap_layout.cpp
+ src/interface/widgets/utility/card_completer_delegate.cpp
+ src/interface/widgets/utility/card_completer_styler.cpp
+ src/interface/widgets/utility/completer_utils.cpp
src/interface/widgets/utility/line_edit_completer.cpp
+ src/interface/widgets/utility/reversed_completer_model.cpp
src/interface/pixel_map_generator.cpp
src/interface/theme_config.cpp
src/interface/theme_manager.cpp
@@ -145,6 +165,8 @@ set(cockatrice_SOURCES
src/interface/widgets/cards/additional_info/color_identity_widget.cpp
src/interface/widgets/cards/additional_info/mana_cost_widget.cpp
src/interface/widgets/cards/additional_info/mana_symbol_widget.cpp
+ src/interface/widgets/cards/art_crop_attribution.cpp
+ src/interface/widgets/cards/card_art_utils.cpp
src/interface/widgets/cards/card_group_display_widgets/card_group_display_widget.cpp
src/interface/widgets/cards/card_group_display_widgets/flat_card_group_display_widget.cpp
src/interface/widgets/cards/card_group_display_widgets/overlapped_card_group_display_widget.cpp
@@ -193,6 +215,7 @@ set(cockatrice_SOURCES
src/interface/widgets/deck_editor/deck_editor_printing_selector_dock_widget.cpp
src/interface/widgets/deck_editor/deck_list_style_proxy.cpp
src/interface/widgets/deck_editor/deck_state_manager.cpp
+ src/interface/widgets/deck_editor/deck_zone_dialog.cpp
src/interface/widgets/deck_editor/printing_disabled_info_widget.cpp
src/interface/widgets/general/background_sources.cpp
src/interface/widgets/general/display/background_plate_widget.cpp
@@ -209,6 +232,7 @@ set(cockatrice_SOURCES
src/interface/widgets/general/display/charts/bars/segmented_bar_widget.cpp
src/interface/widgets/general/display/charts/pies/color_pie.cpp
src/interface/widgets/general/home_styled_button.cpp
+ src/interface/widgets/general/home_tab_button_color.h
src/interface/widgets/general/home_widget.cpp
src/interface/widgets/general/layout_containers/flow_widget.cpp
src/interface/widgets/general/layout_containers/overlap_control_widget.cpp
@@ -224,12 +248,19 @@ set(cockatrice_SOURCES
src/interface/widgets/printing_selector/printing_selector_card_selection_widget.cpp
src/interface/widgets/printing_selector/printing_selector_card_sorting_widget.cpp
src/interface/widgets/printing_selector/set_name_and_collectors_number_display_widget.cpp
+ src/interface/widgets/playmat/playmat_collection_dialog.cpp
+ src/interface/widgets/playmat/playmat_collection_dialog.h
+ src/interface/widgets/playmat/playmat_preview_widget.cpp
+ src/interface/widgets/playmat/playmat_settings_dialog.cpp
src/interface/widgets/quick_settings/settings_button_widget.cpp
src/interface/widgets/quick_settings/settings_popup_widget.cpp
src/interface/widgets/replay/replay_manager.cpp
+ src/interface/widgets/replay/replay_quick_settings_widget.cpp
src/interface/widgets/replay/replay_timeline_widget.cpp
+ src/interface/widgets/replay/replay_widget.cpp
src/interface/widgets/server/chat_view/chat_view.cpp
src/interface/widgets/server/game_filter_configs.cpp
+ src/interface/widgets/server/game_link.cpp
src/interface/widgets/server/game_selector.cpp
src/interface/widgets/server/game_selector_quick_filter_toolbar.cpp
src/interface/widgets/server/games_model.cpp
@@ -242,19 +273,26 @@ set(cockatrice_SOURCES
src/interface/widgets/server/user/user_context_menu.cpp
src/interface/widgets/server/user/user_info_box.cpp
src/interface/widgets/server/user/user_info_connection.cpp
+ src/interface/widgets/server/user/user_list_dialog.cpp
src/interface/widgets/server/user/user_list_manager.cpp
src/interface/widgets/server/user/user_list_painter.cpp
+ src/interface/widgets/server/user/user_list_panel_widget.cpp
src/interface/widgets/server/user/user_list_widget.cpp
+ src/interface/widgets/settings_page/abstract_settings_page.cpp
src/interface/widgets/settings_page/appearance_settings_page.cpp
src/interface/widgets/settings_page/deck_editor_settings_page.cpp
src/interface/widgets/settings_page/general_settings_page.cpp
src/interface/widgets/settings_page/messages_settings_page.cpp
+ src/interface/widgets/settings_page/settings_search_delegate.cpp
+ src/interface/widgets/settings_page/settings_search_model.cpp
src/interface/widgets/settings_page/shortcut_settings_page.cpp
src/interface/widgets/settings_page/sound_settings_page.cpp
src/interface/widgets/settings_page/storage_settings_page.cpp
src/interface/widgets/settings_page/user_interface_settings_page.cpp
src/interface/widgets/utility/custom_line_edit.cpp
src/interface/widgets/utility/get_text_with_max.cpp
+ src/interface/widgets/utility/report_utils.cpp
+ src/interface/widgets/utility/report_utils.h
src/interface/widgets/utility/sequence_edit.cpp
src/interface/widgets/utility/visibility_change_listener.cpp
src/interface/widgets/utility/visibility_change_listener.h
@@ -280,13 +318,16 @@ set(cockatrice_SOURCES
src/interface/widgets/visual_deck_storage/deck_preview/deck_preview_tag_item_widget.cpp
src/interface/widgets/visual_deck_storage/deck_preview/deck_preview_widget.cpp
src/interface/widgets/visual_deck_storage/visual_deck_storage_folder_display_widget.cpp
+ src/interface/widgets/visual_deck_storage/visual_deck_storage_model.cpp
src/interface/widgets/visual_deck_storage/visual_deck_storage_quick_settings_widget.cpp
src/interface/widgets/visual_deck_storage/visual_deck_storage_search_widget.cpp
+ src/interface/widgets/visual_deck_storage/visual_deck_storage_sort_filter_proxy_model.cpp
src/interface/widgets/visual_deck_storage/visual_deck_storage_sort_widget.cpp
src/interface/widgets/visual_deck_storage/visual_deck_storage_tag_filter_widget.cpp
src/interface/widgets/visual_deck_storage/visual_deck_storage_widget.cpp
src/interface/window_main.cpp
src/main.cpp
+ src/single_instance_manager.cpp
src/interface/widgets/tabs/abstract_tab_deck_editor.cpp
src/interface/widgets/tabs/api/archidekt/tab_archidekt.cpp
src/interface/widgets/tabs/api/archidekt/api_response/archidekt_deck_listing_api_response.cpp
@@ -302,6 +343,13 @@ set(cockatrice_SOURCES
src/interface/widgets/tabs/api/archidekt/display/archidekt_api_response_deck_entry_display_widget.cpp
src/interface/widgets/tabs/api/archidekt/display/archidekt_api_response_deck_listings_display_widget.cpp
src/interface/widgets/tabs/api/archidekt/display/archidekt_deck_preview_image_display_widget.cpp
+ src/interface/widgets/tabs/api/commander_spellbook/api_response/card_in_deck_request.cpp
+ src/interface/widgets/tabs/api/commander_spellbook/api_response/commander_spellbook_deck_request.cpp
+ src/interface/widgets/tabs/api/commander_spellbook/api_response/commander_spellbook_card_result.cpp
+ src/interface/widgets/tabs/api/commander_spellbook/api_response/commander_spellbook_variant_result.cpp
+ src/interface/widgets/tabs/api/commander_spellbook/api_response/commander_spellbook_estimate_bracket_result.cpp
+ src/interface/widgets/tabs/api/commander_spellbook/commander_spellbook_bracket_explainer.cpp
+ src/interface/widgets/tabs/api/commander_spellbook/commander_spellbook_api_accessor.cpp
src/interface/widgets/tabs/api/edhrec/api_response/archidekt_links/edhrec_api_response_archidekt_links.cpp
src/interface/widgets/tabs/api/edhrec/api_response/average_deck/edhrec_average_deck_api_response.cpp
src/interface/widgets/tabs/api/edhrec/api_response/average_deck/edhrec_deck_api_response.cpp
@@ -334,10 +382,13 @@ set(cockatrice_SOURCES
src/interface/widgets/tabs/tab_card_art_rules.cpp
src/interface/widgets/tabs/tab_deck_editor.cpp
src/interface/widgets/tabs/tab_deck_storage.cpp
+ src/interface/widgets/tabs/tab_developer.cpp
src/interface/widgets/tabs/tab_game.cpp
src/interface/widgets/tabs/tab_home.cpp
src/interface/widgets/tabs/tab_logs.cpp
src/interface/widgets/tabs/tab_message.cpp
+ src/interface/widgets/tabs/tab_moderation.cpp
+ src/interface/widgets/tabs/tab_report.cpp
src/interface/widgets/tabs/tab_replays.cpp
src/interface/widgets/tabs/tab_room.cpp
src/interface/widgets/tabs/tab_server.cpp
@@ -348,12 +399,53 @@ set(cockatrice_SOURCES
src/interface/widgets/tabs/visual_deck_storage/tab_deck_storage_visual.cpp
src/interface/key_signals.cpp
src/interface/logger.cpp
+ src/interface/widgets/tabs/api/commander_spellbook/commander_bracket_service.cpp
+ src/interface/widgets/tabs/api/commander_spellbook/commander_bracket_widget.cpp
+ src/interface/widgets/tabs/api/commander_spellbook/handle_commander_brackets.cpp
+ src/interface/widgets/onboarding/banner_shader_config.h
+ src/interface/widgets/onboarding/brand_colors.h
+ src/interface/widgets/onboarding/first_run_wizard.cpp
+ src/interface/widgets/onboarding/first_run_wizard.h
+ src/interface/widgets/onboarding/first_run_wizard_page.cpp
+ src/interface/widgets/onboarding/first_run_wizard_page.h
+ src/interface/widgets/onboarding/pages/account_setup_page.cpp
+ src/interface/widgets/onboarding/pages/account_setup_page.h
+ src/interface/widgets/onboarding/pages/card_database_setup_page.cpp
+ src/interface/widgets/onboarding/pages/card_database_setup_page.h
+ src/interface/widgets/onboarding/pages/finish_page.cpp
+ src/interface/widgets/onboarding/pages/finish_page.h
+ src/interface/widgets/onboarding/pages/preferences_setup_page.cpp
+ src/interface/widgets/onboarding/pages/preferences_setup_page.h
+ src/interface/widgets/onboarding/pages/theme_setup_page.cpp
+ src/interface/widgets/onboarding/pages/theme_setup_page.h
+ src/interface/widgets/onboarding/pages/welcome_page.cpp
+ src/interface/widgets/onboarding/pages/welcome_page.h
+ src/interface/widgets/onboarding/shader_banner_widget.cpp
+ src/interface/widgets/onboarding/shader_banner_widget.h
+ src/interface/widgets/onboarding/step_indicator_widget.cpp
+ src/interface/widgets/onboarding/step_indicator_widget.h
src/interface/widgets/tabs/api/edhrec/display/commander/edhrec_commander_api_response_bracket_navigation_widget.cpp
src/interface/widgets/tabs/api/edhrec/display/commander/edhrec_commander_api_response_bracket_navigation_widget.h
src/interface/widgets/tabs/api/edhrec/display/commander/edhrec_commander_api_response_budget_navigation_widget.cpp
src/interface/widgets/tabs/api/edhrec/display/commander/edhrec_commander_api_response_budget_navigation_widget.h
src/interface/widgets/utility/compact_push_button.cpp
src/interface/widgets/utility/compact_push_button.h
+ src/single_instance_manager.h
+ src/client/url_scheme_event_filter.h
+ src/interface/intents/intent_connect_to_server.cpp
+ src/interface/intents/intent_connect_to_server.h
+ src/interface/intents/intent_disconnect_from_server.cpp
+ src/interface/intents/intent_disconnect_from_server.h
+ src/interface/intents/intent_join_server_game.cpp
+ src/interface/intents/intent_join_server_game.h
+ src/interface/intents/intent_join_server_room.cpp
+ src/interface/intents/intent_join_server_room.h
+ src/interface/intents/intent_login.cpp
+ src/interface/intents/intent_login.h
+ src/interface/intents/intent_open_server_room_by_name.cpp
+ src/interface/intents/intent_open_server_room_by_name.h
+ src/interface/intents/url_parser.cpp
+ src/interface/intents/url_parser.h
src/interface/widgets/server/user/user_info_popup.cpp
src/interface/widgets/server/user/user_info_popup.h
)
@@ -397,11 +489,7 @@ if(APPLE)
set(cockatrice_SOURCES ${cockatrice_SOURCES} ${CMAKE_CURRENT_SOURCE_DIR}/resources/appicon.icns)
endif(APPLE)
-if(Qt6_FOUND)
- qt6_add_resources(cockatrice_RESOURCES_RCC ${cockatrice_RESOURCES})
-elseif(Qt5_FOUND)
- qt5_add_resources(cockatrice_RESOURCES_RCC ${cockatrice_RESOURCES})
-endif()
+qt6_add_resources(cockatrice_RESOURCES_RCC ${cockatrice_RESOURCES})
# Declare path variables
set(ICONDIR
@@ -413,71 +501,62 @@ set(DESKTOPDIR
CACHE STRING "desktop file destination"
)
+set(MIMEDIR
+ share/mime/packages
+ CACHE STRING "mime file destination"
+)
+
set(COCKATRICE_MAC_QM_INSTALL_DIR "cockatrice.app/Contents/Resources/translations")
set(COCKATRICE_UNIX_QM_INSTALL_DIR "share/cockatrice/translations")
set(COCKATRICE_WIN32_QM_INSTALL_DIR "translations")
-if(Qt6_FOUND)
- qt6_add_executable(
- cockatrice
- WIN32
- MACOSX_BUNDLE
- ${cockatrice_SOURCES}
- ${cockatrice_RESOURCES_RCC}
- ${cockatrice_MOC_SRCS}
- MANUAL_FINALIZATION
- )
-elseif(Qt5_FOUND)
- # Qt5 Translations need to be linked at executable creation time
- if(Qt5LinguistTools_FOUND)
- if(UPDATE_TRANSLATIONS)
- qt5_create_translation(cockatrice_QM ${translate_SRCS} ${cockatrice_TS})
- else()
- qt5_add_translation(cockatrice_QM ${cockatrice_TS})
- endif()
- endif()
- add_executable(
- cockatrice WIN32 MACOSX_BUNDLE ${cockatrice_MOC_SRCS} ${cockatrice_QM} ${cockatrice_RESOURCES_RCC}
- ${cockatrice_SOURCES}
- )
- if(UNIX)
- if(APPLE)
- install(FILES ${cockatrice_QM} DESTINATION ${COCKATRICE_MAC_QM_INSTALL_DIR})
- else()
- install(FILES ${cockatrice_QM} DESTINATION ${COCKATRICE_UNIX_QM_INSTALL_DIR})
- endif()
- elseif(WIN32)
- install(FILES ${cockatrice_QM} DESTINATION ${COCKATRICE_WIN32_QM_INSTALL_DIR})
- endif()
-endif()
+qt6_add_executable(
+ cockatrice
+ WIN32
+ MACOSX_BUNDLE
+ ${cockatrice_SOURCES}
+ ${cockatrice_RESOURCES_RCC}
+ ${cockatrice_MOC_SRCS}
+ MANUAL_FINALIZATION
+)
-if(Qt5_FOUND)
- target_link_libraries(
- cockatrice
- libcockatrice_card
- libcockatrice_deck_list
- libcockatrice_filters
- libcockatrice_utility
- libcockatrice_network
- libcockatrice_models
- libcockatrice_rng
- libcockatrice_settings
- ${COCKATRICE_QT_MODULES}
- )
-else()
- target_link_libraries(
- cockatrice
- PUBLIC libcockatrice_card
- libcockatrice_deck_list
- libcockatrice_filters
- libcockatrice_utility
- libcockatrice_network
- libcockatrice_models
- libcockatrice_rng
- libcockatrice_settings
- ${COCKATRICE_QT_MODULES}
- )
-endif()
+target_precompile_headers(cockatrice PRIVATE "${CMAKE_SOURCE_DIR}/cmake/pch/qtwidgets_pch.h")
+
+qt6_add_shaders(
+ cockatrice
+ "onboarding_shaders"
+ PREFIX
+ "/onboarding/shaders"
+ BASE
+ "src/interface/widgets/onboarding/shaders"
+ FILES
+ src/interface/widgets/onboarding/shaders/brand_banner.frag
+ src/interface/widgets/onboarding/shaders/brand_plate.frag
+)
+
+qt6_add_resources(
+ cockatrice
+ "onboarding_qml"
+ PREFIX
+ "/onboarding/qml"
+ BASE
+ "src/interface/widgets/onboarding/qml"
+ FILES
+ src/interface/widgets/onboarding/qml/BrandBanner.qml
+)
+
+target_link_libraries(
+ cockatrice
+ PUBLIC libcockatrice_card
+ libcockatrice_deck_list
+ libcockatrice_filters
+ libcockatrice_utility
+ libcockatrice_network
+ libcockatrice_models
+ libcockatrice_rng
+ libcockatrice_settings
+ ${COCKATRICE_QT_MODULES}
+)
if(UNIX)
if(APPLE)
@@ -497,6 +576,23 @@ if(UNIX)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/resources/cockatrice.png DESTINATION ${ICONDIR}/hicolor/48x48/apps)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/resources/cockatrice.svg DESTINATION ${ICONDIR}/hicolor/scalable/apps)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/cockatrice.desktop DESTINATION ${DESKTOPDIR})
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/cockatrice-cod.xml DESTINATION ${MIMEDIR})
+
+ # Refresh the freedesktop databases so the file associations and scheme
+ # handler register without requiring the user to run them manually. The
+ # tools may be missing on minimal systems; that is fine, packaging systems
+ # usually refresh these databases through their own triggers.
+ find_program(UPDATE_MIME_DATABASE update-mime-database)
+ if(UPDATE_MIME_DATABASE)
+ install(CODE "execute_process(COMMAND \"${UPDATE_MIME_DATABASE}\" \"${CMAKE_INSTALL_PREFIX}/share/mime\")")
+ endif()
+
+ find_program(UPDATE_DESKTOP_DATABASE update-desktop-database)
+ if(UPDATE_DESKTOP_DATABASE)
+ install(
+ CODE "execute_process(COMMAND \"${UPDATE_DESKTOP_DATABASE}\" \"${CMAKE_INSTALL_PREFIX}/share/applications\")"
+ )
+ endif()
endif()
elseif(WIN32)
install(TARGETS cockatrice RUNTIME DESTINATION ./)
@@ -507,7 +603,7 @@ if(APPLE)
set(plugin_dest_dir cockatrice.app/Contents/Plugins)
set(qtconf_dest_dir cockatrice.app/Contents/Resources)
- # Qt plugins: audio (Qt5), iconengines, imageformats, multimedia (Qt6), platforms, printsupport (Qt5), styles, tls (Qt6)
+ # Qt plugins: audio, iconengines, imageformats, multimedia, platforms, printsupport, styles, tls
install(
DIRECTORY "${QT_PLUGINS_DIR}/"
DESTINATION ${plugin_dest_dir}
@@ -574,7 +670,7 @@ if(WIN32)
PATTERN "*.ini"
)
- # Qt plugins: audio (Qt5), iconengines, imageformats, multimedia (Qt6) platforms, printsupport (Qt5), styles, tls (Qt6)
+ # Qt plugins: audio, iconengines, imageformats, multimedia, platforms, printsupport, styles, tls
install(
DIRECTORY "${QT_PLUGINS_DIR}/"
DESTINATION ${plugin_dest_dir}
@@ -630,7 +726,7 @@ Data = Resources\")
endif()
endif()
-if(Qt6_FOUND AND Qt6LinguistTools_FOUND)
+if(Qt6LinguistTools_FOUND)
#Qt6 Translations happen after the executable is built up
if(UPDATE_TRANSLATIONS)
qt6_add_translations(
@@ -657,6 +753,4 @@ if(Qt6_FOUND AND Qt6LinguistTools_FOUND)
endif()
endif()
-if(Qt6_FOUND)
- qt6_finalize_target(cockatrice)
-endif()
+qt6_finalize_target(cockatrice)
diff --git a/cockatrice/cockatrice-cod.xml b/cockatrice/cockatrice-cod.xml
new file mode 100644
index 000000000..1a0199433
--- /dev/null
+++ b/cockatrice/cockatrice-cod.xml
@@ -0,0 +1,7 @@
+
+
+
+ Cockatrice Deck File
+
+
+
diff --git a/cockatrice/cockatrice.desktop b/cockatrice/cockatrice.desktop
index 092d84ef5..4b15fa9c1 100644
--- a/cockatrice/cockatrice.desktop
+++ b/cockatrice/cockatrice.desktop
@@ -3,6 +3,8 @@
Version=1.0
Type=Application
Name=Cockatrice
-Exec=cockatrice
+Exec=cockatrice %U
Icon=cockatrice
Categories=Game;CardGame;
+MimeType=application/x-cockatrice;
+X-Scheme-Handler/cockatrice=true
diff --git a/cockatrice/cockatrice.qrc b/cockatrice/cockatrice.qrc
index 9c34929b7..14cf15b2f 100644
--- a/cockatrice/cockatrice.qrc
+++ b/cockatrice/cockatrice.qrc
@@ -2,6 +2,7 @@
resources/cardback.svgresources/cockatrice.svg
+ resources/cockatrice-logo-white.svgresources/hand.svgresources/hr.jpg
@@ -62,6 +63,8 @@
resources/icons/mana/W.svgresources/backgrounds/home.png
+ resources/backgrounds/home-dark.png
+ resources/backgrounds/home-light.pngresources/backgrounds/card_triplet.svgresources/backgrounds/placeholder_printing_selector.svg
@@ -362,6 +365,8 @@
resources/usericons/pawn_single.svgresources/usericons/pawn_double.svg
+ resources/usericons/pawn_dev_single.svg
+ resources/usericons/pawn_dev_double.svgresources/usericons/pawn_donator_single.svgresources/usericons/pawn_donator_double.svgresources/usericons/pawn_judge_single.svg
diff --git a/cockatrice/cockatrice_en@source.ts b/cockatrice/cockatrice_en@source.ts
index 810b345df..e06972ddc 100644
--- a/cockatrice/cockatrice_en@source.ts
+++ b/cockatrice/cockatrice_en@source.ts
@@ -4,7 +4,7 @@
AbstractCounter
-
+ &Set counter...
@@ -12,12 +12,12 @@
AbstractCounterDialog
-
+ Set counter
-
+ New value for counter '%1':
@@ -38,60 +38,60 @@
AbstractTabDeckEditor
-
+ Open in new tab
-
+ Are you sure?
-
+ The decklist has been modified.
Do you want to save the changes?
-
-
-
-
-
-
+
+
+
+
+
+ Error
-
+ Could not open deck at %1
-
+ Could not save remote deck
-
-
+
+ The deck could not be saved.
Please check that the directory is writable and try again.
-
+ Save deck
-
+ The deck could not be saved.
-
+ There are no cards in your deck to be exported
@@ -107,12 +107,12 @@ Please check that the directory is writable and try again.
AdminNotesDialog
-
+ Update Notes
-
+ Admin Notes for %1
@@ -129,172 +129,227 @@ Please check that the directory is writable and try again.
Sideboard
+
+
+ Tokens
+
+ AppearanceSettingsPage
-
+ seconds
-
+ Error
-
+ Could not create themes directory at '%1'.
-
+ Theme settings
-
+ Current theme:
-
+ Open themes folder
-
+ Home tab background source:
-
+ Home tab background shuffle frequency:
-
+ Disabled
-
- Display card name of background in bottom right:
-
-
-
-
+ Menu settings
-
+ Show keyboard shortcuts in right-click menus
-
+ Show game filter toolbar above list in room tab
-
+ Card rendering
-
+ Display card names on cards having a picture
-
+ Auto-Rotate cards with sideways layout
-
+ Override all card art with personal set preference (Pre-ProviderID change behavior)
-
+
+ Light
+
+
+
+
+ Dark
+
+
+
+
+ System
+
+
+
+
+ Active theme palette:
+
+
+
+
+ Edit theme palette
+
+
+
+
+ Home tab settings
+
+
+
+
+ Display card name of background in bottom right
+
+
+
+
+ Styling settings
+
+
+
+
+ Style user list
+
+
+
+
+ Card printings
+
+
+
+ Bump sets that the deck contains cards from to the top in the printing selector
-
+ Scale cards on mouse over
-
+ Use rounded card corners
-
+
+ Card layout
+
+
+
+ Minimum overlap percentage of cards on the stack and in vertical hand
-
+ Maximum initial height for card view window:
-
-
+
+ rows
-
+ Maximum expanded height for card view window:
-
+ Card counters
-
+ Counter %1
-
+ Hand layout
-
+ Display hand horizontally (wastes space)
-
+ Enable left justification
-
+ Table grid layout
-
+ Invert vertical coordinate
-
+ Minimum player count for multi-column layout:
-
+ Maximum font size for information displayed on cards:
@@ -302,12 +357,12 @@ Please check that the directory is writable and try again.
ArchidektApiResponseDeckDisplayWidget
-
+ Back to results
-
+ Open Deck in Deck Editor
@@ -333,111 +388,111 @@ Please check that the directory is writable and try again.
BanDialog
-
+ ban &user name
-
+ ban &IP address
-
+ ban client I&D
-
+ Ban type
-
+ &permanent ban
-
+ &temporary ban
-
+ &Days:
-
+ &Hours:
-
+ &Minutes:
-
+ Duration of the ban
-
+ Please enter the reason for the ban.
This is only saved for moderators and cannot be seen by the banned person.
-
+ Please enter the reason for the ban that will be visible to the banned person.
-
+ Redact all messages from this user in all rooms
-
+ &OK
-
+ &Cancel
-
+ Ban user from server
-
-
-
-
+
+
+
+ Error
-
+ You have to select a name-based, IP-based, clientId based, or some combination of the three to place a ban.
-
+ You must have a value in the name ban when selecting the name ban checkbox.
-
+ You must have a value in the ip ban when selecting the ip ban checkbox.
-
+ You must have a value in the clientid ban when selecting the clientid ban checkbox.
@@ -445,59 +500,123 @@ This is only saved for moderators and cannot be seen by the banned person.
BetaReleaseChannel
-
+ Beta
-
+ No reply received from the release update server.
-
+ Invalid reply received from the release update server.
-
+ No reply received from the file update server.
+
+ CardArtPreviewWidget
+
+
+ No card selected
+
+
+
+
+ CardArtRulesModel
+
+
+ Card
+
+
+
+
+ ProviderId
+
+
+
+
+ Mode
+
+
+
+
+ Reason
+
+
+CardDatabaseModel
-
+ Name
-
+ Sets
-
+ Mana cost
-
+ Card type
-
+ P/T
-
+ Color(s)
+
+ CardDatabaseView
+
+
+ Add to Deck
+
+
+
+
+ Add to Sideboard
+
+
+
+
+ Select Printing
+
+
+
+
+ Show on EDHRec (Commander)
+
+
+
+
+ Show on EDHRec (Card)
+
+
+
+
+ Show Related cards
+
+
+CardFilter
@@ -626,22 +745,22 @@ This is only saved for moderators and cannot be seen by the banned person.
CardInfoPictureWidget
-
+ View related cards
-
+ Add card to deck
-
+ Mainboard
-
+ Sideboard
@@ -664,12 +783,12 @@ This is only saved for moderators and cannot be seen by the banned person.
-
+ Related cards:
-
+ Unknown card:
@@ -677,128 +796,146 @@ This is only saved for moderators and cannot be seen by the banned person.
CardMenu
-
+ Re&veal to...
-
+ &All players
-
+ View related cards
-
+ Token:
-
+ All tokens
-
+ &Select All
-
+ S&elect Row
-
+ S&elect Column
-
+ &Play
-
+ &Hide
-
+ Play &Face Down
-
+ &Tap / UntapTurn sideways or back again
-
+ Skip &untapping
-
+ T&urn OverTurn face up/face down
-
+ &Peek at card face
-
+ &Clone
-
+ Attac&h to card...
-
+ Unattac&h
-
+ &Draw arrow...
-
+ &Set annotation...
-
+
+ Reduce life by power
+
+
+
+ Ca&rd counters
-
+ &Add counter (%1)
-
+ &Remove counter (%1)
-
+ &Set counters (%1)...
+
+ CardPictureLoaderCacheMethod
+
+
+ Network Cache
+
+
+
+
+ Filesystem
+
+
+CardSizeWidget
@@ -810,133 +947,133 @@ This is only saved for moderators and cannot be seen by the banned person.
CardZoneLogic
-
+ their handnominative
-
+ %1's handnominative
-
+ their librarylook at zone
-
+ %1's librarylook at zone
-
+ of their librarytop cards of zone,
-
+ of %1's librarytop cards of zone
-
+ their libraryreveal zone
-
+ %1's libraryreveal zone
-
+ their libraryshuffle
-
+ %1's libraryshuffle
-
+ their librarynominative
-
+ %1's librarynominative
-
+ their graveyardnominative
-
+ %1's graveyardnominative
-
+ their exilenominative
-
+ %1's exilenominative
-
+ their sideboardlook at zone
-
+ %1's sideboardlook at zone
-
+ their sideboardnominative
-
+ %1's sideboardnominative
-
+ their custom zone '%1'nominative
-
+ %1's custom zone '%2'nominative
@@ -958,16 +1095,424 @@ This is only saved for moderators and cannot be seen by the banned person.
+
+ ColorButton
+
+
+ Click to pick a color
+
+
+
+
+ Pick colour
+
+
+
+
+ ConnectionController
+
+
+
+ The server has reached its maximum user capacity, please check back later.
+
+
+
+
+ There are too many concurrent connections from your address.
+
+
+
+
+ Banned by moderator
+
+
+
+
+ Expected end time: %1
+
+
+
+
+ This ban lasts indefinitely.
+
+
+
+
+ Scheduled server shutdown.
+
+
+
+
+
+ Invalid username.
+
+
+
+
+ You have been logged out due to logging in at another location.
+
+
+
+
+ Connection closed
+
+
+
+
+ The server has terminated your connection.
+Reason: %1
+
+
+
+
+ The server is going to be restarted in %n minute(s).
+All running games will be lost.
+Reason for shutdown: %1
+
+
+
+
+
+
+
+ Scheduled server shutdown
+
+
+
+
+ Failed Login
+
+
+
+
+ Your client seems to be missing features this server requires for connection.
+
+
+
+
+ To update your client, go to 'Help -> Check for Client Updates'.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Error
+
+
+
+
+ Incorrect username or password. Please check your authentication information and try again.
+
+
+
+
+ There is already an active session using this user name.
+Please close that session first and re-login.
+
+
+
+
+
+ You are banned until %1.
+
+
+
+
+
+ You are banned indefinitely.
+
+
+
+
+ This server requires user registration. Do you want to register now?
+
+
+
+
+ This server requires client IDs. Your client is either failing to generate an ID or you are running a modified client.
+Please close and reopen your client to try again.
+
+
+
+
+ An internal error has occurred, please close and reopen Cockatrice before trying again.
+If the error persists, ensure you are running the latest version of the software and if needed contact the software developers.
+
+
+
+
+ Account activation
+
+
+
+
+ Your account has not been activated yet.
+You need to provide the activation token received in the activation email.
+
+
+
+
+ Server Full
+
+
+
+
+ Unknown login error: %1
+
+
+
+
+
+
+This usually means that your client version is out of date, and the server sent a reply your client doesn't understand.
+
+
+
+
+
+
+
+
+
+ Registration denied
+
+
+
+
+ Registration is currently disabled on this server
+
+
+
+
+ There is already an existing account with the same user name.
+
+
+
+
+ It's mandatory to specify a valid email address when registering.
+
+
+
+
+ It appears you are attempting to register a new account on this server yet you already have an account registered with the email provided. This server restricts the number of accounts a user can register per address. Please contact the server operator for further assistance or to obtain your credential information.
+
+
+
+
+ Password too short.
+
+
+
+
+ Registration failed for a technical problem on the server.
+
+
+
+
+ The connection to the server has been lost.
+
+
+
+
+ Unknown registration error: %1
+
+
+
+
+ Account activation failed
+
+
+
+
+ Socket error: %1
+
+
+
+
+ Server timeout
+
+
+
+
+ You are trying to connect to an obsolete server. Please downgrade your Cockatrice version or connect to a suitable server.
+Local version is %1, remote version is %2.
+
+
+
+
+ Your Cockatrice client is obsolete. Please update your Cockatrice version.
+Local version is %1, remote version is %2.
+
+
+
+
+
+ Success
+
+
+
+
+ Registration accepted.
+Will now login.
+
+
+
+
+ Account activation accepted.
+Will now login.
+
+
+
+
+ Information
+
+
+
+
+ This server supports additional features that your client doesn't have.
+This is most likely not a problem, but this message might mean there is a new version of Cockatrice available or this server is running a custom or pre-release version.
+
+To update your client, go to Help -> Check for Updates.
+
+
+
+
+
+
+ Reset Password
+
+
+
+
+ Your password has been reset successfully, you can now log in using the new credentials.
+
+
+
+
+ Failed to reset user account password, please contact the server operator to reset your password.
+
+
+
+
+ Activation request received, please check your email for an activation token.
+
+
+
+
+ Connecting to %1...
+
+
+
+
+ Registering to %1 as %2...
+
+
+
+
+ Disconnected
+
+
+
+
+ Connected, logging in at %1
+
+
+
+
+ Requesting forgotten password to %1 as %2...
+
+
+
+
+ Your username must respect these rules:
+
+
+
+
+ is %1 - %2 characters long
+
+
+
+
+ can %1 contain lowercase characters
+
+
+
+
+
+
+
+ NOT
+
+
+
+
+ can %1 contain uppercase characters
+
+
+
+
+ can %1 contain numeric characters
+
+
+
+
+ can contain the following punctuation: %1
+
+
+
+
+ first character can %1 be a punctuation mark
+
+
+
+
+ no unacceptable language as specified by these server rules:
+ note that the following lines will not be translated
+
+
+
+
+ can not contain any of the following words: %1
+
+
+
+
+ can not match any of the following expressions: %1
+
+
+
+
+ You may only use A-Z, a-z, 0-9, _, ., and - in your username.
+
+
+CustomZoneMenu
-
+ C&ustom Zones
-
-
+
+ View custom zone '%1'
@@ -975,30 +1520,35 @@ This is only saved for moderators and cannot be seen by the banned person.
DeckAnalyticsWidget
-
+ Add Panel
-
+ Remove Panel
-
+ Save Layout
-
+ Load Layout
+
+
+ Include Sideboard
+
+ DeckEditorCardDatabaseDockWidget
-
+ Card Database
@@ -1014,47 +1564,17 @@ This is only saved for moderators and cannot be seen by the banned person.
DeckEditorDatabaseDisplayWidget
-
+ Search by card name (or search expressions)
-
- Add to Deck
-
-
-
-
- Add to Sideboard
-
-
-
-
- Select Printing
-
-
-
-
- Show on EDHRec (Commander)
-
-
-
-
- Show on EDHRec (Card)
-
-
-
-
- Show Related cards
-
-
-
-
+ Add card to &maindeck
-
+ Add card to &sideboard
@@ -1087,72 +1607,72 @@ This is only saved for moderators and cannot be seen by the banned person.
-
+ Select Printing
-
+ Deck
-
+ Deck &name:
-
+ Banner Card/Tags Visibility Settings
-
+ Show banner card selection menu
-
+ Show tags selection menu
-
+ &Comments:
-
+ Group by:
-
+ Format:
-
+ Hash:
-
+ &Increment number
-
+ &Decrement number
-
+ &Remove row
-
+ Swap card to/from sideboard
@@ -1160,17 +1680,17 @@ This is only saved for moderators and cannot be seen by the banned person.
DeckEditorFilterDockWidget
-
+ Filters
-
+ &Clear all filters
-
+ Delete selected
@@ -1301,169 +1821,113 @@ This is only saved for moderators and cannot be seen by the banned person.
DeckEditorSettingsPage
-
-
+
+ Update Spoilers
-
-
+ Success
-
+ Download URLs have been reset.
-
- Downloaded card pictures have been reset.
-
-
-
-
- Error
-
-
-
-
- One or more downloaded card pictures could not be cleared.
-
-
-
-
+ Add URL
-
-
+
+ URL:
-
-
+
+ Edit URL
-
- Network Cache Size:
-
-
-
-
- Redirect Cache TTL:
-
-
-
-
- How long cached redirects for urls are valid for.
-
-
-
-
- Picture Cache Size:
-
-
-
-
+ Add New URL
-
+ Remove URL
-
- Day(s)
-
-
-
-
+ Updating...
-
+ Choose path
-
+ URL Download Priority
-
+ Spoilers
-
+ Download Spoilers Automatically
-
+ Spoiler Location:
-
+ Last Change
-
+ Spoilers download automatically on launch
-
+ Press the button to manually update without relaunching
-
+ Do not close settings until manual update is complete
-
+ Download card pictures on the fly
-
+ How to add a custom URL
-
- Delete Downloaded Images
-
-
-
-
+ Reset Download URLs
-
-
- On-disk cache for downloaded pictures
-
-
-
-
- In-memory cache for pictures not currently on screen
-
- DeckListHistoryManagerWidget
@@ -1529,12 +1993,12 @@ This is only saved for moderators and cannot be seen by the banned person.
DeckLoader
-
+ Common deck formats (%1)
-
+ All files (*.*)
@@ -1756,27 +2220,27 @@ This is only saved for moderators and cannot be seen by the banned person.
-
+ Moved to %1 1 × "%2" (%3)
-
+ Removed "%1" (all copies)
-
+ %1 1 × "%2" (%3)
-
+ Added
-
+ Removed
@@ -1798,74 +2262,74 @@ This is only saved for moderators and cannot be seen by the banned person.
DeckViewContainer
-
+ Load deck...
-
+ Load remote deck...
-
+ Load from clipboard...
-
+ Load from website...
-
+ Unload deck
-
+ Ready to start
-
+ Force start
-
+ Sideboard unlocked
-
+ Sideboard locked
-
-
+
+ Error
-
+ The selected file could not be loaded.
-
+ Deck is greater than maximum file size.
-
+ Are you sure you want to force start?
This will kick all non-ready players from the game.
-
+ Cockatrice
@@ -1964,7 +2428,7 @@ This will kick all non-ready players from the game.
-
+ Webpage
@@ -2004,37 +2468,37 @@ This will kick all non-ready players from the game.
-
+ Server URL
-
+ Communication Port
-
+ Unique Server Name
-
+ Connection Warning
-
+ You need to name your new connection profile.
-
+ Connect Warning
-
+ The player name can't be empty.
@@ -2147,17 +2611,17 @@ This will kick all non-ready players from the game.
-
+ Game information
-
+ Error
-
+ Server error.
@@ -2165,97 +2629,97 @@ This will kick all non-ready players from the game.
DlgCreateToken
-
+ &Name:
-
+ Token
-
+ C&olor:
-
+ white
-
+ blue
-
+ black
-
+ red
-
+ green
-
+ multicolor
-
+ colorless
-
+ &P/T:
-
+ &Annotation:
-
+ &Destroy token when it leaves the table
-
+ Create face-down (Only hides name)
-
+ Token data
-
+ Show &all tokens
-
+ Show tokens from this &deck
-
+ Choose token from list
-
+ Create token
@@ -2289,7 +2753,7 @@ This will kick all non-ready players from the game.
-
+ ✖
@@ -2304,12 +2768,12 @@ This will kick all non-ready players from the game.
-
+ Duplicate Tag
-
+ This tag already exists.
@@ -2495,12 +2959,12 @@ To remove your current avatar, confirm without choosing a new image.
-
+ Error
-
+ The chosen name conflicts with an existing card or token.
Make sure to enable the 'Token' set in the "Manage sets" dialog to display them correctly.
@@ -2524,12 +2988,12 @@ Make sure to enable the 'Token' set in the "Manage sets" dia
-
+ Real name:
-
+ Edit user profile
@@ -2567,113 +3031,113 @@ Make sure to enable the 'Token' set in the "Manage sets" dia
-
+ Hide 'buddies only' games
-
+ Hide full games
-
+ Hide games that have started
-
+ Hide password protected games
-
+ Hide 'ignored user' games
-
+ Hide games not created by buddiesHide games not created by buddy
-
+ Hide games with forced open decklists
-
+ &Newer than:
-
+ Game &description:
-
+ &Creator name:
-
+ General
-
+ &Game types
-
+ at &least:
-
+ at &most:
-
+ Maximum player count
-
+ Restrictions
-
+ Show games only if &spectators can watch
-
+ Show spectator password p&rotected games
-
+ Show only if spectators can ch&at
-
+ Show only if spectators can see &hands
-
+ Spectators
-
+ Filter games
@@ -2976,37 +3440,37 @@ https://tappedout.net/mtg-decks/your-deck-name/
DlgMoveTopCardsUntil
-
+ Card name (or search expressions):
-
+ Number of hits:
-
+ Auto play hits
-
+ Put top cards on stack until...
-
+ No cards matching the search expression exists in the card database. Proceed anyways?
-
+ Cockatrice
-
+ Invalid filter
@@ -3065,40 +3529,40 @@ Your email will be used to verify your account.
-
+ Real name:
-
+ Register to server
-
-
-
-
+
+
+
+ Registration Warning
-
+ Your password is too short.
-
+ Your passwords do not match, please try again.
-
+ Your email addresses do not match, please try again.
-
+ The player name can't be empty.
@@ -3106,17 +3570,17 @@ Your email will be used to verify your account.
DlgRollDice
-
+ Number of sides:
-
+ Number of dice:
-
+ Roll Dice
@@ -3167,12 +3631,12 @@ Your email will be used to verify your account.
DlgSettings
-
+ Unknown Error loading card database
-
+ Your card database is invalid.
Cockatrice may not function correctly with an invalid database
@@ -3183,7 +3647,7 @@ Would you like to change your database location setting?
-
+ Your card database version is too old.
This can cause problems loading card information or images
@@ -3194,7 +3658,7 @@ Would you like to change your database location setting?
-
+ Your card database did not finish loading
Please file a ticket at https://github.com/Cockatrice/Cockatrice/issues with your cards.xml attached
@@ -3203,21 +3667,21 @@ Would you like to change your database location setting?
-
+ File Error loading your card database.
Would you like to change your database location setting?
-
+ Your card database was loaded but contains no cards.
Would you like to change your database location setting?
-
+ Unknown card database load status
Please file a ticket at https://github.com/Cockatrice/Cockatrice/issues
@@ -3226,59 +3690,64 @@ Would you like to change your database location setting?
-
-
-
+
+
+ Error
-
+ The path to your deck directory is invalid. Would you like to go back and set the correct path?
-
+ The path to your card pictures directory is invalid. Would you like to go back and set the correct path?
-
+ Settings
-
+ General
-
+ Appearance
-
+ User Interface
-
+
+ Storage
+
+
+
+ Card Sources
-
+ Chat
-
+ Sound
-
+ Shortcuts
@@ -3370,9 +3839,9 @@ You can always change this behavior in the 'General' settings tab.
-
-
-
+
+
+ Error
@@ -3424,31 +3893,31 @@ Please visit the download page to update manually.
-
+ Update Available
-
+ A new version of Cockatrice is available!
-
+ New version
-
+ Released
-
+ Changelog
@@ -3458,50 +3927,50 @@ Please visit the download page to update manually.
-
+ Unfortunately, the automatic updater failed to find a compatible download.
You may have to manually download the new version.
-
+ Please check the <a href="%1">releases page</a> on our Github and download the build for your system.
-
-
-
+
+
+ Update Error
-
+ An error occurred while checking for updates:
-
+ An error occurred while downloading an update:
-
+ Installing...
-
+ Cockatrice is unable to open the installer.
-
+ Try to update manually by closing Cockatrice and running the installer.
-
+ Download location
@@ -3591,67 +4060,67 @@ You may have to manually download the new version.
DrawProbabilityWidget
-
+ Draw Probability
-
+ Probability of drawing
-
+ Card Name
-
+ Type
-
+ Subtype
-
+ Mana Value
-
+ At least
-
+ Exactly
-
+ card(s) having drawn at least
-
+ cards
-
+ Category
-
+ Qty
-
+ Odds (%)
@@ -3765,7 +4234,7 @@ You may have to manually download the new version.
FilterBuilder
-
+ Type your filter here
@@ -3796,22 +4265,22 @@ You may have to manually download the new version.
GameEventHandler
-
+ kicked by game host or moderator
-
+ player left the game
-
+ player disconnected from server
-
+ reason unknown
@@ -3819,140 +4288,140 @@ You may have to manually download the new version.
GameSelector
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+ Error
-
+ Please join the appropriate room first.
-
+ Wrong password.
-
+ Spectators are not allowed in this game.
-
+ The game is already full.
-
+ The game does not exist any more.
-
+ This game is only open to registered users.
-
+ This game is only open to its creator's buddies.
-
+ You are being ignored by the creator of this game.
-
+ Join Game
-
+ Spectate Game
-
+ Game Information
-
+ Join Game as Judge
-
+ Spectate Game as Judge
-
+ Join game
-
+ Password:
-
+ Please join the respective room first.
-
+ &Filter games
-
+ C&lear filter
-
+ C&reate
-
+ &Join
-
+ Join as judge
-
+ J&oin as spectator
-
+ Join as judge spectator
-
+ Games shown: %1 / %2
-
+ Games
@@ -3960,32 +4429,32 @@ You may have to manually download the new version.
GameSelectorQuickFilterToolBar
-
+ All types
-
+ Filter by game name...
-
+ Filter by game type/format
-
+ Hide games not created by buddies
-
+ Hide full games
-
+ Hide started games
@@ -3993,12 +4462,12 @@ You may have to manually download the new version.
GamesModel
-
+ >1 day
-
+ %1%2 hrshort age in hours
@@ -4007,12 +4476,12 @@ You may have to manually download the new version.
-
+ new
-
+ %1%2 minshort age in minutes
@@ -4021,83 +4490,83 @@ You may have to manually download the new version.
-
+ password
-
+ buddies only
-
+ reg. users only
-
+ open decklists
-
+ can chat
-
+ see hands
-
+ can see hands
-
+ not allowed
-
+ Room
-
+ Age
-
+ Description
-
+ Creator
-
+ Type
-
+ Restrictions
-
+ Players
-
+ Spectators
@@ -4105,143 +4574,158 @@ You may have to manually download the new version.
GeneralSettingsPage
-
+ Reset all paths
-
+ All paths have been reset
-
-
-
-
-
-
-
+
+
+
+
+
+
+ Choose path
-
- Personal settings
+
+ Language settings
-
+ Language:
-
+
+ Version settings
+
+
+
+
+ Card database
+
+
+
+
+ Startup settings
+
+
+
+ Paths (editing disabled in portable mode)
-
+ Paths
-
+ How to help with translations
-
+ Decks directory:
-
+ Filters directory:
-
+ Replays directory:
-
+ Pictures directory:
-
+ Card database:
-
+ Custom database directory:
-
+ Token database:
-
+ Update channel
-
+ Check for client updates on startup
-
+ Check for card database updates on startup
-
+ Don't check
-
+ Prompt for update
-
+ Always update in the background
-
+ Check for card database updates every
-
+ days
-
+ Notify if a feature supported by the server is missing in my client
-
+ Automatically run Oracle when running a new version of Cockatrice
-
+ Show tips on startup
-
+ Last update check on %1 (%2 days ago)
@@ -4249,47 +4733,47 @@ You may have to manually download the new version.
GraveyardMenu
-
+ &Graveyard
-
+ &View graveyard
-
+ &Move graveyard to...
-
+ &Top of library
-
+ &Bottom of library
-
+ &All players
-
+ &Hand
-
+ &Exile
-
+ Reveal random card to...
@@ -4297,88 +4781,88 @@ You may have to manually download the new version.
HandMenu
-
+ &Hand
-
+ &View hand
-
+ Sort hand by...
-
+ Name
-
+ Type
-
+ Mana Value
-
+ Take &mulligan (Choose hand size)
-
+ Take mulligan (Same hand size)
-
+ Take mulligan (Hand size - 1)
-
+ &Move hand to...
-
+ &Top of library
-
+ &Bottom of library
-
+ &Graveyard
-
+ &Exile
-
+ &Reveal hand to...
-
-
+
+ All players
-
+ Reveal r&andom card to...
@@ -4386,52 +4870,52 @@ You may have to manually download the new version.
HomeWidget
-
+ Create New Deck
-
+ Browse Decks
-
+ Browse Card Database
-
+ Browse EDHRec
-
+ Browse Archidekt
-
+ View Replays
-
+ Quit
-
+ Connecting...
-
+ Connect
-
+ Play
@@ -4439,213 +4923,213 @@ You may have to manually download the new version.
LibraryMenu
-
+ &Library
-
+ &View library
-
+ View &top cards of library...
-
+ View bottom cards of library...
-
+ Reveal &library to...
-
+ Lend library to...
-
+ Reveal &top cards to...
-
+ &Top of library...
-
+ &Bottom of library...
-
+ &Always reveal top card
-
+ &Always look at top card
-
+ &Open deck in deck editor
-
+ &Draw card
-
+ D&raw cards...
-
+ &Undo last draw
-
+ Shuffle
-
+ &Play top card
-
+ Play top card &face down
-
+ Put top card on &bottom
-
+ Move top card to grave&yard
-
+ Move top card to e&xile
-
+ Move top cards to &graveyard...
-
+ Move top cards to graveyard face down...
-
+ Move top cards to &exile...
-
+ Move top cards to exile face down...
-
+ Put top cards on stack &until...
-
+ Shuffle top cards...
-
+ &Draw bottom card
-
+ D&raw bottom cards...
-
+ &Play bottom card
-
+ Play bottom card &face down
-
+ Move bottom card to grave&yard
-
+ Move bottom card to e&xile
-
+ Move bottom cards to &graveyard...
-
+ Move bottom cards to graveyard face down...
-
+ Move bottom cards to &exile...
-
+ Move bottom cards to exile face down...
-
+ Put bottom card on &top
-
+ Shuffle bottom cards...
-
-
+
+ &All players
-
+ Reveal top cards of library
-
+ Number of cards: (max. %1)
@@ -4653,655 +5137,300 @@ You may have to manually download the new version.
MainWindow
-
-
- The server has reached its maximum user capacity, please check back later.
-
-
-
-
- There are too many concurrent connections from your address.
-
-
-
-
- Banned by moderator
-
-
-
-
- Expected end time: %1
-
-
-
-
- This ban lasts indefinitely.
-
-
-
-
- Scheduled server shutdown.
-
-
-
-
-
- Invalid username.
-
-
-
-
- You have been logged out due to logging in at another location.
-
-
-
-
- Connection closed
-
-
-
-
- The server has terminated your connection.
-Reason: %1
-
-
-
-
- The server is going to be restarted in %n minute(s).
-All running games will be lost.
-Reason for shutdown: %1
-
-
-
-
-
-
-
- Scheduled server shutdown
-
-
-
-
-
- Success
-
-
-
-
- Registration accepted.
-Will now login.
-
-
-
-
- Account activation accepted.
-Will now login.
-
-
-
-
-
+
+ Player %1
-
+ Load replay
-
+ About Cockatrice
-
+ Version
-
+ Cockatrice Webpage
-
+ Project Manager:
-
+ Past Project Managers:
-
+ Developers:
-
+ Our Developers
-
+ Help Develop!
-
+ Translators:
-
+ Our Translators
-
+ Help Translate!
-
+ Support:
-
+ Report an Issue
-
+ Troubleshooting
-
+ F.A.Q.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ Error
-
- Server timeout
-
-
-
-
- Failed Login
-
-
-
-
- Your client seems to be missing features this server requires for connection.
-
-
-
-
- To update your client, go to 'Help -> Check for Client Updates'.
-
-
-
-
- Incorrect username or password. Please check your authentication information and try again.
-
-
-
-
- There is already an active session using this user name.
-Please close that session first and re-login.
-
-
-
-
-
- You are banned until %1.
-
-
-
-
-
- You are banned indefinitely.
-
-
-
-
- This server requires user registration. Do you want to register now?
-
-
-
-
- This server requires client IDs. Your client is either failing to generate an ID or you are running a modified client.
-Please close and reopen your client to try again.
-
-
-
-
- An internal error has occurred, please close and reopen Cockatrice before trying again.
-If the error persists, ensure you are running the latest version of the software and if needed contact the software developers.
-
-
-
-
- Account activation
-
-
-
-
- Your account has not been activated yet.
-You need to provide the activation token received in the activation email.
-
-
-
-
- Server Full
-
-
-
-
- Unknown login error: %1
-
-
-
-
-
-
-This usually means that your client version is out of date, and the server sent a reply your client doesn't understand.
-
-
-
-
- Your username must respect these rules:
-
-
-
-
- is %1 - %2 characters long
-
-
-
-
- can %1 contain lowercase characters
-
-
-
-
-
-
-
- NOT
-
-
-
-
- can %1 contain uppercase characters
-
-
-
-
- can %1 contain numeric characters
-
-
-
-
- can contain the following punctuation: %1
-
-
-
-
- first character can %1 be a punctuation mark
-
-
-
-
- no unacceptable language as specified by these server rules:
- note that the following lines will not be translated
-
-
-
-
- can not contain any of the following words: %1
-
-
-
-
- can not match any of the following expressions: %1
-
-
-
-
- You may only use A-Z, a-z, 0-9, _, ., and - in your username.
-
-
-
-
-
-
-
-
-
- Registration denied
-
-
-
-
- Registration is currently disabled on this server
-
-
-
-
- There is already an existing account with the same user name.
-
-
-
-
- It's mandatory to specify a valid email address when registering.
-
-
-
-
- It appears you are attempting to register a new account on this server yet you already have an account registered with the email provided. This server restricts the number of accounts a user can register per address. Please contact the server operator for further assistance or to obtain your credential information.
-
-
-
-
- Password too short.
-
-
-
-
- Registration failed for a technical problem on the server.
-
-
-
-
- The connection to the server has been lost.
-
-
-
-
- Unknown registration error: %1
-
-
-
-
- Account activation failed
-
-
-
-
- Socket error: %1
-
-
-
-
- You are trying to connect to an obsolete server. Please downgrade your Cockatrice version or connect to a suitable server.
-Local version is %1, remote version is %2.
-
-
-
-
- Your Cockatrice client is obsolete. Please update your Cockatrice version.
-Local version is %1, remote version is %2.
-
-
-
-
- Connecting to %1...
-
-
-
-
- Registering to %1 as %2...
-
-
-
-
- Disconnected
-
-
-
-
- Connected, logging in at %1
-
-
-
-
-
-
- Requesting forgotten password to %1 as %2...
-
-
-
-
+ &Connect...
-
+ &Disconnect
-
+ Start &local game...
-
+ &Watch replay...
-
+ &Full screen
-
+ &Register to server...
-
+ &Restore password...
-
+ &Settings...
-
+ &Exit
-
+ A&ctions
-
+ &Cockatrice
-
+ C&ard Database
-
+ &Manage sets...
-
+ Edit custom &tokens...
-
+ Open custom image folder
-
+ Open custom sets folder
-
+ Add custom sets/cards
-
+ Reload card database
-
+ Tabs
-
+ &Help
-
+ &About Cockatrice
-
+ &Tip of the Day
-
+ Check for Client Updates
-
+ Check for Card Updates...
-
+ Check for Card Updates (Automatic)
-
+ Show Status Bar
-
+ View &Debug Log
-
+ Open Settings Folder
-
+ Show/Hide
-
+ New Version
-
+ Congratulations on updating to Cockatrice %1!
Oracle will now launch to update your card database.
-
+ Cockatrice installed
-
+ Congratulations on installing Cockatrice %1!
Oracle will now launch to install the initial card database.
-
+ Card database
-
+ Cockatrice is unable to load the card database.
Do you want to update your card database now?
If unsure or first time user, choose "Yes"
-
-
+
+ Yes
-
-
+
+ No
-
+ Open settings
-
+ New sets found
-
+ %n new set(s) found in the card database
Set code(s): %1
Do you want to enable it/them?
@@ -5311,179 +5440,153 @@ Do you want to enable it/them?
-
+
+ Yes, always enable
+
+
+
+ View sets
-
+ Welcome
-
+ Hi! It seems like you're running this version of Cockatrice for the first time.
All the sets in the card database have been enabled.
Read more about changing the set order or disabling specific sets and consequent effects in the "Manage Sets" dialog.
-
-
+ Information
-
+ A card database update is already running.
-
+ Unable to run the card database updater:
-
+ Card database update running.
-
+ Failed to start. The file might be missing, or permissions might be incorrect.
-
+ The process crashed some time after starting successfully.
-
+ Timed out. The process took too long to respond. The last waitFor...() function timed out.
-
+ An error occurred when attempting to write to the process. For example, the process may not be running, or it may have closed its input channel.
-
+ An error occurred when attempting to read from the process. For example, the process may not be running.
-
+ Unknown error occurred.
-
+ The card database updater exited with an error:
%1
-
- This server supports additional features that your client doesn't have.
-This is most likely not a problem, but this message might mean there is a new version of Cockatrice available or this server is running a custom or pre-release version.
-
-To update your client, go to Help -> Check for Updates.
-
-
-
-
-
-
-
-
+
+
+
+
+ Load sets/cards
-
+ Selected file cannot be found.
-
+ You can only import XML databases at this time.
-
+ The new sets/cards have been added successfully.
Cockatrice will now reload the card database.
-
+ Sets/cards failed to import.
-
-
-
-
- Reset Password
-
-
-
-
- Your password has been reset successfully, you can now log in using the new credentials.
-
-
-
-
- Failed to reset user account password, please contact the server operator to reset your password.
-
-
-
-
- Activation request received, please check your email for an activation token.
-
- ManaBaseConfigDialog
-
+ Mana Base Configuration
-
+ Display type:
-
+ pie
-
+ bar
-
+ combinedBar
-
+ Filter Colors (optional):
-
+ OK
-
+ Cancel
@@ -5555,27 +5658,27 @@ Cockatrice will now reload the card database.
ManaDevotionConfigDialog
-
+ Display type:
-
+ pie
-
+ bar
-
+ combinedBar
-
+ Filter Colors (optional):
@@ -5645,297 +5748,297 @@ Cockatrice will now reload the card database.
MessageLogWidget
-
+ from play
-
+ from their graveyard
-
+ from exile
-
+ from their hand
-
+ the top card of %1's library
-
+ the top card of their library
-
+ from the top of %1's library
-
+ from the top of their library
-
+ the bottom card of %1's library
-
+ the bottom card of their library
-
+ from the bottom of %1's library
-
+ from the bottom of their library
-
+ from %1's library
-
+ from their library
-
+ from sideboard
-
+ from the stack
-
+ from custom zone '%1'
-
+ %1 is now keeping the top card %2 revealed.
-
+ %1 is not revealing the top card %2 any longer.
-
+ %1 can now look at top card %2 at any time.
-
+ %1 no longer can look at top card %2 at any time.
-
+ %1 attaches %2 to %3's %4.
-
+ %1 has conceded the game.
-
+ %1 has unconceded the game.
-
+ %1 has restored connection to the game.
-
+ %1 has lost connection to the game.
-
+ %1 points from their %2 to themselves.
-
+ %1 points from their %2 to %3.
-
+ %1 points from %2's %3 to themselves.
-
+ %1 points from %2's %3 to %4.
-
+ %1 points from their %2 to their %3.
-
+ %1 points from their %2 to %3's %4.
-
+ %1 points from %2's %3 to their own %4.
-
+ %1 points from %2's %3 to %4's %5.
-
+ %1 creates a face down token.
-
+ %1 creates token: %2%3.
-
+ %1 has loaded a deck (%2).
-
+ %1 has loaded a deck with %2 sideboard cards (%3).
-
+ %1 destroys %2.
-
+ a card
-
+ %1 gives %2 control over %3.
-
+ %1 puts %2 into play%3 face down.
-
+ %1 puts %2 into play%3.
-
+ %1 puts %2%3 into their graveyard face down.
-
+ %1 puts %2%3 into their graveyard.
-
+ %1 exiles %2%3 face down.
-
+ %1 exiles %2%3.
-
+ %1 moves %2%3 to their hand.
-
+ %1 puts %2%3 into their library.
-
+ %1 puts %2%3 onto the bottom of their library.
-
+ %1 puts %2%3 on top of their library.
-
+ %1 puts %2%3 into their library %4 cards from the top.
-
+ %1 moves %2%3 to sideboard.
-
+ %1 plays %2%3 face down.
-
+ %1 plays %2%3.
-
+ %1 moves %2%3 to custom zone '%4' face down.
-
+ %1 moves %2%3 to custom zone '%4'.
-
+ %1 tries to draw from an empty library
-
+ %1 draws %2 card(s).
@@ -5943,12 +6046,12 @@ Cockatrice will now reload the card database.
-
+ %1 is looking at %2.
-
+ %1 is looking at the %4 %3 card(s) %2.top card for singular, top %3 cards for plural
@@ -5957,72 +6060,72 @@ Cockatrice will now reload the card database.
-
+ bottom
-
+ top
-
+ %1 turns %2 face-down.
-
+ %1 turns %2 face-up.
-
+ The game has been closed.
-
+ The game has started.
-
+ You are flooding the game. Please wait a couple of seconds.
-
+ %1 has joined the game.
-
+ %1 is now watching the game.
-
+ You have been kicked out of the game.
-
+ %1 has left the game (%2).
-
+ %1 is not watching the game any more (%2).
-
+ %1 is not ready to start the game any more.
-
+ %1 shuffles their deck and draws a new hand of %2 card(s).
@@ -6030,28 +6133,28 @@ Cockatrice will now reload the card database.
-
+ %1 shuffles their deck and draws a new hand.
-
+ You are watching a replay of game #%1.
-
+ %1 is ready to start the game.
-
+ cardsan unknown amount of cards
-
+ %1 card(s)a card for singular, %1 cards for plural
@@ -6060,213 +6163,218 @@ Cockatrice will now reload the card database.
-
+ %1 lends %2 to %3.
-
+ %1 reveals %2 to %3.
-
+ %1 reveals %2.
-
+ %1 randomly reveals %2%3 to %4.
-
+ %1 randomly reveals %2%3.
-
+ %1 peeks at face down card #%2.
-
+ %1 peeks at face down card #%2: %3.
-
+ %1 reveals %2%3 to %4.
-
+ %1 reveals %2%3.
-
+ %1 reversed turn order, now it's %2.
-
+ reversed
-
+ normal
-
+ Heads
-
+ Tails
-
+ %1 flipped a coin. It landed as %2.
-
+ %1 rolls a %2 with a %3-sided die.
-
+ %1 flips %2 coins. There are %3 heads and %4 tails.
-
+ %1 rolls a %2-sided dice %3 times: %4.
-
+ %1's turn.
-
+ %1 sets annotation of %2 to %3.
-
- %1 places %2 "%3" counter(s) on %4 (now %5).
+
+ %1 places %2 %3%4 counter(s) on %5 (now %6).
-
- %1 removes %2 "%3" counter(s) from %4 (now %5).
+
+ %1 removes %2 %3%4 counter(s) from %5 (now %6).
-
+
+ %1 failed to undo their last draw.
+
+
+
+ %1 sets counter %2 to %3 (%4%5).
-
+ %1 sets %2 to not untap normally.
-
+ %1 sets %2 to untap normally.
-
+ %1 removes the PT of %2.
-
+ %1 changes the PT of %2 from nothing to %4.
-
+ %1 changes the PT of %2 from %3 to %4.
-
+ %1 has locked their sideboard.
-
+ %1 has unlocked their sideboard.
-
+ %1 taps their permanents.
-
+ %1 untaps their permanents.
-
+ %1 taps %2.
-
+ %1 untaps %2.
-
+ %1 shuffles %2.
-
+ %1 shuffles the bottom %3 cards of %2.
-
+ %1 shuffles the top %3 cards of %2.
-
+ %1 shuffles cards %3 - %4 of %2.
-
+ %1 unattaches %2.
-
+ %1 undoes their last draw.
-
+ %1 undoes their last draw (%2).
@@ -6274,110 +6382,115 @@ Cockatrice will now reload the card database.
MessagesSettingsPage
-
+ Word1 Word2 Word3
-
+ Add New Message
-
+ Edit Message
-
+ Remove Message
-
+ Add message
-
-
+
+ Message:
-
+ Edit message
-
+ Chat settings
-
+ Custom alert words
-
+ Enable chat mentions
-
+ Enable mention completer
-
+ In-game message macros
-
+ How to use in-game message macros
-
+ Ignore chat room messages sent by unregistered users
-
+ Ignore private messages sent by unregistered users
-
-
+
+ Ignore private messages sent by non-buddy users
+
+
+
+
+ Invert text color
-
+ Enable desktop notifications for private messages
-
+ Enable desktop notification for mentions
-
+ Enable room message history on join
-
-
+
+ (Color is hexadecimal)
-
+ Separate words with a space, alphanumeric characters only
@@ -6385,42 +6498,42 @@ Cockatrice will now reload the card database.
MoveMenu
-
+ Move to
-
+ &Top of library in random order
-
+ X cards from the top of library...
-
+ &Bottom of library in random order
-
+ T&able
-
+ &Hand
-
+ &Graveyard
-
+ &Exile
@@ -6433,47 +6546,47 @@ Cockatrice will now reload the card database.
-
+ Mana Value
-
+ Color(s)
-
+ Loyalty
-
+ Main Card Type
-
+ Mana Cost
-
+ P/T
-
+ Side
-
+ Layout
-
+ Color Identity
@@ -6496,6 +6609,152 @@ Cockatrice will now reload the card database.
+
+ PaletteEditorDialog
+
+
+
+ Reset
+
+
+
+
+
+ Apply
+
+
+
+
+
+ Save && Apply
+
+
+
+
+ ▼ Edit Palette
+
+
+
+
+
+ ▶ Edit Palette
+
+
+
+
+ Palette Editor — %1
+
+
+
+
+ <b>Palette Editor</b> · %1
+
+
+
+
+ This theme ships no default palette files
+
+
+
+
+ Replace current colours with the theme author's defaults
+
+
+
+
+ Switch between the light and dark palette files
+
+
+
+
+ Editing:
+
+
+
+
+ Show or hide the per-role colour grid for manual tweaks
+
+
+
+
+ ↺ Revert to theme default
+
+
+
+
+ Discard unsaved edits and restore the last saved palette
+
+
+
+
+ Preview this palette without saving to disk
+
+
+
+
+ Write palette-%1.toml and reload the theme
+
+
+
+
+ Cannot save: this theme has no directory on disk
+
+
+
+
+ Save failed
+
+
+
+
+ Could not write %1 to:
+%2
+
+
+
+
+ No default found
+
+
+
+
+ No default palette file found for the "%1" scheme.
+
+
+
+
+ PaletteGridWidget
+
+
+ Active
+
+
+
+
+ Disabled
+
+
+
+
+ Inactive
+
+
+
+
+ Normal interactive state
+
+
+
+
+ Widget is disabled / not interactive
+
+
+
+
+ Window is in background / unfocused
+
+
+Phase
@@ -6562,57 +6821,57 @@ Cockatrice will now reload the card database.
PhasesToolbar
-
+ Untap step
-
+ Upkeep step
-
+ Draw step
-
+ First main phase
-
+ Beginning of combat step
-
+ Declare attackers step
-
+ Declare blockers step
-
+ Combat damage step
-
+ End of combat step
-
+ Second main phase
-
+ End of turn step
@@ -6620,7 +6879,7 @@ Cockatrice will now reload the card database.
PictureLoader
-
+ encode for scryfall's language property, not available for all languages
@@ -6629,151 +6888,142 @@ Cockatrice will now reload the card database.
PlayerActions
-
- View top cards of library
-
-
-
-
-
-
-
-
-
-
-
-
- Number of cards: (max. %1)
-
-
-
-
- View bottom cards of library
-
-
-
-
- Shuffle top cards of library
-
-
-
-
- Shuffle bottom cards of library
-
-
-
-
- Draw hand
-
-
-
-
- 0 and lower are in comparison to current hand size
-
-
-
-
- Draw cards
-
-
-
-
-
-
-
+
+
+
+ grave
-
-
-
-
+
+
+
+ exile
+
+
+ PlayerDialogs
-
+
+ View top cards of library
+
+
+
+
+
+
+
+
+
+
+
+
+ Number of cards: (max. %1)
+
+
+
+
+ View bottom cards of library
+
+
+
+
+ Shuffle top cards of library
+
+
+
+
+ Shuffle bottom cards of library
+
+
+
+
+ Draw hand
+
+
+
+
+ 0 and lower are in comparison to current hand size
+
+
+
+
+ Draw cards
+
+
+
+ Move top cards to %1
-
+ Move bottom cards to %1
-
+ Draw bottom cards
-
-
- C&reate another %1 token
-
-
-
-
+ Create tokens
-
-
+ Number:
-
+ Place card X cards from top of library
-
+ Which position should this card be placed:
-
+ (max. %1)
-
+ Change power/toughness
-
+ Change stats to:
-
+ Set annotation
-
+ Please enter the new annotation:
-
-
- Set counters
-
- PlayerMenu
-
+ Player "%1"
-
+ &Counters
@@ -6803,7 +7053,7 @@ This setting means you'll only see the default printing for each card, inst
-
+ Printing Selector
@@ -6811,22 +7061,22 @@ This setting means you'll only see the default printing for each card, inst
PrintingSelectorCardOverlayWidget
-
+ Preference
-
+ Pin Printing
-
+ Unpin Printing
-
+ Show Related cards
@@ -6897,57 +7147,57 @@ This setting means you'll only see the default printing for each card, inst
PtMenu
-
+ Power / toughness
-
+ &Increase power
-
+ &Decrease power
-
+ I&ncrease toughness
-
+ D&ecrease toughness
-
+ In&crease power and toughness
-
+ Dec&rease power and toughness
-
+ Increase power and decrease toughness
-
+ Decrease power and increase toughness
-
+ Set &power and toughness...
-
+ Reset p&ower and toughness
@@ -6955,37 +7205,37 @@ This setting means you'll only see the default printing for each card, inst
QMenuBar
-
+ Services
-
+ Hide %1
-
+ Hide Others
-
+ Show All
-
+ Preferences...
-
+ Quit %1
-
+ About %1
@@ -6993,17 +7243,17 @@ This setting means you'll only see the default printing for each card, inst
QObject
-
+ Cockatrice card database (*.xml)
-
+ All files (*.*)
-
+ Cockatrice replays (*.cor)
@@ -7063,110 +7313,177 @@ Are you sure you would like to disable this feature?
QPlatformTheme
-
+ OK
-
+ Save
-
+ Save All
-
+ Open
-
+ &Yes
-
+ Yes to &All
-
+ &No
-
+ N&o to All
-
+ Abort
-
+ Retry
-
+ Ignore
-
+ Close
-
+ Cancel
-
+ Discard
-
+ Help
-
+ Apply
-
+ Reset
-
+ Restore Defaults
+
+ QuickSetupPanel
+
+
+ %1%
+
+
+
+
+ <b>Quick Setup</b>
+
+
+
+
+ Generate all palette roles automatically from a single accent colour
+
+
+
+
+ Accent:
+
+
+
+
+ Primary hue. Used directly for highlights and links.
+At high intensity it also tints buttons and backgrounds.
+
+
+
+
+ Intensity:
+
+
+
+
+ Subtle
+
+
+
+
+ Full colour
+
+
+
+
+ 0–30 Subtle tint — only highlights and links change hue
+30–70 Accented — buttons, tooltips, and borders join in
+70–100 Full colour — backgrounds, everything
+
+
+
+
+ 70%
+
+
+
+
+ Generate ↓
+
+
+
+
+ Derive all palette roles from the accent colour above.
+Fine-tune individual colours in the grid afterwards.
+
+
+RemoteDeckList_TreeModel
-
+ Name
-
+ ID
-
+ Upload time
@@ -7174,32 +7491,32 @@ Are you sure you would like to disable this feature?
RemoteReplayList_TreeModel
-
+ ID
-
+ Name
-
+ Players
-
+ Keep
-
+ Time started
-
+ Duration (sec)
@@ -7207,37 +7524,37 @@ Are you sure you would like to disable this feature?
RfgMenu
-
+ &Exile
-
+ &View exile
-
+ &Move exile to...
-
+ &Top of library
-
+ &Bottom of library
-
+ &Hand
-
+ &Graveyard
@@ -7283,7 +7600,7 @@ Are you sure you would like to disable this feature?
SayMenu
-
+ S&ay
@@ -7324,27 +7641,27 @@ Are you sure you would like to disable this feature?
SetsModel
-
+ Enabled
-
+ Set type
-
+ Set code
-
+ Long name
-
+ Release date
@@ -7352,53 +7669,53 @@ Are you sure you would like to disable this feature?
ShortcutSettingsPage
-
-
+
+ Restore all default shortcuts
-
+ Do you really want to restore all default shortcuts?
-
+ Clear all default shortcuts
-
+ Do you really want to clear all shortcuts?
-
+ Section:
-
+ Action:
-
+ Shortcut:
-
+ How to set custom shortcuts
-
+ Clear all shortcuts
-
+ Search by shortcut name
@@ -7452,12 +7769,12 @@ Please check your shortcut settings!
SideboardMenu
-
+ &Sideboard
-
+ &View sideboard
@@ -7465,27 +7782,27 @@ Please check your shortcut settings!
SoundSettingsPage
-
+ Enable &sounds
-
+ Current sounds theme:
-
+ Test system sound engine
-
+ Sound settings
-
+ Master volume
@@ -7557,16 +7874,146 @@ Please check your shortcut settings!
-
+ No reply received from the tag update server.
-
+ Invalid reply received from the tag update server.
+
+ StorageSettingsPage
+
+
+
+
+ Success
+
+
+
+
+ Cached card pictures have been reset.
+
+
+
+
+ Downloaded card pictures have been reset.
+
+
+
+
+ Error
+
+
+
+
+ One or more downloaded card pictures could not be cleared.
+
+
+
+
+ In-memory (currently loaded) card pictures have been reset.
+
+
+
+
+ Card Picture Loader Caching Method:
+
+
+
+
+ The network cache is the preferred way of storing images. Downloaded images are stored here until the size of the cache exceeds the configured size. Cockatrice automatically monitors this cache and deletes the least recently seen card images to ensure the cache does not exceed the configured size.
+
+
+
+
+ Writing card images directly to a folder on your hard drive is another way of storing images. This does not change how Cockatrice accesses or downloads images. Cockatrice will NOT automatically monitor and clear this folder, so if you enable this option, it is up to you to ensure sufficient available space. It should also be noted that if a provider outage causes you to download the wrong picture (i.e. wrong printing) you will be stuck with it until you manually delete the file, as opposed to using the network cache, which automatically rotates and thus correct errors after a while.
+
+
+
+
+ This is the in-memory picture cache used by the application at runtime. It determines how much memory (RAM) Cockatrice can use before it has to fetch card images from the hard disk again. Increasing this will allow more card images to be displayed at once but shouldn't be necessary. Clearing this will make Cockatrice reload all images from the network cache or the disk.
+
+
+
+
+ Delete Cached Images
+
+
+
+
+ Delete Saved Images
+
+
+
+
+ Clear In-Memory Images
+
+
+
+
+ Card Picture Loader Cache Method
+
+
+
+
+ Network Cache
+
+
+
+
+ Filesystem
+
+
+
+
+ In-Memory Picture Cache
+
+
+
+
+ Network Cache Size:
+
+
+
+
+ On-disk cache for downloaded pictures
+
+
+
+
+ Redirect Cache TTL:
+
+
+
+
+ How long cached redirects for urls are valid for.
+
+
+
+
+ Picture Cache Size:
+
+
+
+
+ In-memory cache for pictures not currently on screen
+
+
+
+
+ Naming scheme:
+
+
+
+
+ Day(s)
+
+
+TabAccount
@@ -7702,117 +8149,117 @@ Please check your shortcut settings!
TabArchidekt
-
-
+
+ Desc.
-
-
+
+ AND
-
-
+
+ Require ALL selected colors
-
-
+
+ Deck name...
-
-
+
+ Owner...
-
-
+
+ Packages
-
-
+
+ Advanced Filters
-
+ Bracket:
-
-
+
+ Any
-
-
+
+ Contains card...
-
-
+
+ Commander...
-
-
+
+ Tag...
-
-
+
+ Deck Size
-
+ Cards:
-
-
+
+ Asc.
-
+ Sort by:
-
+ Filter by:
-
+ Display Settings
-
-
+
+ Search
-
-
+
+ Formats
@@ -7822,6 +8269,54 @@ Please check your shortcut settings!
+
+ TabCardArtRules
+
+
+ Card:
+
+
+
+
+ ProviderId:
+
+
+
+
+ Mode:
+
+
+
+
+ Reason:
+
+
+
+
+ Type a card name...
+
+
+
+
+ Add rule
+
+
+
+
+ Remove rule
+
+
+
+
+ Refresh
+
+
+
+
+ Card Art Rules
+
+
+TabDeckEditor
@@ -7870,7 +8365,7 @@ Please check your shortcut settings!
-
+ Deck: %1
@@ -7878,55 +8373,49 @@ Please check your shortcut settings!
TabDeckEditorVisual
-
+ Visual Deck: %1
-
+ &Visual Deck Editor
-
-
+
+ Card Info
-
-
+
+ Deck
-
-
- Filters
-
-
-
-
+ &View
-
+ Printing
-
+ Visible
-
+ Floating
-
+ Reset layout
@@ -7934,22 +8423,22 @@ Please check your shortcut settings!
TabDeckEditorVisualTabWidget
-
+ Visual Deck View
-
+ Visual Database Display
-
+ Deck Analytics
-
+ Sample Hand
@@ -7957,133 +8446,133 @@ Please check your shortcut settings!
TabDeckStorage
-
+ Local file system
-
+ Server deck storage
-
-
+
+ Open in deck editor
-
+ Rename deck or folder
-
+ Upload deck
-
+ Download deck
-
-
-
+
+
+ New folder
-
+ Delete
-
+ Open decks folder
-
+ Rename local folder
-
+ Rename local file
-
+ New name:
-
-
-
-
+
+
+
+ Error
-
+ Rename failed
-
-
+
+ Invalid deck file
-
+ Enter deck name
-
+ This decklist does not have a name.
Please enter a name:
-
+ Unnamed deck
-
+ Failed to upload deck to server
-
+ Delete local file
-
+ Are you sure you want to delete the selected files?
-
+ Delete remote decks
-
+ Are you sure you want to delete the selected decks?
-
-
+
+ Name of new folder:
@@ -8155,191 +8644,191 @@ Please enter a name:
TabGame
-
-
-
+
+
+ Replay
-
-
+
+ Game
-
-
+
+ Player List
-
-
+
+ Card Info
-
-
+
+ Messages
-
-
+
+ Replay Timeline
-
+ &Phases
-
+ &Game
-
+ Next &phase
-
+ Next phase with &action
-
+ Next &turn
-
+ Reverse turn order
-
+ &Remove all local arrows
-
+ Rotate View Cl&ockwise
-
+ Rotate View Co&unterclockwise
-
+ Game &information
-
+ Un&concede
-
-
-
+
+
+ &Concede
-
+ &Leave game
-
+ C&lose replay
-
+ &Focus Chat
-
+ &Say:
-
+ Selected cards
-
+ &View
-
+ Visible
-
+ Floating
-
+ Reset layout
-
+ Concede
-
+ Are you sure you want to concede this game?
-
+ Unconcede
-
+ You have already conceded. Do you want to return to this game?
-
+ Leave game
-
+ Are you sure you want to leave this game?
-
+ A player has joined game #%1
-
+ %1 has joined the game
-
+ You have been kicked out of the game.
@@ -8398,114 +8887,114 @@ Please enter a name:
-
+ Username:
-
+ IP Address:
-
+ Game Name:
-
+ GameID:
-
+ Message:
-
+ Main Room
-
+ Game Room
-
+ Private Chat
-
+ Past X Days:
-
+ Today
-
+ Last Hour
-
+ Maximum Results:
-
+ At least one filter is required.
The more information you put in, the more specific your results will be.
-
+ Get User Logs
-
+ Clear Filters
-
+ Filters
-
+ Log Locations
-
+ Date Range
-
+ Maximum Results
-
-
+
+ Message History
-
+ Failed to collect message history information.
-
+ There are no messages for the selected filters.
@@ -8523,27 +9012,27 @@ The more information you put in, the more specific your results will be.
-
+ %1 - Private chat
-
+ This user is ignoring you, they cannot see your messages in main chat and you cannot join their games.
-
+ Private message from
-
+ %1 has left the server.
-
+ %1 has joined the server.
@@ -8551,180 +9040,180 @@ The more information you put in, the more specific your results will be.
TabReplays
-
+ Local file system
-
+ Server replay storage
-
-
+
+ Watch replay
-
+ Rename
-
-
+
+ New folder
-
-
+
+ Delete
-
+ Open replays folder
-
+ Download replay
-
+ Toggle expiration lock
-
+ Get replay share code
-
-
+
+ Look up replay by share code
-
+ Rename local folder
-
+ Rename local file
-
+ New name:
-
+ Error
-
+ Rename failed
-
+ Name of new folder:
-
+ Delete local file
-
+ Are you sure you want to delete the selected files?
-
+ Are you sure you want to delete the selected replays?
-
+ Failed to get code
-
-
+
+ Either this server does not support replay sharing, or does not permit replay sharing for you.
-
-
-
+
+
+ Failed
-
+ Could not get replay code
-
+ Replay Share Code
-
+ Others can use this code to add the replay to their list of remote replays:
%1
-
+ Copy to clipboard
-
+ Replay share code
-
+ Replay code found
-
+ Replay was added, or you already had access to it.
-
+ Replay code not found
-
+ Failed to submit code
-
+ Unexpected error
-
+ Delete remote replay
@@ -8737,47 +9226,62 @@ The more information you put in, the more specific your results will be.
TabRoom
-
+
+ Friends
+
+
+
+
+ Online
+
+
+
+
+ Ignored
+
+
+
+ &Say:
-
+ Chat
-
+ &Room
-
+ &Leave room
-
+ &Clear chat
-
+ Chat Settings...
-
+ mentioned you.
-
+ Click to view
-
+ You are flooding the chat. Please wait a couple of seconds.
@@ -8790,30 +9294,30 @@ The more information you put in, the more specific your results will be.
-
-
-
-
+
+
+
+ Error
-
+ Failed to join the server room: it doesn't exist on the server.
-
+ The server thinks you are in the server room but your client is unable to display it. Try restarting your client.
-
+ You do not have the required permission to join this server room.
-
+ Failed to join the server room due to an unknown error: %1.
@@ -8821,97 +9325,97 @@ The more information you put in, the more specific your results will be.
TabSupervisor
-
+ Deck Editor
-
+ Visual Deck Editor
-
+ EDHRec
-
+ Archidekt
-
+ Home
-
+ &Visual Deck Storage
-
+ Visual Database Display
-
+ Server
-
+ Account
-
+ Deck Storage
-
+ Game Replays
-
+ Administration
-
+ Logs
-
+ Are you sure?
-
+ There are still open games. Are you sure you want to quit?
-
+ Click to view
-
+ Your buddy %1 has signed on!
-
+ Unknown Event
-
+ The server has sent you a message that your client does not understand.
This message might mean there is a new version of Cockatrice available or this server is running a custom or pre-release version.
@@ -8919,38 +9423,38 @@ To update your client, go to Help -> Check for Updates.
-
+ Idle Timeout
-
+ You are about to be logged out due to inactivity.
-
+ Promotion
-
+ You have been promoted. Please log out and back in for changes to take effect.
-
+ Warned
-
+ You have received a warning due to %1.
Please refrain from engaging in this activity or further actions may be taken against you. If you have any questions, please private message a moderator.
-
+ You have received the following message from the server.
(custom messages like these could be untranslated)
@@ -8959,12 +9463,12 @@ Please refrain from engaging in this activity or further actions may be taken ag
TabVisualDatabaseDisplay
-
+ Database Display
-
+ Visual Database Display
@@ -9001,42 +9505,42 @@ Please refrain from engaging in this activity or further actions may be taken ag
TranslateCounterName
-
+ Life
-
+ White
-
+ Blue
-
+ Black
-
+ Red
-
+ Green
-
+ Colorless
-
+ Other
@@ -9044,11 +9548,69 @@ Please refrain from engaging in this activity or further actions may be taken ag
UpdateDownloader
-
+ Could not open the file for reading.
+
+ UserCardArtSettingsDialog
+
+
+ Card Art Settings
+
+
+
+
+ Type a card name...
+
+
+
+
+ Card name:
+
+
+
+
+ Card ProviderId:
+
+
+
+
+ Left margin (%):
+
+
+
+
+ Right margin (%):
+
+
+
+
+ Vertical offset:
+
+
+
+
+ Zoom:
+
+
+
+
+ Parameters
+
+
+
+
+ Preview
+
+
+
+
+ Remove Banner Card
+
+
+UserContextMenu
@@ -9166,7 +9728,7 @@ Please refrain from engaging in this activity or further actions may be taken ag
-
+ Ban History
@@ -9181,77 +9743,87 @@ Please refrain from engaging in this activity or further actions may be taken ag
-
+ Failed to collect ban information.
-
-
-
+
+
+ Warning History
-
+ Warning Time;Moderator;User Name;Reason
-
+ User has never been warned.
-
+ Failed to collect warning information.
-
+ Failed to get admin notes.
-
-
+
+ Success
-
+ Successfully promoted user.
-
+ Successfully demoted user.
-
-
-
+
+ Kick Player
+
+
+
+
+ Are you sure you want to kick this player from the game?
+
+
+
+
+
+ Failed
-
+ Failed to promote user.
-
+ Failed to demote user.
-
+ Copy hash to clipboard
-
+ Remove this user's messages
@@ -9259,109 +9831,116 @@ Please refrain from engaging in this activity or further actions may be taken ag
UserInfoBox
-
+ Location:
-
+ Account Age:
-
+ Edit
-
+ Change password
-
+ Change avatar
-
+ Administrator
-
+ Moderator
-
+ Registered user
-
-
+
+ Unregistered user
-
+ Judge
-
+ Unknown
-
+ The entered password does not match your account.
-
-
-
+
+
+
+ Information
-
+ User information updated.
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ Error
-
+ User Information
-
+ Real Name:
-
+ User Level:
+
+
+ Edit Banner Card
+
+
-
+ %n Year(s), amount of years (only shown if more than 0)
@@ -9370,7 +9949,7 @@ Please refrain from engaging in this activity or further actions may be taken ag
-
+ %10%n Day(s) %20amount of years (if more than 0), amount of days, date in local short format
@@ -9379,212 +9958,433 @@ Please refrain from engaging in this activity or further actions may be taken ag
-
+ Enter Password
-
+ Password verification is required in order to change your email address
-
-
-
+
+
+ An error occurred while trying to update your user information.
-
- This server does not permit you to update your user informations.
+
+ The selected card is blacklisted on this server or another error occurred.
-
- Password changed.
+
+ Banner card removed.
-
- This server does not permit you to change your password.
-
-
-
-
- The new password is too short.
-
-
-
-
- The old password is incorrect.
-
-
-
-
- Avatar updated.
-
-
-
-
- This server does not permit you to update your avatar.
+
+ Banner card updated.
- An error occured while trying to updater your avatar.
+ This server does not permit you to update your user informations.
+
+
+
+
+ Password changed.
+
+
+
+
+ This server does not permit you to change your password.
+
+
+
+
+ The new password is too short.
+
+
+
+
+ The old password is incorrect.
+
+
+
+
+ Avatar updated.
+
+
+
+
+ This server does not permit you to update your avatar.
+
+
+
+
+ An error occured while trying to update your avatar.
+
+
+
+
+ This server does not permit you to update your user informations.
+ An error occured while trying to updater your avatar.
+
+
+
+
+ UserInfoPopup
+
+
+
+ Games
+
+
+
+
+ Chat
+
+
+
+
+ Open private chat
+
+
+
+
+ Profile
+
+
+
+
+ View user profile
+
+
+
+
+ Show this user's games
+
+
+
+
+ − Buddy
+
+
+
+
+ Remove from buddy list
+
+
+
+
+ + Buddy
+
+
+
+
+ Add to buddy list
+
+
+
+
+ − Ignore
+
+
+
+
+ Remove from ignore list
+
+
+
+
+ + Ignore
+
+
+
+
+ Add to ignore list
+
+
+
+
+ Ban
+
+
+
+
+ Ban from server
+
+
+
+
+ Warn
+
+
+
+
+ Warn user
+
+
+
+
+ Ban log
+
+
+
+
+ View ban history
+
+
+
+
+ Warn log
+
+
+
+
+ View warning history
+
+
+
+
+ Notes
+
+
+
+
+ View admin notes
+
+
+
+
+ − Mod
+
+
+
+
+ Demote from moderator
+
+
+
+
+ + Mod
+
+
+
+
+ Promote to moderator
+
+
+
+
+ − Judge
+
+
+
+
+ Demote from judge
+
+
+
+
+ + Judge
+
+
+
+
+ Promote to judge
+
+
+
+
+ Join game
+
+
+
+
+ Spectate
+
+
+
+
+
+ Loading games…
+
+
+
+
+ Could not load games.
+
+
+
+
+ No active games.UserInterfaceSettingsPage
-
+ General interface settings
-
+ &Double-click cards to play them (instead of single-click)
-
+ &Clicking plays all selected cards (instead of just the clicked card)
-
+ &Play all nonlands onto the stack (not the battlefield) by default
-
+ Do not delete &arrows inside of subphases
-
+ Close card view window when last card is removed
-
+ Auto focus search bar when card view window is opened
-
+ Annotate card text on tokens
-
- Show selection counter during drag selection
+
+ Show selection count during drag selection
-
- Show total selection counter
+
+ Show total selection count
-
+
+ Show subtype breakdown in selection tally
+
+
+
+ Use tear-off menus, allowing right click menus to persist on screen
-
+
+ Keep game chat focused when clicking in game (Note: disables card view search bar)
+
+
+
+ Notifications settings
-
+ Enable notifications in taskbar
-
+ Notify in the taskbar for game events while you are spectating
-
+ Notify in the taskbar when users in your buddy list connect
-
+ Animation settings
-
+ &Tap/untap animation
-
+ Deck editor/storage settings
-
+ Open deck in new tab by default
-
+ Use visual deck storage in game lobby
-
+ Use selection animation for Visual Deck Storage
-
+ When adding a tag in the visual deck storage to a .txt deck:
-
+ do nothing
-
+ ask to convert to .cod
-
+ always convert to .cod
-
+ Default deck editor type
-
+ Classic Deck Editor
-
+ Visual Deck Editor
-
+ Replay settings
-
+ Buffer time for backwards skip via shortcut:
@@ -9592,22 +10392,22 @@ Please refrain from engaging in this activity or further actions may be taken ag
UserListWidget
-
+ Users connected to server: %1
-
+ Users in this room: %1
-
+ Buddies online: %1 / %2
-
+ Ignored users online: %1 / %2
@@ -9615,35 +10415,45 @@ Please refrain from engaging in this activity or further actions may be taken ag
UtilityMenu
-
+ Increment all card counters
-
+ &Untap all permanents
-
+ R&oll die...
-
+
+ Flip coin
+
+
+
+ &Create token...
-
+ C&reate another token
-
+ Cr&eate predefined token
+
+
+ C&reate another %1 token
+
+ VisualDatabaseDisplayColorFilterWidget
@@ -9695,72 +10505,72 @@ Please refrain from engaging in this activity or further actions may be taken ag
VisualDatabaseDisplayFilterToolbarWidget
-
+ Sort by
-
+ Filter by
-
+ Save and load filters
-
+ Filter by exact card name
-
+ Filter by card main-type
-
+ Filter by card sub-type
-
+ Filter by set
-
+ Filter by format legality
-
+ Save/Load
-
+ Name
-
+ Main Type
-
+ Sub Type
-
+ Sets
-
+ Formats
@@ -9768,22 +10578,22 @@ Please refrain from engaging in this activity or further actions may be taken ag
VisualDatabaseDisplayFormatLegalityFilterWidget
-
+ Show formats with at least:
-
+ cards
-
+ Do not display formats with less than this amount of cards in the database
-
+ Filter mode (AND/OR/NOT conjunctions of filters)
@@ -9801,32 +10611,32 @@ Please refrain from engaging in this activity or further actions may be taken ag
VisualDatabaseDisplayMainTypeFilterWidget
-
+ Show main types with at least:
-
+ cards
-
+ Do not display card main-types with less than this amount of cards in the database
-
+ Filter mode (AND/OR/NOT conjunctions of filters)
-
+ Mode: Exact Match
-
+ Mode: Includes
@@ -9834,27 +10644,27 @@ Please refrain from engaging in this activity or further actions may be taken ag
VisualDatabaseDisplayNameFilterWidget
-
+ Filter by name... (Exact match)
-
+ Load from Deck
-
+ Apply all card names in currently loaded deck as exact match name filters
-
+ Load from Clipboard
-
+ Apply all card names in clipboard as exact match name filters
@@ -9862,7 +10672,7 @@ Please refrain from engaging in this activity or further actions may be taken ag
VisualDatabaseDisplayRecentSetFilterSettingsWidget
-
+ Filter to most recent sets
@@ -9870,19 +10680,19 @@ Please refrain from engaging in this activity or further actions may be taken ag
VisualDatabaseDisplaySetFilterWidget
-
+ Search sets...
-
-
+
+ Mode: Exact Match
-
-
+
+ Mode: Includes
@@ -9890,37 +10700,37 @@ Please refrain from engaging in this activity or further actions may be taken ag
VisualDatabaseDisplaySubTypeFilterWidget
-
+ Search subtypes...
-
+ Show sub types with at least:
-
+ cards
-
+ Do not display card sub-types with less than this amount of cards in the database
-
+ Filter mode (AND/OR/NOT conjunctions of filters)
-
+ Mode: Exact Match
-
+ Mode: Includes
@@ -9928,23 +10738,23 @@ Please refrain from engaging in this activity or further actions may be taken ag
VisualDatabaseDisplayWidget
-
+ Search by card name (or search expressions)
-
+ Visual
-
+ Loading database ...
-
+ Clear all filters
@@ -9983,17 +10793,17 @@ Please refrain from engaging in this activity or further actions may be taken ag
-
+ Toggle Layout: Overlap
-
+ Change how cards are displayed within zones (i.e. overlapped or fully visible.)
-
+ Toggle Layout: Flat
@@ -10022,17 +10832,17 @@ Please refrain from engaging in this activity or further actions may be taken ag
VisualDeckEditorWidget
-
+ Type a card name here for suggestions from the database...
-
+ Quick search and add card
-
+ Search for closest match in the database (with auto-suggestions) and add preferred printing to the deck on pressing enter
@@ -10150,43 +10960,43 @@ Please refrain from engaging in this activity or further actions may be taken ag
WarningDialog
-
+ Which warning would you like to send?
-
+ Redact all messages from this user in all rooms
-
+ &OK
-
+ &Cancel
-
+ Warn user for misconduct
-
-
+
+ Error
-
+ User name to send a warning to can not be blank, please specify a user to warn.
-
+ Warning to use can not be blank, please select a valid warning to send.
@@ -10194,133 +11004,133 @@ Please refrain from engaging in this activity or further actions may be taken ag
WndSets
-
+ Move selected set to the top
-
+ Move selected set up
-
+ Move selected set down
-
+ Move selected set to the bottom
-
+ Search by set name, code, or type
-
+ Default order
-
+ Restore original art priority order
-
+ Enable all sets
-
+ Disable all sets
-
+ Enable selected set(s)
-
+ Disable selected set(s)
-
+ Deck Editor
-
+ Use CTRL+A to select all sets in the view.
-
+ Only cards in enabled sets will appear in the card list of the deck editor.
-
+ Image priority is decided in the following order:
-
+ first the CUSTOM Folder (%1), then the Enabled Sets in this dialog (Top to Bottom)%1 is a link to the wiki
-
+ Include cards rebalanced for Alchemy [requires restart]
-
+ Card Art
-
+ How to use custom card art
-
+ Hints
-
+ Note
-
+ Sorting by column allows you to find a set while not changing set priority.
-
+ To enable ordering again, click the column header until this message disappears.
-
+ Use the current sorting as the set priority instead
-
+ Sorts the set priority using the same column
-
+ Manage sets
@@ -10328,72 +11138,72 @@ Please refrain from engaging in this activity or further actions may be taken ag
ZoneViewWidget
-
+ Search by card name (or search expressions)
-
+ Ungrouped
-
+ Group by Type
-
+ Group by Mana Value
-
+ Group by Color
-
+ Unsorted
-
+ Sort by Name
-
+ Sort by Type
-
+ Sort by Mana Cost
-
+ Sort by Colors
-
+ Sort by P/T
-
+ Sort by Set
-
+ shuffle when closing
-
+ pile view
@@ -10401,7 +11211,7 @@ Please refrain from engaging in this activity or further actions may be taken ag
i18n
-
+ English
@@ -10409,12 +11219,12 @@ Please refrain from engaging in this activity or further actions may be taken ag
main
-
+ Connect on startup
-
+ Debug to file
@@ -10428,7 +11238,7 @@ Please refrain from engaging in this activity or further actions may be taken ag
-
+ Deck Editor
@@ -10509,7 +11319,7 @@ Please refrain from engaging in this activity or further actions may be taken ag
-
+ Replays
@@ -10624,129 +11434,129 @@ Please refrain from engaging in this activity or further actions may be taken ag
-
-
+
+ Load Deck from Clipboard...
-
+ Edit Deck in Clipboard, Annotated
-
+ Edit Deck in Clipboard
-
+ New Deck
-
+ Open Custom Pictures Folder
-
+ Print Deck...
-
+ Delete Card
-
-
+
+ Reset Layout
-
+ Save Deck
-
+ Save Deck as...
-
+ Save Deck to Clipboard, Annotated
-
+ Save Deck to Clipboard, Annotated (No Set Info)
-
+ Save Deck to Clipboard
-
+ Save Deck to Clipboard (No Set Info)
-
+ Load Local Deck...
-
+ Load Remote Deck...
-
+ Set Ready to Start
-
+ Toggle Sideboard Lock
-
+ Add Green Counter
-
+ Remove Green Counter
-
+ Set Green Counters...
-
+ Add Red Counter
-
+ Remove Red Counter
-
+ Set Red Counters...
-
+ Add Life Counter
@@ -10756,724 +11566,744 @@ Please refrain from engaging in this activity or further actions may be taken ag
-
+
+ Load deck from online service...
+
+
+
+
+ Load from website...
+
+
+
+ Unload Deck
-
+ Force Start
-
+ Add Card Counter (F)
-
+ Remove Card Counter (F)
-
+ Set Card Counters (F)...
-
+ Add Card Counter (E)
-
+ Remove Card Counter (E)
-
+ Set Card Counters (E)...
-
+ Add Card Counter(D)
-
+ Remove Card Counter (D)
-
+ Set Card Counters (D)...
-
+ Add Card Counter (C)
-
+ Remove Card Counter (C)
-
+ Set Card Counters (C)...
-
+ Add Card Counter (B)
-
+ Remove Card Counter (B)
-
+ Set Card Counters (B)...
-
+ Add Card Counter (A)
-
+ Remove Card Counter (A)
-
+ Set Card Counters (A)...
-
+ Remove Life Counter
-
+ Set Life Counters...
-
+ Add White Counter
-
+ Remove White Counter
-
+ Set White Counters...
-
+ Add Blue Counter
-
+ Remove Blue Counter
-
+ Set Blue Counters...
-
+ Add Black Counter
-
+ Remove Black Counter
-
+ Set Black Counters...
-
+ Add Colorless Counter
-
+ Remove Colorless Counter
-
+ Set Colorless Counters...
-
+ Add Other Counter
-
+ Remove Other Counter
-
+ Set Other Counters...
-
+ Increment all card counters
-
+ Add Power (+1/+0)
-
+ Remove Power (-1/-0)
-
+ Move Toughness to Power (+1/-1)
-
+ Add Toughness (+0/+1)
-
+ Remove Toughness (-0/-1)
-
+ Move Power to Toughness (-1/+1)
-
+ Add Power and Toughness (+1/+1)
-
+ Remove Power and Toughness (-1/-1)
-
+ Set Power and Toughness...
-
+ Reset Power and Toughness
-
+ Untap
-
+ Upkeep
-
+ Draw
-
+ First Main Phase
-
+ Start Combat
-
+ Attack
-
+ Block
-
+ Damage
-
+ End Combat
-
+ Second Main Phase
-
+ End
-
+ Next Phase
-
+ Next Phase Action
-
+ Next Turn
-
+ Hide Card in Reveal Window
-
+ Tap / Untap Card
-
+ Untap All
-
+ Toggle Skip UntappingToggle Untap
-
+ Turn Card Over
-
+ Peek Card
-
+ Play Card
-
+ Play Card, Face Down
-
+ Attach Card...
-
+ Unattach Card
-
+ Clone Card
-
+ Create Token...
-
+ Create All Related Tokens
-
+ Create Another Token
-
+ Set Annotation...
-
+
+ Reduce Life by Power
+
+
+
+ Select All Cards in Zone
-
+ Select All Cards in Row
-
+ Select All Cards in Column
-
+ Reveal Selected Cards to All Players
-
-
+
+ Bottom of Library
-
-
-
-
+
+
+
+ Exile
-
-
-
-
+
+
+
+ Graveyard
-
-
+
+ Hand
-
-
+
+ Top of Library
-
-
+
+ Battlefield, Face Down
-
+ Battlefield
-
+ Library
-
+ Sideboard
-
+ Top Cards of Library
-
+ Bottom Cards of Library
-
+ Close Recent View
-
-
+
+ Stack
-
-
+
+ Graveyard (Multiple)
-
-
+
+ Graveyard (Multiple), Face Down
-
-
+
+ Exile (Multiple)
-
-
+
+ Exile (Multiple), Face Down
-
+ Stack Until Found
-
+ Draw Bottom Card
-
+ Draw Multiple Cards from Bottom...
-
+ Draw Arrow...
-
+ Remove Local Arrows
-
+ Leave Game
-
+ Concede
-
+ Roll Dice...
-
+
+ Flip Coin
+
+
+
+ Shuffle Library
-
+ Shuffle Top Cards of Library
-
+ Shuffle Bottom Cards of Library
-
+ Mulligan
-
+ Mulligan (Same hand size)
-
+ Mulligan (Hand size - 1)
-
+ Draw a Card
-
+ Draw Multiple Cards...
-
+ Undo Draw
-
+ Always Reveal Top Card
-
+ Always Look At Top Card
-
+ Sort Hand by Name
-
+ Sort Hand by Type
-
+ Sort Hand by Mana Value
-
+ Reveal Hand to All Players
-
+ Reveal Random Card to All Players
-
+ Rotate View Clockwise
-
+ Rotate View Counterclockwise
-
+ Unfocus Text Box
-
+ Focus Chat
-
+ Clear Chat
-
+ Refresh
-
+ Skip Forward
-
+ Skip Backward
-
+ Skip Forward by a lot
-
+ Skip Backward by a lot
-
+ Play/Pause
-
+ Toggle Fast Forward
-
+ Home
-
+ Visual Deck Storage
-
+ Deck Storage
-
+ Server
-
+ Account
-
+ Administration
-
+ Logs
diff --git a/cockatrice/resources/backgrounds/home-dark.png b/cockatrice/resources/backgrounds/home-dark.png
new file mode 100644
index 000000000..68f48e2c2
Binary files /dev/null and b/cockatrice/resources/backgrounds/home-dark.png differ
diff --git a/cockatrice/resources/backgrounds/home-light.png b/cockatrice/resources/backgrounds/home-light.png
new file mode 100644
index 000000000..eaaaba932
Binary files /dev/null and b/cockatrice/resources/backgrounds/home-light.png differ
diff --git a/cockatrice/resources/backgrounds/home.png b/cockatrice/resources/backgrounds/home.png
index 68f48e2c2..eaaaba932 100644
Binary files a/cockatrice/resources/backgrounds/home.png and b/cockatrice/resources/backgrounds/home.png differ
diff --git a/cockatrice/resources/cockatrice-logo-white.svg b/cockatrice/resources/cockatrice-logo-white.svg
new file mode 100644
index 000000000..b3b31077f
--- /dev/null
+++ b/cockatrice/resources/cockatrice-logo-white.svg
@@ -0,0 +1,21 @@
+
+
+
+
diff --git a/cockatrice/resources/cockatrice.svg b/cockatrice/resources/cockatrice.svg
index d2e22da31..89ba62dcf 100644
--- a/cockatrice/resources/cockatrice.svg
+++ b/cockatrice/resources/cockatrice.svg
@@ -2,20 +2,20 @@
diff --git a/cockatrice/resources/countries/cn.svg b/cockatrice/resources/countries/cn.svg
index f510cf049..45b608127 100644
--- a/cockatrice/resources/countries/cn.svg
+++ b/cockatrice/resources/countries/cn.svg
@@ -52,8 +52,7 @@
id="defs8">
-
+
diff --git a/cockatrice/resources/help/search.md b/cockatrice/resources/help/search.md
index 0c8bdb450..fd0a12507 100644
--- a/cockatrice/resources/help/search.md
+++ b/cockatrice/resources/help/search.md
@@ -52,6 +52,7 @@ In this list of examples below, each entry has an explanation and can be clicked
Edition:
[set:lea](#set:lea) (Cards that appear in Alpha, which has the set code LEA)
[e:lea OR e:leb](#e:lea OR e:leb) (Cards that appear in Alpha or Beta)
+
[e<8ED](#e<8ED) (Cards that appear before 8th edition)
Negate:
[c:wu -c:m](#c:wu -c:m) (Any card that is white or blue, but not multicolored)