Commit graph

90 commits

Author SHA1 Message Date
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
69edfc8c8a add 'frame' argument to gui.screenshot 2026-09-17 22:07:18 +03:00
neveix
c2f7f33bbf revert creation of clickOutside 2026-08-14 00:59:55 +05:00
neveix
56c4d68c84 add item dropping outside of inventory 2026-08-13 20:56:59 +05:00
MihailRis
9fa6070cce fix: temporary focus fix 2026-08-09 21:26:30 +03:00
MihailRis
9ea50148b8 fix double click behaviour 2026-08-06 22:26:25 +03:00
MihailRis
f620addcb8 fix gl errors 2026-02-07 00:27:19 +03:00
MihailRis
239ada8e3d add cursorLocator argument to gui.set_active_frame 2026-02-06 18:05:21 +03:00
MihailRis
8ee2edef5c update gui.create_frame return value 2026-02-06 17:55:57 +03:00
MihailRis
8468ab184d add gui.get_active_frame, set_active_frame & update cursor lock behavior 2026-02-06 14:16:30 +03:00
MihailRis
463098aa1e add gui.create_frame 2026-02-04 13:10:49 +03:00
MihailRis
2475a7e8f5 cleanup 2026-02-03 14:00:58 +03:00
MihailRis
37350a10be remove pages loader from GUI class 2026-01-07 01:36:41 +03:00
MihailRis
55e4e6de02 fix hover elements lifetime 2025-12-15 21:43:04 +03:00
MihailRis
c11b2d0d70 temporary fix menu panel sizing 2025-12-13 17:13:07 +03:00
MihailRis
08f91697ef cleanup 2025-12-11 21:58:25 +03:00
MihailRis
b03dd98209 fix scrolling 2025-12-11 21:56:38 +03:00
MihailRis
89be2a1837 rename UINode::setHover to UINode::setMouseEnter 2025-12-10 20:51:24 +03:00
MihailRis
79e4a28b4d update uinode hover semantics 2025-12-10 20:49:50 +03:00
MihailRis
78e0ac5a95 add 'onmouseenter', 'onmouseleave' ui events 2025-12-10 20:03:41 +03:00
MihailRis
91cb5ab7d8 fix: root node id overriding 2025-11-23 19:37:44 +03:00
MihailRis
50f6c48771 add gui.set_syntax_styles 2025-11-23 18:10:06 +03:00
MihailRis
140841f65c refresh root document indices on GUI::add 2025-08-15 07:45:16 +03:00
MihailRis
0a02d3fbec add on_screen_change project script event & fix UIDocument::rebuildIndices & move menu background to project script 2025-08-07 22:14:52 +03:00
GHOST11111100
b4b49ccd83 added custom caption to items. fixed glyph render. 2025-07-26 16:19:00 +03:00
MihailRis
fc46b7c434 initial commit 2025-05-07 20:42:50 +03:00
MihailRis
e9ec7e3f96 small visual fix 2025-04-19 20:12:38 +03:00
MihailRis
71d3756902 add iframe ui element 2025-04-19 18:31:12 +03:00
MihailRis
5253be6c56 feat: custom languages syntax (WIP) 2025-04-13 00:19:38 +03:00
MihailRis
881edb7b28 rename keycode, mousecode enumerations 2025-04-02 17:39:31 +03:00
MihailRis
9843a1fc27 remove Viewport class 2025-04-02 17:35:17 +03:00
MihailRis
7262119f5b refactor GLFWWindow 2025-04-02 15:01:24 +03:00
MihailRis
0b8d56afe1 cleanup 2025-04-02 14:59:53 +03:00
MihailRis
9694a59649 refactor: add Window interface 2025-04-02 14:59:53 +03:00
MihailRis
b202d1455b refactor: replace references to Events with Input 2025-04-02 14:55:53 +03:00
MihailRis
4c48afbb90 refactor: add GUI instance reference to UI nodes 2025-04-02 14:55:53 +03:00
MihailRis
74a94f869c refactor: reduce Window references 2025-04-02 14:55:53 +03:00
MihailRis
5394f202a1 fix multiline width calculation & feat: multiline tooltips support 2025-03-13 22:07:10 +03:00
MihailRis
88b45e5098 add pack.request_writeable(...) & update gui.confirm screen 2025-03-12 17:07:57 +03:00
MihailRis
4c493aff25 add history to TextBox 2025-03-12 01:52:08 +03:00
MihailRis
4c9019e03c small fixes 2025-03-11 00:39:59 +03:00
MihailRis
5af6b91b22 add debug GUI render mode (F8) 2025-03-11 00:39:59 +03:00
MihailRis
756ff4a2c7 fix gui alert window size 2025-01-28 05:09:18 +03:00
MihailRis
266f3059b4 fix 2025-01-21 04:17:29 +03:00
MihailRis
c6951e0965 add in-game chat & update gui post-runnables timing & fix panel elements removal 2025-01-18 07:17:52 +03:00
MihailRis
2fa71b3bf0 feat: players interpolation & add hud.set_allow_pause(...) 2025-01-17 01:44:46 +03:00
MihailRis
dbf366eca3 fixes 2025-01-07 23:49:09 +03:00
MihailRis
cb9690ebc7 add 'cursor' ui property 2024-12-30 21:41:05 +03:00
MihailRis
5ffc054d75 refactor 2024-12-09 01:12:41 +03:00