Commit graph

119 commits

Author SHA1 Message Date
alexei-zebra
fbedfad478
Fix the issues found while reviewing the engine frame
Use util::str2wstr_utf8 for the window title instead of the deprecated
codecvt conversion, choose the bar control icon with a switch, and keep
the frontend layout in sync when a frame is drawn from the refresh
callback the platform calls while it blocks the main loop.

The frame forgets its interaction state when the window mode changes or
the cursor gets locked, a bar click that only moved the window is no
longer a double click, and one frame per size is drawn per resize.

The tooltips of the two window settings were only present in the Russian
locale and under a key the settings page never asks for: they are named
display.<id>.tooltip now and translated in both locales. The version label
of the debug build moves below the bar that covers the menu screen.
2026-10-11 20:06:11 +03:00
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
cbe2a27e34 update en_US.txt, ru_RU.txt 2026-09-26 19:21:00 +03:00
MihailRis
362acd0436 update texts 2026-05-24 16:12:07 +03:00
MihailRis
c7508d6270 Merge branch 'main' into volume-renderer 2026-02-13 02:07:20 +03:00
MihailRis
2aa9042fa4
Merge pull request #784 from MihailRis/acoustics
acoustics
2026-02-13 02:05:35 +03:00
MihailRis
c32029d5b3 update ru_RU.txt 2026-02-12 22:13:17 +03:00
MihailRis
92eeee5a20 update res/texts/* 2026-02-12 21:52:05 +03:00
MihailRis
fcbbf4814a fix advanced render setting tooltip 2026-02-11 14:21:49 +03:00
rekvizitt
b491d9330f
Update be_BY.txt (#697)
* small fix

* Update be_BY.txt
2025-11-23 18:03:31 +03:00
MihailRis
8cfff09c0b add 'none' input device 2025-11-21 21:43:29 +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
41e2b015d7 update audio settings page 2025-11-04 22:06:06 +03:00
MihailRis
fe8e4ba7b4 add internal/audio_input module 2025-10-31 23:30: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
GHOST11111100
240abb939f
Links (#615)
* add URL support to Label element and XML parsing

* refactor Label URL handling to use getter method in setURL

* implement URL opening confirmation dialog and platform-specific URL handling

* fix: fixed build errors

* remove: delete test link label from worlds.xml

* refactor: remove URL handling from Label class and XML parsing

* refactor: clean up Label class by removing unnecessary whitespace and improving code readability

* refactor: remove unused URL member from Label class

* refactor: remove unused URL attribute from XML UI documentation and related code

* refactor: improve code readability by adding whitespace and formatting adjustments in Label class

* refactor: improve whitespace consistency in Label class and add URL opening functionality in libcore
2025-09-26 21:39:12 +03:00
MihailRis
94989ce292
Merge pull request #595 from kotisoff/main
Проверка версий зависимостей
2025-09-14 12:42:28 +03:00
KotIsOff
5994371145 Проверка версий зависимостей
Добавил проверку версий установленных зависимостей паков.
2025-08-23 01:33:06 +03:00
Xertis
1f0b6f0d9d Qol settings.controls update 2025-08-04 20:50:27 +03:00
MihailRis
6927a87973 Merge branch 'main' into update-gfx-pipeline 2025-06-02 21:42:56 +03:00
rekvizitt
0a413ccc23
Update be_BY.txt 2025-05-21 09:41:31 +03:00
MihailRis
b272d86619 add 'grahics.advanced-render' and 'graphics.shadows-quality' settings 2025-05-11 01:09:41 +03:00
MihailRis
3498af6be9 cleanup 2025-04-21 21:53:27 +03:00
Zohidjon Ma'rufov
41237df4b3
[uz_UZ] Added translations for new terms, updated existing ones, and tested changes (#492)
* Update Uzbek translations.
- Update Uzbek translations to keep them up to date

* Fixed issues found during testing.

* Fix typo
2025-03-25 10:34:36 +03:00
MihailRis
bcbfdd50c7 feat: running files with and block/item script reload 2025-03-13 22:08:22 +03:00
MihailRis
3d60777a12 feat: save edited files 2025-03-12 17:08:50 +03:00
rekvizitt
41391176e7 Complete Belarusian translation for be_BY.txt 2025-01-30 11:03:32 +03:00
MihailRis
d7ad7ff460 add Chat hotkey 2025-01-11 22:58:41 +03:00
MihailRis
48aad8d974 add 'Scripts' menu page 2025-01-05 22:45:43 +03:00
Zohidjon
d25452784d Small fixes in translation. 2025-01-04 09:46:57 +05:00
Ihor Savenko
1e7b6b438a add missing uk_UA locals 2025-01-01 16:43:34 +00:00
DomaJa
228a87cf86
Update fi_FI.txt
Line 76
Settings.Framerate
2025-01-01 16:03:22 +02:00
MihailRis
dc8f5e7873 add 'graphics.dense-render' setting 2024-12-21 08:13:05 +03:00
Zohidjon
d8266ec516 Added the translation of missing terms and updated the old ones. 2024-12-01 19:26:13 +05:00
DomaJa
fdee9d5c1a
Finnish Lang Update 2 2024-11-29 13:05:47 +02:00
LumperBumper
58d2637e9d
worlds menu added 2024-11-19 19:16:32 +05:00
MihailRis
29d8c4bbb8 add Lua traceback inspector (WIP) && add chat prototype 2024-11-19 07:32:03 +03:00
Xertis
fbacb9fe18 adding new lang bindings 2024-11-07 22:17:01 +03:00
MihailRis
d27179b6c3 update std rules & add player.destroy binding 2024-11-06 21:28:12 +03:00
MihailRis
aaa2115cd6 add 'display.limit-fps-iconified' setting 2024-11-04 20:16:23 +03:00
ChancellorIkseew
240b406332 add binding for old key X 2024-11-03 07:24:51 +10:00
ChancellorIkseew
d46afee063 add settings reset 2024-10-31 01:08:01 +10:00
MihailRis
44cfc8ab75 add 'Open content folder' button 2024-10-28 20:13:49 +03:00
MihailRis
8dac3ffdac add 'Open data folder' button 2024-10-28 10:36:08 +03:00
Sergwest585
791bc71a37 add search panel in controls-setting page, that search by name and keyname 2024-10-20 01:24:28 +03:00