1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-11 04:15:25 +01:00
Commit Graph

456 Commits

Author SHA1 Message Date
SmallJoker
56ecf6d332 Mainmenu: Fix error after ESC in dialog windows (#16130)
The error was caused by fd857374, where 'MenuQuit' was processed after 'try_quit'.
This commit fixes the error by moving the special 'MenuQuit' handling to Lua.
2025-05-18 20:41:42 +02:00
sfan5
8c8b7cb251 Clean up menus properly on client exit (#16150) 2025-05-18 12:13:48 +02:00
Lars Müller
600763dffc Fix table[] focus regression from f4285a5 (#16136) 2025-05-14 07:25:32 -04:00
grorp
959a8b5b8b Fix black font and menu header when game exits in background (#16131) 2025-05-14 07:23:53 -04:00
Lars Müller
f4285a59ac Purge some dead code (mostly Irrlicht) (#16111)
* Remove obsolete Irrlicht attributes system

* Remove dead GUI element types

* Remove some obsolete Irrlicht headers

* Fix some oopsies from d96f5e1
2025-05-04 16:31:44 +02:00
sfan5
b841c23701 Clean up TextureSource and related code 2025-05-03 11:32:41 +02:00
SmallJoker
6f3735281f GUI: restore the Pause Menu after closing the Settings Menu 2025-05-02 21:26:34 +02:00
Vincent Robinson
233ffbe384 Change exit keybinding and fix bug in allow_close[] 2025-04-23 21:41:32 +02:00
grorp
0cf1c47f6c Fix scrollbar on ContentDB grid by adding an area label (#16042)
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2025-04-21 12:33:41 +02:00
y5nw
23bfb2db72 Move keybinding settings to (Lua-based) setting menu (#15791) 2025-04-20 20:20:49 +02:00
Vincent Robinson
fd85737460 Add allow_close[] element to formspecs (#15971) 2025-04-16 16:20:39 -07:00
cx384
52b974184d Move client code out of ItemDefManager (#15967) 2025-04-04 18:58:14 +02:00
cx384
a6d4cd7c15 Draw node animation for items (#15930) 2025-04-04 18:47:11 +02:00
grorp
c30c94dfaa Add server/client annotations to settingtypes.txt and make use of them (#15756) 2025-04-01 07:55:47 -04:00
SmallJoker
309c0a0cb6 Formspec: fix clamped scroll offset of scroll_containers larger than 1000px 2025-03-30 18:15:38 +02:00
y5nw
4ba438a7ec Improve KeyPress handling (#15923)
* Pass KeyPress by value
* TouchControls: add setting change callback for keybindings
2025-03-21 12:07:51 +01:00
grorp
ead44a27ca TouchControls: Implement an option for dig/place buttons (#15845) 2025-03-21 12:06:44 +01:00
SmallJoker
f1364b1e0b GUI: Use the client's fonts for 'Open URL?' dialogues
This popup is related to user safety, thus it should not
use server-provided font media files.
2025-03-19 18:42:26 +01:00
y5nw
cc65c8bd70 SDL: Use scancodes for keybindings (#14964)
Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2025-03-16 20:35:34 +01:00
Deve
c07499ccfc Reload font manager in main thread to avoid a crash (#15900) 2025-03-16 17:55:39 +01:00
cx384
b9ed4793ea Move drawItemStack out of hud.h/cpp (#15868) 2025-03-11 10:00:04 +01:00
sfan5
7892541383 Various random code cleanups 2025-03-04 19:53:01 +01:00
grorp
5e89371ecd TouchControls: touch_use_crosshair, dig/place simulation refactoring (#15800)
-   get rid of simulated mouse events for digging/placing, use keyboard events
    instead
    -   consistent with other simulated events, less code, no need for a
        pointer position
    -   more correct: touch controls no longer break if you have custom
        dig/place keybindings set
-   move reading of "touch_use_crosshair" setting from Game to TouchControls
2025-02-25 13:19:44 -05:00
Lars Müller
fd8d04ff76 GUI inventory list: Do not render clipped slots (#15764) 2025-02-09 12:19:25 +01:00
wrrrzr
f17498b049 Delete irrlichttypes_extrabloated.h (#15723)
Co-authored-by: cx384 <cx384@proton.me>
2025-02-01 13:41:51 +01:00
cx384
e9826f7819 Move EnumString to separate file and add enum_to_string (#15714) 2025-01-26 19:17:14 +01:00
grorp
41dfac96c1 Add setting callbacks for Camera and TouchControls (#15700) 2025-01-24 16:50:51 +01:00
SFENCE
af3f696423 Code style fixes. 2025-01-21 16:29:12 +01:00
grorp
eeb6cab4c4 In-game settings menu using separate Lua environment (#15614) 2025-01-19 13:07:04 -05:00
chmodsayshello
d4a6df3389 Add chat console scrollbar (#15104) 2025-01-12 14:49:01 +01:00
sfan5
e5542e5b02 Remove or restrict some client settings (#15633) 2025-01-08 10:56:45 +01:00
SmallJoker
e8f6127779 Reduce irrlicht_extrabloated.h includes in header files 2025-01-04 12:39:34 +01:00
sfan5
a2058f7f3a Avoid some inefficiencies when handling ItemStack(Metadata) 2024-12-31 14:47:46 +01:00
grorp
b50b619be7 Add explanation to touchscreen item tooltip code (#15607)
this explains some cryptic inventory code I wrote in #14029 / 771da80bbb
2024-12-31 14:11:17 +01:00
grorp
27c3aade5d TouchControls: More methods instead of static functions (#15602) 2024-12-30 19:03:32 +01:00
sfan5
c49ff76955 IGUIFont / CGUITTFont code cleanups (#15581) 2024-12-23 12:49:47 +01:00
Lars Müller
fef28aced9 Irrlicht: Get rid of obsolete setDebugName (#15541)
Co-authored-by: sfan5 <sfan5@live.de>
2024-12-14 17:03:08 +01:00
SmallJoker
5a8412dd23 Formspec: Move tooltip above cursor when lacking space (#15470) 2024-12-06 21:59:51 +01:00
AFCMS
e545e96d2b Make string to v3f parsing consistent, replace core.setting_get_pos() by core.settings:get_pos() (#15438)
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
2024-12-04 18:19:46 +01:00
grorp
6a1d22b2c5 Implement an editor to customize the touchscreen controls (#14933)
- The editor is accessible via the pause menu and the settings menu.
- Buttons can be moved via drag & drop.
- Buttons can be added/removed. The grid menu added by #14918 is used to show
  all buttons not included in the layout.
- Custom layouts are responsive and adapt to changed screen size / DPI /
  hud_scaling.
- The layout is saved as JSON in the "touch_layout" setting.
2024-11-24 11:33:39 +01:00
sfan5
794aea8e92 Drop fixed pipeline support code (#15421)
OpenGL 2.0 is now mandatory.
2024-11-13 14:24:01 +01:00
wrrrzr
1c92d6243f MainMenuManager: fix FIXME (#15414) 2024-11-12 10:52:37 +01:00
Lars Müller
3064f3ccb7 Fix model[] being lit wrongly if shaders are disabled (#15364) 2024-11-03 15:10:21 +01:00
sfan5
5c5538685e Don't memset SEvent directly (#15359)
Fixes a compiler warning by manually zeroing the tag and the largest union member instead
2024-10-31 19:24:43 +01:00
sfan5
38f4d11d53 Avoid VLA usage and prohibit it by compiler flag 2024-10-28 15:59:17 +01:00
sfence
d849d51c2d Replace licensing text in headers (LGPLv2.1) (#15321) 2024-10-28 15:57:39 +01:00
DS
e5d321d286 Cleanup headers in irr/include/ (#15181) 2024-10-18 10:58:32 +02:00
SmallJoker
e3813cf027 Settings: semi-automatic callback cleanup 2024-10-17 19:38:49 +02:00
sfan5
4e9aa7dc77 Make itemdef.h safe to include anywhere 2024-10-16 19:39:59 +02:00
y5nw
e3aa79cffb Gettext and plural support for client-side translations (#14726)
---------

Co-authored-by: Ekdohibs <nathanael.courant@laposte.net>
Co-authored-by: y5nw <y5nw@protonmail.com>
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2024-10-13 11:29:08 +02:00