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
1bc74b0ba1
Fix undefined inf to s32 cast in GUIScrollBar::setPos
2023-11-19 20:45:18 +01:00
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
96197025b9
Fix hypertext[] sometimes calculating incorrect scrollbar height ( #13943 )
2023-10-29 17:54:31 +01:00
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
2fbf5f4250
CSM: Fix duplicate player names ( #13910 )
2023-10-22 15:31:29 +02:00
6fdc7e0dad
Make hypertext[] respect font size settings ( #13858 )
2023-10-16 20:47:16 +02:00
3c41195986
Inventory: Fix picking up items via drop and pickup doubleclick ( #13891 )
2023-10-16 20:46:57 +02:00
9ec40ce8e9
Enforce minimum for curl(_file_download)_timeout
2023-10-05 17:29:49 +02:00
56965bc814
Android: Add field_enter_after_edit[]
formspec element ( #13836 )
2023-10-01 11:20:50 +02:00
606215fae9
Move sound_openal and sound_openal_internal into new src/client/sound directory
2023-09-30 18:54:26 +02:00
7b56daa236
Small setting-related fixes ( #13755 )
2023-08-27 20:18:41 +02:00
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
f47b00426a
Revert "Get rid of guiroot"
...
This reverts commit 45e7a80057
.
2023-08-24 22:14:44 +02:00
7e4dccb3b5
Revert "Get rid of global guienv variable"
...
This reverts commit 16da954bd7
.
2023-08-24 22:14:44 +02:00
f98726c516
Revert "Use our GUIButton in touchscreengui"
...
This reverts commit f7f3aaf43c
.
Fixes #13743 .
2023-08-24 22:14:44 +02:00
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
d0ee63c766
Enable shift-click crafting ( #13729 )
2023-08-24 12:00:54 +07:00
16da954bd7
Get rid of global guienv variable
...
(It can already be accessed via the renderingengine.)
2023-08-14 18:13:47 +02:00
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
7e7aceb8c1
Replace all actual uses of irrlicht CGUIStaticText with our StaticText
2023-08-14 18:13:47 +02:00
f7f3aaf43c
Use our GUIButton in touchscreengui
2023-08-14 18:13:47 +02:00
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
9d62abbe46
Replace any uses of CGUIScrollBar and IGUIScrollBar with GUIScrollBar
2023-08-14 18:13:47 +02:00
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
2903f692ba
GUIButton: Use default member initializers
2023-08-14 18:13:47 +02:00
7f9de5db0b
Make touchscreengui compile
2023-08-14 18:13:47 +02:00
137e4ce866
Fix hypertext in the mainmenu ( #13731 )
2023-08-13 13:28:33 +01:00
21ecdd5681
Fix textarea scrollbar inside border=false ( #13678 )
2023-07-30 14:54:52 +01:00
e0192e256f
Fix incorrect rounding in GUIInventoryList::getItemIndexAtPos
2023-07-22 17:19:57 +02:00
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
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
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
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
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
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
8e09077de8
Fix sound manager not being stepped by GUIEngine
2023-07-14 14:42:00 +02:00
7e51e2dea6
Fix compiler error on MSVC with ENABLE_TOUCH=TRUE
2023-06-24 20:37:59 +02:00
03ffc2618c
TouchScreenGUI: Add an exit / "ESC" button to the rare controls bar ( #13574 )
2023-06-22 17:50:36 +02:00
edcbfa31c9
Sound refactor and improvements ( #12764 )
2023-06-16 20:15:21 +02:00
a4e69d6843
TouchScreenGUI: Read coordinates directly for virtual joystick ( #13567 )
...
The movement's direction and speed are calculated directly from the button's relative screen coordinate. The previous method was to trigger the movement using a keyboard event.
The only virtual joystick status left is Aux1 button.
---------
Co-authored-by: Gregor Parzefall <gregor.parzefall@posteo.de >
2023-06-16 22:40:16 +07:00
c549e84abb
Silence a -Wsign-compare warning for invlist indices
2023-06-15 13:55:20 +02:00
e700182f44
Replace Optional with std::optional
2023-06-15 10:38:44 +02:00
553dc02deb
Fix some memleaks from GUIButtonImage ( #13564 )
...
* `m_foreground_image` was grabbed, but not dropped in the destructor.
* `m_image` was created with new. It is grabbed by itself and by the env (not only by the env!, so it's an owning ptr). This owning ptr also was never dropped.
2023-06-06 19:01:32 +02:00
252c79d53a
Inventory mouse shortcut improvements ( #13146 )
...
Co-authored-by: Muhammad Rifqi Priyo Susanto <muhammadrifqipriyosusanto@gmail.com >
2023-06-05 12:00:32 +02:00
fc3d6c1dd9
Place nodes with single tap on Android (+ bugfix) ( #13187 )
...
Don't place nodes when closing button bars.
Update docs (also in-game).
Rename "Default controls" -> "Controls" in Android pause menu since players can't change them (normally), so calling them "default" doesn't make sense.
2023-05-29 12:30:30 +07:00
15fb4cab15
Fix Android segfault when game exits before TouchScreenGUI is initalized
2023-05-11 22:51:16 +02:00
8b73743baa
Reduce number of recursively included headers
...
This should improve compilation speed.
Things changed:
* Prefer forward-declarations in headers.
* Move header-includes out of headers if possible.
* Move some functions definitions out of headers.
* Put some member variables into unique_ptrs (see Client).
2023-04-27 18:50:33 +02:00
e9e8eed360
GUIChatConsole: Use primary selection
2023-04-27 18:50:17 +02:00
062b4d036a
GUIEditBox: Use primary selection
2023-04-27 18:50:17 +02:00