Commit graph

1594 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
851c1a0e27 Limit GUI scale by window size, fix tooltip dash glyph
Manual GUI scale is now limited so that UI is never smaller than
640x480 units (as in other games), otherwise menus did not fit the
window at scale 3-4 in small windows. The unsupported en dash in the
setting tooltip is replaced with a hyphen.
2026-10-03 13:06:07 +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
f6a7a99a74 revert "update shadows.glsl"
This reverts commit 19a952a3be.
2026-10-03 11:10:56 +03:00
MihailRis
ef4207aed0 fixes 2026-10-02 17:44:48 +03:00
MihailRis
fc16c1ebcd Merge branch 'main' into vca-fixes 2026-10-01 21:53:30 +03:00
MihailRis
e4eae0416e fix the 2026-09-29 18:59:28 +03:00
MihailRis
dd577dd080 cleanup 2026-09-29 18:44:19 +03:00
MihailRis
d3de449b7b fix absolute bezier keyframes 2026-09-29 18:41:02 +03:00
MihailRis
ea63d29221 fix custom curves 2026-09-29 18:39:46 +03:00
MihailRis
19a952a3be update shadows.glsl 2026-09-28 01:47:23 +03:00
MihailRis
ffba11e87f update clouds shader 2026-09-28 01:40:48 +03:00
MihailRis
8726a95a9b fix 2026-09-27 23:23:21 +03:00
MihailRis
2b8d97a2ca feat: color temperature compensation 2026-09-27 23:21:45 +03:00
MihailRis
771c72324c update advanced shading 2026-09-27 23:13:45 +03:00
MihailRis
0151fdfbf7 implement actual animation blending in core:animator 2026-09-27 02:14:36 +03:00
MihailRis
c3ca6be056 add missing local 2026-09-26 23:13:54 +03:00
MihailRis
6b36992119 make VCA animation line intensity multiplier implicit 2026-09-26 23:09:40 +03:00
MihailRis
cbe2a27e34 update en_US.txt, ru_RU.txt 2026-09-26 19:21:00 +03:00
MihailRis
cdc5302dd1 add 'Fog' settings to ui 2026-09-26 19:18:29 +03:00
MihailRis
e467c85adc add 'enable-fog' setting 2026-09-26 19:13:08 +03:00
MihailRis
f5de330f3f fix abs function is not available in VCA expressions 2026-09-26 18:07:45 +03:00
MihailRis
0dfc87700d cleanup 2026-09-25 23:58:42 +03:00
MihailRis
e485aedc8e add 'period' keyframes-based line parameter 2026-09-25 23:56:32 +03:00
MihailRis
5310de45f0 fix: cos function is not available in VCA expressions 2026-09-25 23:32:59 +03:00
MihailRis
8b4cfd1099 disable codegen trace 2026-09-23 22:27:12 +03:00
MihailRis
c573d01cb7 add 'texture' vca directive 2026-09-23 22:26:54 +03:00
MihailRis
b9b17358a1 fix file.remove_ext 2026-09-20 22:01:18 +03:00
MihailRis
60f184ae43 fix file.ext 2026-09-20 21:58:36 +03:00
MihailRis
ca9ff7ba7e fix missing default rotation-order value 2026-09-19 15:27:21 +03:00
MihailRis
d40070abab Merge branch 'main' into new-animation-features 2026-09-17 00:14:03 +03:00
MihailRis
ad22763a1f add new skeleton:get_color, skeleton:set_color overloads 2026-09-16 23:40:41 +03:00
MihailRis
ae082abaa2 feat: allow passing rgba color to entity skeletons and block wraps 2026-09-16 23:28:03 +03:00
MihailRis
9f40303661 Merge branch 'main' into new-animation-features 2026-09-15 21:04:28 +03:00
MihailRis
85cc55c63b
Merge pull request #972 from MihailRis/upgrade-http-in-vc
upgrade http requests
2026-09-14 22:42:33 +03:00
MihailRis
a773dfbd0e remove _http_error_callbacks 2026-09-14 19:56:34 +03:00
MihailRis
afc8ff2a0f fix http error event 2026-09-14 18:36:18 +03:00
MihailRis
ef3a5cf278 feat: http response as table 2026-09-14 12:41:12 +03:00
boolean-false
28b849229c fix: validate content pack dependency versions 2026-09-14 01:47:10 +07:00
MihailRis
946728e54e fix 2026-09-10 20:38:50 +03:00
MihailRis
9226f362a7 cleanup network.* functions 2026-09-10 20:01:00 +03:00
MihailRis
21bd5ba1b2 update animation api 2026-09-10 19:09:49 +03:00
MihailRis
aa6ac5f5bd add animation.stop 2026-09-10 00:14:15 +03:00
MihailRis
48ca3ab5f9 move animation code generation to separate module 2026-09-10 00:11:04 +03:00
MihailRis
894101a46a cleanup network library 2026-09-09 23:57:58 +03:00
MihailRis
1c7bf2de01 add network.request 2026-09-09 23:53:03 +03:00
MihailRis
3ed80d0c95 feat: custom curves 2026-09-09 19:26:17 +03:00
MihailRis
6b07f062d7 add some temporary solution (don't look) 2026-09-08 20:00:23 +03:00
MihailRis
b98bfcc135 cleanup 2026-09-08 19:39:03 +03:00