GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mekedron/ck3-ultrawide-fix: CK3 mod that fixes the pause menu being cut off on ultrawide displays like 5120x1440

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
gui
gui
 
 
steam-workshop
steam-workshop
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
descriptor.mod
descriptor.mod
 
 
install.sh
install.sh
 
 
thumbnail.png
thumbnail.png
 
 

Repository files navigation

Ultrawide Pause Menu Fix (CK3)

Fixes the in-game pause menu (Escape) being cut off vertically on ultrawide / super-ultrawide displays such as 5120x1440.

Ultrawide Pause Menu Fix

Where to get

  • Steam Workshop
  • Paradox Mods

Or build it from this repository - see Installing below.

Cause

game/gui/frontend_ingame_menu.gui scales its content with

scale = "[ScaleToFitElementOutside('(int32)1920', '(int32)1080')]"

ScaleToFitElementOutside is a "cover" fit: max(width/1920, height/1080). On 5120x1440 that is max(2.67, 1.33) = 2.67, so the ~830px tall menu column is blown up to ~2200px and does not fit into 1440px of screen height.

Every other full-screen frontend layout (frontend_main.gui, frontend_bookmarks.gui, window_barbershop.gui) uses ScaleToFitElementInside instead - which is why the main menu looks fine and only the pause menu breaks.

Fix

gui/frontend_ingame_menu.gui overrides the vanilla file with three changes to the single outer widget:

  • ScaleToFitElementOutside -> ScaleToFitElementInside (min(w/1920, h/1080) = 1.33x)
  • size = { 100% 100% } -> size = { 1920 1080 }
  • parentanchor = left|vcenter -> parentanchor = center

The last two mirror frontend_main.gui, so the menu column lands at the same horizontal position as in the main menu instead of hugging the left screen edge. The background art is a background block on the window itself and still covers the whole screen.

Layout

descriptor.mod                    mod metadata (read from inside the mod dir)
thumbnail.png                     Workshop preview image, must sit in the mod root
gui/frontend_ingame_menu.gui      overrides game/gui/frontend_ingame_menu.gui
install.sh                        copies the mod into the Proton prefix
steam-workshop/                   Workshop listing texts and preview image

Installing

Run ./install.sh. It copies the mod into the CK3 mod directory inside the Proton prefix:

~/.local/share/Steam/steamapps/compatdata/1158310/pfx/drive_c/users/steamuser/
  Documents/Paradox Interactive/Crusader Kings III/mod/

That is the path the game and the Paradox launcher actually use under Proton. ~/.local/share/Paradox Interactive/Crusader Kings III is the native-Linux location and is not read by the Proton build - a mod placed there is invisible to the launcher.

Close the launcher before installing, then start it and enable "Ultrawide Pause Menu Fix" in the playset.

Game version

Built against 1.21.0 (Florin). GUI overrides fully replace the vanilla file, so after a game patch re-diff gui/frontend_ingame_menu.gui against <steam>/Crusader Kings III/game/gui/frontend_ingame_menu.gui.

About

CK3 mod that fixes the pause menu being cut off on ultrawide displays like 5120x1440

Topics

crusader-kings-3mod

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.