Commit graph

4398 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
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
nogitsune-youkai
d062c28376
Fix: correct luajit lookup on Windows (#1006)
* Fix: correct luajit paths

* fixed comment

* removed unnecessary comments
2026-10-02 17:23:49 +03:00
MihailRis
f90750c066
Merge pull request #1002 from nogitsune-youkai/integer-overflow-assert
Fix: Add asserts to prevent undefined behavior on empty containers
2026-10-01 12:13:03 +03:00
boolean-false
7211e99bc8 fix text width and caret positioning in text boxes 2026-09-29 20:31:14 +07:00
nogitsune-youkai
3378001b9b Fix: Add asserts to prevent undefined behavior on empty containers 2026-09-28 22:02:08 +03:00
nogitsune-youkai
611852c273 Refactor: Use size_type for sizes and indices 2026-09-28 00:38:38 +03:00
nogitsune-youkai
4549d48924 Fix: Make clear and pop_back noexcept compliant 2026-09-27 19:47:52 +03:00
MihailRis
9ca0b5154d
Merge pull request #992 from MihailRis/remove-explicit-multiplier-from-vca
make VCA animation line intensity multiplier implicit
2026-09-27 16:54:28 +03:00
MihailRis
00825f485c
Merge pull request #994 from MihailRis/fix-xml.tostring
fix xml.tostring
2026-09-27 16:54:11 +03:00
MihailRis
61af506f4c fix xml.tostring 2026-09-27 16:14:14 +03:00
boolean-false
64ba1dad4e fix glyph positions 2026-09-27 17:33:55 +07:00
MihailRis
6b36992119 make VCA animation line intensity multiplier implicit 2026-09-26 23:09:40 +03:00
MihailRis
bac0d43fd7
Merge pull request #991 from nogitsune-youkai/vectorFix
Fix exception safety in util::stack_vector::push_back
2026-09-26 22:32:35 +03:00
nogitsune-youkai
273682355a Fix exception safety in util::stack_vector::push_back 2026-09-26 21:15:14 +03:00
MihailRis
4946a25ca5
Merge pull request #990 from MihailRis/recursion-related-fixes
fix recursion-related bugs
2026-09-26 21:06:57 +03:00
MihailRis
c3b50b5ab2 fix recursive iframe 2026-09-26 20:28:20 +03:00
MihailRis
4f1411b005 fix infinite recursion on moveInto used to move to descendant node 2026-09-26 19:51:08 +03:00
MihailRis
e467c85adc add 'enable-fog' setting 2026-09-26 19:13:08 +03:00
MihailRis
d0cc59ad3a add 'cull-face' parameter to tri and rect primitives 2026-09-25 20:37:24 +03:00
MihailRis
3de6d7f402 fix camera exponentially shaking 2026-09-24 12:35:53 +03:00
boolean-false
7f408c11de Перевел parse_double на from_chars 2026-09-20 18:55:59 +07:00
MihailRis
56d2ab9f14 fix custom model blocks with disabled ambient-occlusion 2026-09-19 20:04:30 +03:00
MihailRis
350b8a9390
Merge pull request #979 from alexei-zebra/fix-build-alt
fix: build in alt linux
2026-09-19 19:47:43 +03:00
MihailRis
e306624260 fix hand items lighting 2026-09-19 19:41:11 +03:00
MihailRis
19f037a9fd make 'solid' lighting mode default 2026-09-19 19:30:29 +03:00
alexei-zebra
6f78a15efa
fix: add include to Curl.cpp 2026-09-19 19:11:11 +03:00
MihailRis
8911cded07 add 'lighting-mode' entity property 2026-09-19 18:13:15 +03:00
MihailRis
507f32f1e5
Merge pull request #976 from MihailRis/screenshot-function
add gui.screenshot function
2026-09-18 00:43:29 +03:00
MihailRis
69edfc8c8a add 'frame' argument to gui.screenshot 2026-09-17 22:07:18 +03:00
MihailRis
5ae4c1b27b add gui.screenshot 2026-09-17 21:58:38 +03:00
MihailRis
ef4bd4f594
Merge pull request #941 from boolean-false/crypto-library
Crypto library
2026-09-17 20:41:32 +03:00
MihailRis
3e2f311e67 update methods schemes 2026-09-16 23:47:25 +03:00
MihailRis
ad22763a1f add new skeleton:get_color, skeleton:set_color overloads 2026-09-16 23:40:41 +03:00
MihailRis
f5f17b7746 feat: individual bone tints 2026-09-16 23:37:44 +03:00
MihailRis
dbeeef90a8 cleanup a bit 2026-09-16 23:31:37 +03:00
MihailRis
ae082abaa2 feat: allow passing rgba color to entity skeletons and block wraps 2026-09-16 23:28:03 +03:00
MihailRis
dad67db835 feat: Bytearray request body support 2026-09-14 19:51:05 +03:00
MihailRis
762634ea04 add verify_ssl parameter 2026-09-14 19:44:41 +03:00
MihailRis
ef3a5cf278 feat: http response as table 2026-09-14 12:41:12 +03:00
MihailRis
5f37118f74 fix other issues 2026-09-14 03:05:40 +03:00
MihailRis
bd8d55f8bf fix 2026-09-14 03:01:32 +03:00
MihailRis
4cb97d48a7 fix 2026-09-13 20:09:25 +03:00
MihailRis
bb11a198f5 fix CurlRequests::update 2026-09-13 19:41:26 +03:00
MihailRis
432687c6ab cleanup request 2026-09-13 17:55:12 +03:00
MihailRis
58c974a3a1 add HttpResponse 2026-09-13 16:16:59 +03:00
MihailRis
fc877f09cb add 'timeout_ms' to network.request 2026-09-11 21:19:13 +03:00