1
0

6424 Commits

Author SHA1 Message Date
luk3yx
2714e5d0f6 Prevent suffocation in plantlike nodes
(cherry picked from commit 73680423f5994e73fdb2e49289309fcf41c6ccfb)
2023-08-10 22:56:37 -04:00
Deve
4157a8c8e1 TouchScreenGUI: handle screen resizing and fix memory leaks
(cherry picked from commit 9c5c0dcd3cef6d6b3bcab11e801d428c511e4bae)
2023-08-10 22:56:22 -04:00
Maksym H
9b03f0a82e Android: minor update
(cherry picked from commit 4e2d7463cda7630d76c8b26c6dc63b2b73f0e3e5)
2023-08-10 22:55:36 -04:00
Maksym H
4c4b00d719 Add hasNPotSupport() check in getTexture() function
(cherry picked from commit 63fa8c286fe09c5f7fc2c9a81be80f1b03d89be4)
2023-08-10 22:55:19 -04:00
luk3yx
e2726757f7 Log the name of entities that can't be added
(cherry picked from commit 2422c202d38a798f1162fb6aea79e53ed061117d)
2023-08-10 22:54:00 -04:00
luk3yx
c16954e407 Add no_change_anim group
(cherry picked from commit d12f19fabf3fddc3f3bb83210ea80cf56f00fad8)
2023-08-10 22:52:14 -04:00
Maksym H
6fbceface0 Disable joysticks without SDL2
(cherry picked from commit 9b1209a68a4ae51f38dd2ebc97a7c168e9cacfc8)
2023-08-10 22:50:02 -04:00
luk3yx
e7d88cca42 Add pressed inventory slot background image
(cherry picked from commit f22951ab2b63c691f81d11267ff3e63e70457a14)
2023-08-10 22:48:22 -04:00
luk3yx
035e35c962 Scale statbar background texture correctly when its resoltuion differs
(cherry picked from commit 88c52130f81db79756087ffd95cd38d0ad2756a0)
2023-08-10 22:45:28 -04:00
Maksym H
70df6b60c2 Apple: switch to MultiCraft Font
(cherry picked from commit 58f63ae4a77ff691555f3397263b9d908b6d4456)
2023-08-10 22:45:04 -04:00
Deve
3219db4e89 Add build scripts for Windows using MSYS2 (#130) 2023-08-10 22:44:08 -04:00
Maksym H
732281da4a Remove formspec opacity in the ConfirmRegistration dialog 2023-08-10 22:30:31 -04:00
Deve
8c5e0cb61f Add SDL game controller support (#105) 2023-08-10 21:18:19 -04:00
luk3yx
371c3d3115 Don't crash on mod directories without init.lua 2023-08-10 21:17:52 -04:00
Maksym H
46c24e6c47 Improve the size of the loading progress bar (on GLES) 2023-08-10 21:17:05 -04:00
Deve
fe35c3a31c Add a fix for inventory that can't be open in some cases
The forceUpdateHoveredElement() forces GUI Environment to drop previously
grabbed elements that are not hovered anymore.
2023-08-10 21:11:51 -04:00
luk3yx
c3f00dedc2 Add list[] bgimg 2023-08-10 21:10:54 -04:00
Deve
8cd48bd34f Chat console fixes (#133)
* Some fixes for text selection in chat.

- Reset selection on chat open
- Reset selection on new message
- Reset selection when window size changed

* Don't move to bottom when user is scrolling chat

* Some work on prompt selection

* Make it working when text length is larger than max visible length

* Handle touch events for prompt

* Avoid moving chat history on new messages during scrolling.

Also simplify selection marks comparing.

* Move scroll to bottom on sending new message when console is opened without close on enter

* Fixed copy to clipboard when chat buffer is full and also keep text selected when new message arrives

* Some improvements for prompt selection

* Delete selected text on new input or backspace key press

* Fixed text selection and cursor pos for regular font

* Fixed drawing prompt with newlines

* Fixed empty prompt selection with ctrl+a

* Enable chat console on android tablets
2023-08-10 17:52:35 -04:00
luk3yx
a1a38c20af Use separate top/bottom textures for chat scrollbar 2023-08-10 17:46:59 -04:00
luk3yx
eded502651 Allow table and textarea scrollbars to be customised (#129) 2023-08-10 17:45:45 -04:00
SmallJoker
28f62eccab Limit formspec fields to 640K (#13380)
Fixes an issue where long inputs could cause issues when dealing with formspecs.
The expected data is usually below 1 KiB, however that's not a technical limit.
2023-08-10 17:45:31 -04:00
luk3yx
6da47b485c Enable strip_color_codes by default 2023-08-10 17:45:12 -04:00
Deve
0db262d8be Chat console improvements (#124) 2023-08-10 17:44:11 -04:00
Deve
5e88542be6 Fix left shift key in the change menu (#128)
* Set shift_down false when it's not pressed anymore

* Prefer character only if Char is not 0 which does not happen in SDL anyway
2023-08-10 17:39:13 -04:00
luk3yx
192f52f7c9 Catch InvalidPositionException in get_natural_light 2023-08-10 17:38:52 -04:00
luk3yx
2f9c3e791e Make guiVolumeChange use custom scrollbar 2023-08-10 17:38:06 -04:00
Maksym H
cf99ce6b30 Make the console message height configurable 2023-08-10 17:17:14 -04:00
93785b726a Use SDL threads (#122) but seems only in androit
* backported from 245220985b
  for minenux
2023-08-10 17:10:36 -04:00
Maksym H
eb122a4e80 Minor engine changes and fixes 2023-08-10 17:05:42 -04:00
Deve
0df81d3e20
Add a possibility to copy text from non-writable edit box (#118) 2023-01-24 07:42:01 +02:00
Maksym H
23844d8836 Mobile: minor legacy minimap tune 2023-01-17 12:55:16 +02:00
Maksym H
af36361f42 Android: rename initializePathsAndroid() to initializePaths() 2023-01-05 02:28:43 +02:00
Maksym H
141559689e Minor TouchScreenGUI fixes 2023-01-03 13:24:04 +02:00
sfan5
8c205f5bed Make fs::extractZipFile thread-safe 2022-12-21 12:52:26 +13:00
Loic Blot
1f4ff9cea6 fix: extractZipFile is not part of Client but more generic.
This solve a crash from mainmenu while extracting the zip
2022-12-21 12:52:20 +13:00
Maksym H
e8dc878d1f Fix and improve guiConfirmRegistration dialog 2022-12-16 14:32:50 +02:00
luk3yx
c820cb204a
Make MetaDataRef:get return nil instead of nothing (#114)
Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com>
2022-12-13 08:00:12 +13:00
luk3yx
9985ffb2fc Fix metadata wiping when placing schematics 2022-12-11 13:21:48 +13:00
Maksym H
13c4b3bd20
A new batch of MainMenu improvements (#110)
Co-authored-by: luk3yx <luk3yx@users.noreply.github.com>
2022-12-07 16:05:14 +02:00
luk3yx
c7bb8e5baf Translate error message before clearing translations 2022-11-27 11:09:20 +13:00
Maksym H
da679d619e Android: simplify input dialog 2022-11-24 20:57:03 +02:00
Maksym H
3f4adfd6bb Minor changes and fixes 2022-11-14 12:59:33 +01:00
Maksym H
75a5c0876e Disable progress bar texture overrides 2022-11-14 12:49:28 +01:00
Deve
b7a313a574 TouchScreenGUI: Better handle punch/interact 2022-11-14 00:54:03 +01:00
Maksym H
4b4946ca1e Improve debug logging 2022-11-14 00:46:46 +01:00
Maksym H
3d33abf1cd Yet another MainMenu improvements PR (#101)
* Yet another improvements instead of a complete redo

Co-authored-by: luk3yx <luk3yx@users.noreply.github.com>
2022-11-14 00:46:46 +01:00
Maksym H
a254814f11 TouchScreenGUI: use mouse_sensitivity setting instead of mouse_sensity 2022-11-11 22:24:06 +01:00
luk3yx
df9e57bf05 Add setting to disable texture packs 2022-11-12 10:20:32 +13:00
Deve
8535658791
Use raw pointer for sound manager (#107)
Use raw pointer for sound manager to avoid a crash in destructor after exit(0)
2022-11-07 10:57:20 +01:00
Bektur
3ecb0895aa
Extend API and add get_secret_key for secure operations (#84)
Co-authored-by: luk3yx <luk3yx@users.noreply.github.com>
2022-10-29 13:31:21 +03:00