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

Đang mở
#5,476 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
44/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp
Lĩnh vực
design

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
C++
Star
1.9k
Fork
588
Merge trung bình
4 ngày 9 phút
Pull request đã merge (30 ngày)
11

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của multitheftauto/mtasa-blue

Tất cả issue của multitheftauto/mtasa-blue

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.