Commit graph

14 commits

Author SHA1 Message Date
48d5d54b77 Fractional GUI scale (0.5 step), fit menu to window, fix settings pages
- display.gui-scale is now a number: 0 (auto) or 0.5..4 in 0.5 steps
- explicit scale is no longer limited by window size (tiled windows);
  only an open menu page is shrunk to fit the window
- snap Batch2D vertices to pixels on fractional scale (fixes dots above text)
- pass app to settings_common via options (not visible inside modules)
- gui.get_scale() returns a number
2026-10-03 15:28:03 +02:00
33e132a231 Share settings page helpers, add GUI cursor/scale API
- move create_trackbar_setting/update_trackbar_label/create_checkbox from
  settings_audio/display/graphics pages to core:settings_common module
- GUI scale trackbar shows the really applied scale, e.g. '3 (effective 2)'
- add gui.get_scale(), gui.get_max_scale(), gui.get_cursor_pos() (UI units);
  document that input.get_mouse_pos() returns window pixels
- InventoryView default color is defined once (InventoryView::DEFAULT_COLOR)
  instead of duplicated literals; 'color' attribute still overrides it
2026-10-03 13:12:30 +00:00
708c276787 Add GUI scale setting and volume contrast setting
GUI scale (#737):
- add display.gui-scale setting (0 - auto, 1..4 - fixed integer scale)
- auto mode picks the largest scale keeping at least 640x480 UI units
- apply scale in GUI (root size, camera, cursor, tooltips, scissors)
- HUD layout and ModelViewer use scaled coordinates
- add GUI Scale trackbar to display settings

Volume contrast (#399):
- add audio.volume-contrast setting (100% - unchanged sounds,
  0% - loud sounds are lowered to the level of quiet ones)
- loudness (RMS) of a sound is calculated once and cached
- add trackbar to audio settings and reset page
2026-10-03 12:56:54 +00:00
MihailRis
eb453d8170 add audio.recording-enabled setting 2026-05-24 14:15:31 +03:00
MihailRis
a6301c8837 remove settings-related functions from core 2026-01-07 02:39:29 +03:00
MihailRis
1a0535c8af add 'graphics.soft-lighting' to settings menu 2025-11-10 18:40:50 +03:00
MihailRis
070424077a add window type selection to settings menu 2025-10-01 00:06:07 +03:00
ChancellorIkseew
b30b19e836
Add borderless window mode (from tasks) (#630) 2025-09-30 23:53:15 +03:00
MihailRis
aaa2115cd6 add 'display.limit-fps-iconified' setting 2024-11-04 20:16:23 +03:00
ChancellorIkseew
d46afee063 add settings reset 2024-10-31 01:08:01 +10:00
MihailRis
a2f79e979e fix: framerate setting values not translated 2024-07-30 19:45:47 +03:00
MihailRis
c0ba5be458 add framerate control 2024-07-28 22:31:27 +03:00
MihailRis
f46e4a7989 add trackbar 'sub-consumer' for value label refresh when 'change-on-release' 2024-07-28 22:15:18 +03:00
MihailRis
7c6d620560 add setting camera.inertia & add display settings menu page 2024-07-15 14:23:31 +03:00