Commit graph

21 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
a99c6aa8e0 fix audio input device settings 2026-07-20 21:15:59 +03:00
MihailRis
362acd0436 update texts 2026-05-24 16:12:07 +03:00
MihailRis
eb453d8170 add audio.recording-enabled setting 2026-05-24 14:15:31 +03:00
MihailRis
a4b52b241c add audio.input.get_input_info 2026-03-21 23:05:33 +03:00
MihailRis
d6bd5bd8fa add 'audio.acoustic-effects' setting 2026-02-12 21:48:09 +03:00
MihailRis
a6301c8837 remove settings-related functions from core 2026-01-07 02:39:29 +03:00
MihailRis
6942704c78 cleanup 2026-01-05 16:45:17 +03:00
MihailRis
b3ae6eb59a add 'record-audio' permission 2026-01-05 16:40:00 +03:00
MihailRis
0f0e00cdde add 'audio.input-device' setting 2025-11-21 22:32:19 +03:00
MihailRis
8cfff09c0b add 'none' input device 2025-11-21 21:43:29 +03:00
MihailRis
96bc395561 update audio lib 2025-11-21 20:34:33 +03:00
MihailRis
be1f336d90 rename audio.input.fetch_input to audio.input.fetch 2025-11-07 22:32:16 +03:00
MihailRis
41e2b015d7 update audio settings page 2025-11-04 22:06:06 +03:00
MihailRis
88e61125d1 add device select to audio settings 2025-11-04 19:47:35 +03:00
MihailRis
2380375f3c settings menu update + UINode 'enabled' property 2024-04-30 16:41:44 +03:00
MihailRis
167388aefb track-width fixes 2024-04-28 20:09:55 +03:00
MihailRis
201209887f audio settings fix 2024-04-22 19:04:00 +03:00
MihailRis
9cdf3ff016 settings panel moved to xml (WIP) 2024-04-20 03:01:37 +03:00
Renamed from res/layouts/pages/settings-audio.xml.lua (Browse further)