Commit graph

295 commits

Author SHA1 Message Date
alexei-zebra
4d1b4a1638
Redraw the windows frame from WM_SIZE and keep its style
The refresh callback is triggered by WM_PAINT, but windows does not send it
while a border is dragged: the window class has neither CS_HREDRAW nor
CS_VREDRAW and nothing invalidates the client area. Only WM_SIZE arrives, so
nothing was drawn during such a resize. The frame is drawn from WM_SIZE now,
after forwarding the message to GLFW so that the new size is already in.

WM_NCHITTEST re-applies the style bits the engine frame needs and which GLFW
drops on every window mode change, taking the drag area with them. Every frame
setup logs whether the subclass had to be installed again, so a lost window
procedure is visible in the log.

The live resize switch is honoured by the GLFW backend as well: with it off the
frame from the message loop is skipped and the window keeps showing what the
system stretches.
2026-10-11 01:05:47 +03:00
alexei-zebra
68d4214627
Fix the engine window frame on windows
Four things came out of testing on windows.

The window settings were hidden outside of wayland because the check used
the backend name, while the bar height matters wherever the engine draws
the frame. The window now reports that (hasEngineFrame: barEnabled on
wayland, engineFrame on glfw) and the display page asks for it. Only the
live resize switch stays wayland specific, since the glfw backend always
draws a fresh frame.

The simplified mode is gone: when the frame is active and the surface has
alpha, the shadow and the outer resize border are always there.

The bar and its controls are drawn even when the font is missing: the early
return used to make the whole bar invisible while its hit zones kept
working.

GLFW rewrites the window style on every mode change and dropped the thick
frame the native resize border and snapping need, so the frame is set up
again after such a change.

Windows runs a modal loop while a window border is dragged and the main
loop is blocked inside it, which froze the content during a resize. The
backend draws and presents a frame from the refresh callback now, and
skips the framerate limit there.
2026-10-10 22:02:33 +03:00
alexei-zebra
27a58b584e
Fix black frames of the simple window and rename its setting
Without the shadow and the resize border composeFrame() only forced the
alpha channel, so the buffer the driver reallocated after a size change was
presented as it is, which showed up as a black frame on every resize step.
The content is now always painted from the cache and only the shadow itself
is skipped when there are no margins.

The setting is named simple-window and means the opposite of the previous
shadow-and-border: it is off by default, so the window keeps its shadow and
the outer border for resizing.
2026-10-10 12:23:42 +03:00
alexei-zebra
ab7f542d61
Add display settings for the wayland window frame
The frame the native wayland backend draws gets three switches in the
display tab: a narrow 24px bar instead of the 48px one, the shadow with
the outer resize area, and redrawing the content while the window is
resized (off keeps the previous behaviour of stretching the last frame).

The settings are applied at runtime: the bar geometry is rebuilt and the
surface is resized together with the toplevel geometry, no restart needed.
The narrow bar drops the insets and the gap of its controls, so that they
sit flush against the window edge.

The switches are hidden outside of the wayland backend, which reports its
name through Window::getBackendName().
2026-10-10 12:23:42 +03: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
MihailRis
c713015134 add vcm old models converter button to the editor temporary 2026-08-17 22:23:20 +03:00
MihailRis
c481997b82 fix editor toolbar 2026-08-17 20:41:41 +03:00
Neveix
3b3bf8e878
Inventory enhancements #897: 2, 5, 9, 11, 12 (#931)
* implement a bit

* change shift to ctrl

* add enhancement #2

* add ctrl-interaction with content access

* fix libinventory.move bug (none checking)

* fix p.5

* move shareinv logic into inventory_utils

* add inventory utils

* small refactor

* fix iframe.src = ""

---------

Co-authored-by: MihailRis <mexaruc@gmail.com>
2026-08-14 21:25:42 +03:00
neveix
fb8ae82068 add content pack version display 2026-08-11 18:55:32 +05: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
4295af15cc
Merge pull request #847 from MihailRis/client-side-tests
client-side `--script`, `--test` support (part 1)
2026-07-25 21:59:10 +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
52829023c2 fix: duplicating core:chat event handlers in in-game chat 2026-06-02 23:58:41 +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
ba0b137a6c fix old typo 2026-02-16 02:59:24 +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
6aac90094e add 'fallback' property to xml and scripting 2026-01-27 23:10:08 +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
a14f85a0a9 fix internal code editor 2025-11-25 22:15:17 +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