Commit graph

178 commits

Author SHA1 Message Date
11b44b78f7 Apply explicit GUI scale as is
Explicitly chosen scale is no longer reduced to fit the open menu page
(2 stayed 1.5 in settings). Fitting to the window remains in auto mode.
2026-10-03 13:31:38 +00:00
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
cdc5302dd1 add 'Fog' settings to ui 2026-09-26 19:18:29 +03:00
boolean-false
28b849229c fix: validate content pack dependency versions 2026-09-14 01:47:10 +07:00
neveix
25d2d03de4 add search textbox auto-focus in main menu 2026-08-29 23:48:51 +05:00
neveix
ff652226fb add pack filter by id 2026-08-29 23:46:39 +05:00
MihailRis
b9b8c6b7da Merge branch 'main' into fix-assets-pipeline 2026-08-19 23:54:50 +03:00
EsPaKira
4be73acc61 fix fix lua version comparision 2026-08-02 21:07:02 +04:00
EsPaKira
9444dc0c45 fix lua version compare 2026-08-02 20:02:56 +04:00
MihailRis
8a40bf4fcd feat: auto-focus search textbox in content menu 2026-07-28 23:10:47 +03:00
MihailRis
86fdcb289b fix the margin 2026-07-24 19:19:07 +03: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
c4bddba6b7 fix controls settings panel height 2026-05-24 13:33:34 +03:00
MihailRis
097cb59b6d fix: incorrect packs count in world creation menu 2026-03-22 01:00:41 +03:00
MihailRis
a4b52b241c add audio.input.get_input_info 2026-03-21 23:05:33 +03:00
MihailRis
3cb295fd58 update session library 2026-03-18 21:52:24 +03:00
MihailRis
471d21da98 add max-length to languages panel 2026-02-20 17:29:08 +03:00
MihailRis
c7508d6270 Merge branch 'main' into volume-renderer 2026-02-13 02:07:20 +03:00
MihailRis
d6bd5bd8fa add 'audio.acoustic-effects' setting 2026-02-12 21:48:09 +03:00
MihailRis
1194379f99 add 'graphics.clouds-quality' setting 2026-02-12 18:34:32 +03:00
MihailRis
965faebc7b add gui.close_menu 2026-02-06 18:25:52 +03:00
MihailRis
5a742b8a0f feat: post-runnables context now allowing to use content-related app.* functions 2026-01-24 14:21:38 +03:00
MihailRis
c57fe21120 move world-related functions from core library 2026-01-07 20:12:06 +03:00
MihailRis
9af675611f remove core.quit add 'silent' argument to app.quit 2026-01-07 19:37:57 +03:00
MihailRis
a6301c8837 remove settings-related functions from core 2026-01-07 02:39:29 +03:00
MihailRis
13d13e89cf move open_folder, open_url from core to app 2026-01-07 02:03:33 +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
58dee92c26 change 'graphics.ssao' from flag to number 2025-12-19 18:55:55 +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
850a12c2ea fix scripts menu 2025-11-20 17:37:12 +03:00
MihailRis
fb25f52c67
Merge pull request #649 from MihailRis/generated-pcm-stream
Generated PCM stream (part 1)
2025-11-10 19:12:48 +03:00
MihailRis
1a0535c8af add 'graphics.soft-lighting' to settings menu 2025-11-10 18:40:50 +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
ca6096c397 minor refactor 2025-11-04 11:53:48 +03:00
MihailRis
0d6a61062a Merge branch 'main' into dev 2025-10-14 23:18:15 +03:00
MihailRis
ee6f006b79 fix broken dependencies management 2025-10-14 22:54:23 +03:00
KotIsOff
f73663dc9c refactor Version pseudoclass in content.xml.lua 2025-10-14 21:17:39 +03:00
MihailRis
8a858beeb4 fix: some container attributes not available in panel 2025-10-06 20:53:29 +03:00
MihailRis
209479be46
Merge pull request #634 from MihailRis/display-mode-setting-selectbox
Display mode setting selectbox
2025-10-01 00:36:44 +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