grorp
05a53cd330
Touchscreen: Recognize double-taps as double-clicks ( #14187 )
2024-01-05 00:39:40 +01:00
grorp
995c192874
Don't apply gui_scaling & DPI twice to table[] / textlist[] scrollbar ( #14206 )
2024-01-03 21:58:58 +01:00
grorp
32e492837c
Support both mouse and touch input in GUIs in a single binary ( #14146 )
2023-12-27 22:37:36 +01:00
Gregor Parzefall
04dc4a10f0
Fix TouchScreenGUI ignoring server-sent pitch changes
2023-12-20 21:24:10 +01:00
Gregor Parzefall
3b346fd3c9
Fix touch input on Linux
...
The code relied on touch IDs being consecutive. This is true on Android, but not on Linux.
Therefore, touch input on Linux was broken since 53886dcdb52de80d862539e22950c84fbf88df88.
2023-12-20 21:22:15 +01:00
grorp
00d9d96e48
Android: Pause rendering while the app is paused ( #14058 )
2023-12-19 20:18:28 +01:00
Gary Miguel
da832a295e
Delete clang-format files and comments ( #14079 )
2023-12-15 10:23:44 +01:00
Muhammad Rifqi Priyo Susanto
55fafb7d25
Add sound volume when unfocused setting ( #14083 )
...
This adds a new setting to set sound volume multiplier when Minetest window is unfocused/inactive (sound_volume_unfocused, located in Settings > Graphics and Audio > Audio > Volume when unfocused).
If the window is not focused, the sound volume will be multiplied by sound_volume_unfocused setting. The sound volume will be set back to sound_volume again when the window is focused.
2023-12-10 19:11:39 +01:00
SmallJoker
321bcf5c44
GUIFormspecMenu: Fix race condition between quit event and cleanup in Game ( #14010 )
...
To not instantly free GUIFormSpec upon close/quit, Game periodically
cleans up the remaining instance on the next frame.
When a new formspec is received and processed after closing the previous formspec
but before the cleanup in Game, the formspec would be closed regardless.
This now re-creates the formspec when the old one is already pending for removal.
2023-12-10 19:09:51 +01:00
Muhammad Rifqi Priyo Susanto
047520d91e
Inventory: Add remaining items into the source slot directly ( #14021 )
...
Remaining items are added into the source slot directly when left-dragging over the source slot.
2023-12-03 15:00:07 +07:00
Muhammad Rifqi Priyo Susanto
53886dcdb5
Formspec: Pass the second-touch event as is ( #13872 )
...
The second-touch event is passed to the GUIFormSpecMenu::OnEvent() function as a touch event.
There are two types of event for inventory formspec: (1) mouse event and (2) touch event.
The touch event is just a modifier of the mouse event.
Co-authored-by: Gregor Parzefall <82708541+grorp@users.noreply.github.com>
2023-11-28 07:00:07 +07:00
grorp
771da80bbb
Make it possible again to see item tooltips on Android ( #14029 )
...
This change is a quick fix so that item tooltips show again on Android.
2023-11-25 17:07:07 +01:00
grorp
4255ac3022
Mainmenu: Avoid the header being displayed behind the formspec ( #13924 )
...
This change keeps the current header placement code, but adds additional code to make sure the header doesn't end up behind the formspec.
2023-11-25 17:04:33 +01:00
Desour
1bc74b0ba1
Fix undefined inf to s32 cast in GUIScrollBar::setPos
2023-11-19 20:45:18 +01:00
Muhammad Rifqi Priyo Susanto
aa912e90a7
Make text containers wider in the Volume Change dialog ( #13995 )
...
These containers are widened to account for translations.
2023-11-15 07:00:03 +07:00
Gregor Parzefall
96197025b9
Fix hypertext[] sometimes calculating incorrect scrollbar height ( #13943 )
2023-10-29 17:54:31 +01:00
SmallJoker
906417cc0d
GUI: Autofocus newly opened GUIModalMenu instances ( #13911 )
...
This in particular fixes incorrect event propagation to menus that
are no longer shown, such as the key change menu when opened within
the settings tab.
2023-10-22 15:31:42 +02:00
SmallJoker
2fbf5f4250
CSM: Fix duplicate player names ( #13910 )
2023-10-22 15:31:29 +02:00
Gregor Parzefall
6fdc7e0dad
Make hypertext[] respect font size settings ( #13858 )
2023-10-16 20:47:16 +02:00
DS
3c41195986
Inventory: Fix picking up items via drop and pickup doubleclick ( #13891 )
2023-10-16 20:46:57 +02:00
sfan5
9ec40ce8e9
Enforce minimum for curl(_file_download)_timeout
2023-10-05 17:29:49 +02:00
Gregor Parzefall
56965bc814
Android: Add field_enter_after_edit[]
formspec element ( #13836 )
2023-10-01 11:20:50 +02:00
Desour
606215fae9
Move sound_openal and sound_openal_internal into new src/client/sound directory
2023-09-30 18:54:26 +02:00
Gregor Parzefall
7b56daa236
Small setting-related fixes ( #13755 )
2023-08-27 20:18:41 +02:00
SmallJoker
bf9f831cb2
Inventory: skip redundant stack movement
...
The list of dragged stacks includes the source stack, which
however does not need to be moved onto itself.
This is an optimization.
2023-08-27 20:12:10 +02:00
Desour
f47b00426a
Revert "Get rid of guiroot"
...
This reverts commit 45e7a800575f6d96ea307d99f1945aeb6c22a4e1.
2023-08-24 22:14:44 +02:00
Desour
7e4dccb3b5
Revert "Get rid of global guienv variable"
...
This reverts commit 16da954bd70b326f21cec9547237f55de18d4253.
2023-08-24 22:14:44 +02:00
Desour
f98726c516
Revert "Use our GUIButton in touchscreengui"
...
This reverts commit f7f3aaf43c88179bafd255f3c67275f316cff91a.
Fixes #13743 .
2023-08-24 22:14:44 +02:00
Gregor Parzefall
92b6ff4721
TouchScreenGUI: Fix only 9 hotbar slots being usable ( #13698 )
...
Co-authored-by: Muhammad Rifqi Priyo Susanto <muhammadrifqipriyosusanto@gmail.com>
2023-08-24 17:45:51 +02:00
gamefreq0
d0ee63c766
Enable shift-click crafting ( #13729 )
2023-08-24 12:00:54 +07:00
Desour
16da954bd7
Get rid of global guienv variable
...
(It can already be accessed via the renderingengine.)
2023-08-14 18:13:47 +02:00
Desour
45e7a80057
Get rid of guiroot
...
The guienvironment already provides a root gui element, we don't need to add another one.
(For CGUIEnvironment, the env itself is the root element.)
2023-08-14 18:13:47 +02:00
Desour
7e7aceb8c1
Replace all actual uses of irrlicht CGUIStaticText with our StaticText
2023-08-14 18:13:47 +02:00
Desour
f7f3aaf43c
Use our GUIButton in touchscreengui
2023-08-14 18:13:47 +02:00
Desour
91c0439922
Use our GUIButton in our GUIScrollBar
...
Note that GUIScrollBar needs an ISimpleTextureSource now due to button styling.
2023-08-14 18:13:47 +02:00
Desour
9d62abbe46
Replace any uses of CGUIScrollBar and IGUIScrollBar with GUIScrollBar
2023-08-14 18:13:47 +02:00
Desour
124d064015
GUIButton: Default BgColor to white, as opposed to unintialized
...
(Same as what CGUIButton uses (via colors=0).)
2023-08-14 18:13:47 +02:00
Desour
2903f692ba
GUIButton: Use default member initializers
2023-08-14 18:13:47 +02:00
Desour
7f9de5db0b
Make touchscreengui compile
2023-08-14 18:13:47 +02:00
rubenwardy
137e4ce866
Fix hypertext in the mainmenu ( #13731 )
2023-08-13 13:28:33 +01:00
Joachim Stolberg
21ecdd5681
Fix textarea scrollbar inside border=false ( #13678 )
2023-07-30 14:54:52 +01:00
Desour
e0192e256f
Fix incorrect rounding in GUIInventoryList::getItemIndexAtPos
2023-07-22 17:19:57 +02:00
Gregor Parzefall
7473e4cafd
Expose all OpenGL filtering modes, use OpenGL names for them
...
Because of a review comment on the Irrlicht PR by numberZero.
2023-07-20 22:15:47 +02:00
Gregor Parzefall
6bf63d4b41
Rename SMaterial::TextureLayer -> SMaterial::TextureLayers
...
It's not the "texture layer" of the material, but an array of texture layers.
2023-07-20 22:15:47 +02:00
Gregor Parzefall
9bef3c136a
Split up texture filtering properties of SMaterialLayer into MinFilter and MagFilter
...
You can now set the filter used when scaling textures down and the filter used when scaling textures up separately.
2023-07-20 22:15:47 +02:00
Gregor Parzefall
307e380f30
Refactor the way you set material properties
...
Instead of using SMaterial::setFlag, you now set them directly on SMaterial or SMaterialLayer.
2023-07-20 22:15:47 +02:00
Muhammad Rifqi Priyo Susanto
2061984313
Simplifies code by using Irrlicht's operator overloads
...
New variables are added to replace in-place calculations.
2023-07-14 21:00:29 +07:00
Muhammad Rifqi Priyo Susanto
3a47559e86
Fix some memory leaks and code style issues
...
Maximum line length is 95 characters.
Some members' name are changed.
Struct initialisations use brace syntax; eliminating the usage of the memset function.
Iterations use for-each-loop instead of while-loop+iterator.
char * -> std::string
button_info * -> std::shared_ptr<button_info>
2023-07-14 21:00:29 +07:00
Desour
8e09077de8
Fix sound manager not being stepped by GUIEngine
2023-07-14 14:42:00 +02:00
Gregor Parzefall
7e51e2dea6
Fix compiler error on MSVC with ENABLE_TOUCH=TRUE
2023-06-24 20:37:59 +02:00