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

オープン
#5,476 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
44/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp
領域
design

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
C++
スター
1.9k
フォーク
588
平均マージ
4日 9分
マージ済み PR(30日)
11

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

multitheftauto/mtasa-blue のほかの issue

multitheftauto/mtasa-blue の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。