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

442 Commits

Author SHA1 Message Date
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
Lars Mueller
06907aa99b Support floating-point animation frame numbers 2024-10-10 21:39:57 +02:00
Lars Mueller
7e4919c6ed Refactor matrix4.h
Sets the surprising row-major conventions used here straight.

Renames rotateVect to rotateAndScaleVect:
If the matrix also scales, that is applied as well by the method.
Obsolete rotateVect variants are removed.
The inverseRotateVect method is also renamed accordingly.
Note that this applies the transpose of the product
of the scale and rotation matrices, which inverts just the rotation.
2024-10-10 17:40:31 +02:00
grorp
4952f17df4 Auto-toggle TouchControls in-game when receiving touch/mouse input 2024-10-09 18:26:19 +02:00
grorp
07ff2a5c01 ContentDB dialog: React to window info changes immediately (#15248) 2024-10-09 15:08:15 +02:00
SmallJoker
13f533d490 scrollcontainer: Add automatic scrollbar calculation (#14623)
New parameter 'content padding'. When specified, the scrollbar
max value is calculated automatically. This aims to reduce manual
calculation functions.
2024-10-08 21:45:27 +02:00
grorp
eefaef53b7 Fix hypertext action firing twice on touchscreen (#15217) 2024-10-03 11:36:48 +02:00
grorp
22ef4c8be1 Expose analog joystick input to the Lua API (#14348) 2024-10-01 17:21:42 +02:00
grorp
70e169f165 Drop fixed pipeline lighting stuff (#15165) 2024-09-18 12:18:28 +02:00
wrrrzr
6dfd61cba0 Fix TODO in joystick code (#15179) 2024-09-18 12:17:55 +02:00
grorp
47f199e6cb Avoid cloud jump when switching between mainmenu and loading screen (#15163)
... by using the same Clouds object for both.
The mainmenu clouds already used shaders before. I had to choose between
both or neither, so now both the mainmenu clouds and the loading screen
clouds use shaders if available.
2024-09-16 10:16:27 +02:00
DS
4aec4fbe6f Add support for Tracy profiler (#15113) 2024-09-15 13:47:45 +02:00
Gregor Parzefall
2208fc0632 Move Minetest GUISkin -> Irrlicht CGUISkin 2024-09-08 13:53:33 +02:00
grorp
041d67ceca Improve formspec scaling (#14840) 2024-09-06 12:11:03 +02:00
Gregor Parzefall
08de047033 TouchScreenGUI: Show status text above grid menu 2024-09-04 15:18:34 +02:00