Small Settings UI on high resolutions (e.g. 4K)

Aperta
#5,476 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
44/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp
Ambito
design

Direzione di ricerca

The issue identifies the settings UI and console UI but names no source files or tests. Start by locating their CEGUI-related code and how screen resolution is handled; compare behavior at the reported high and low resolutions. Done means settings scale appropriately across resolutions, with an adjustable scale option, and console font and textbox scaling are addressed.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
Describe the bug

I've recently switched to 4K and noticed in a bunch of games (most notably ones using IMGUI) that the UI scaling is just not working correctly or even present at all.

I looked through MTA's source code a bit and it also seems to be using a custom UI library (though not IMGUI).

On a 4K monitor the settings UI is very small and I have to end up leaning into my monitor to be able to properly see what each option is.

Image

This kinda goes in the other direction, too... if the resolution is too small then the settings UI will fill out the entire screen.
Example on 720x480 (I doubt anyone plays on that, but just as a point of reference)

Image

I'm not too well knowledged in CEGUI but I would assume it's somehow possible to manually or even auto scale to the screen size. Unsure how well that'd work on lower resolutions though...
Other games and apps, such as the Openplanet plugin loader mod for Trackmania, has a UI scale option ranging from 0.5x to 3.0x, which I feel would be a better addition here, too

Steps to reproduce
  1. Boot MTA in a high screen resolution (e.g. 3840x2160 or even 2560x1440, it's smaller there, too)
  2. Notice the settings UI is not scaling properly
Version

Client: Multi Theft Auto v1.6-release-24149

Additional context

This extends to the console UI, too - the size seems okay, but the font scale (and textbox size by extension) definitely needs to be adjustable:

Image
Relevant log output

Security Policy
  • I have read and understood the Security Policy and this issue is not security related.
Lingua principale
C++
Stelle
1.9k
Fork
588
Merge medio
4g 9m
PR unite (30g)
11

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di multitheftauto/mtasa-blue

Tutte le issue di multitheftauto/mtasa-blue

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.