Commit Graph

59 Commits

Author SHA1 Message Date
numzero 88f2e825b9
Shaders for Android (GLES 2) (#10506)
Shader support for OpenGL ES 2 devices (Android)

Co-authored-by: sfan5 <sfan5@live.de>
2022-05-21 16:18:05 +02:00
lhofhansl c66ec62c77
Remove all bump mapping and parallax occlusion related code. 2022-05-21 16:18:04 +02:00
hecks fb5c84855d
Remove "generate normal maps" feature (#10313)
Erase all traces of normal "generation" from fragment shaders
Remove the "feature" from the engine and default config
Remove any leftover documentation of it
2022-05-21 16:17:59 +02:00
MoNTE48 5d84294168
Android: drop simple MainMenu (#10227)
The default (PC-style) MainMenu works great on Android. Provides access to ContentDB and allows players to create many worlds in a few clicks.
Makes the interface consistent and eliminates player confusion.
2022-05-21 16:17:57 +02:00
rubenwardy d5c162fb03
Add luacheck to check builtin (#7895) 2022-05-21 16:17:08 +02:00
paramat a623a888a7
Require 'waving = 3' in a nodedef to apply the liquid waving shader (#8418)
Makes the liquid waving shader per-nodedef like waving leaves/plants,
instead of being applied to all liquids.
Like the waving leaves/plants shaders, the liquid waving shader can
also be applied to meshes and nodeboxes.

Derived from a PR by t0ny2.
2022-05-21 16:16:58 +02:00
paramat abbcd8741a
Rename 'Advanced Settings' button to 'All Settings' (#8131) 2022-05-21 16:16:43 +02:00
paramat b2eb5fca5b
Remove 'Reset singleplayer world' button from full menu on Android (#8017)
Make button appearence dependent on menustyle not platform.
Button only functions with simple menu.
2022-05-21 16:16:35 +02:00
stujones11 b42a49f264
Android: Improve UI scaling on smaller high-density displays (#7834)
* Android: Improve UI scaling on smaller high-density displays
2022-05-21 16:16:27 +02:00
numzero e996c3af5f
Disable shaders GUI on unsupported drivers (#7563)
* Disable shaders GUI on unsupported drivers (#2060)

* Disable shaders if unavailable
2022-05-21 16:16:13 +02:00
Tre 4ed4d02f93
Change Normal Map setting to be less ambigous 2022-05-21 16:15:38 +02:00
Ezhh 5fdad16377
Mainmenu: Improve button alignment 2022-05-21 16:15:32 +02:00
Ezhh eaad3edd8d
Mainmenu: Make capitalisation consistent in mainmenu and advanced settings 2022-05-21 16:15:32 +02:00
Ezhh 93e0d1b036
Improve Settings tab button alignments 2022-05-21 16:15:31 +02:00
Ezhh 3838b9c096
Fix Settings tab formspec alignment (#6585) 2022-05-21 16:15:29 +02:00
Elijah Duffy 2e9ef9b4eb
Menu: Do not use textlist for shaders in settings tab (#5820)
Replace the textlist used if the shaders checkbox is unchecked in the settings tab of the main menu with labels. This makes the formspec feel more consistent as the items do not move when shaders is unchecked but only change colour and the checkboxes beside them disappear.
2022-05-21 16:14:55 +02:00
Ezhh e080ccdf39
Add option to use neither node highlighting nor outlining 2022-05-21 16:14:47 +02:00
ShadowNinja 5030ce5f4b
Use a settings object for the main settings
This unifies the settings APIs.

This also unifies the sync and async registration APIs, since the async
registration API did not support adding non-functions to the API table.
2022-05-21 16:14:45 +02:00
Loïc Blot e57e8ceba1
Save minetest screen width/height options when modified (#5683)
* Save minetest screen width/height options when modified

* Add autosave_screensize setting (default true)

* Fix @SmallJoker comments
2022-05-21 16:14:43 +02:00
red-001 1b7a21e322
Add keyword based search to serverlist 2022-05-21 16:14:13 +02:00
est31 f0f9cda43b
Android: Re-add button to remove singleplayer world
Fixes #4120.
2022-05-21 16:13:38 +02:00
est31 2c07dc8219
Mainmenu: don't show change keys dialog on android
The change keys dialog can't be left. It doesn't make
much sense to show it on Android in the first place,
therefore disable it, just like commit

aed70cb0b652d6cb2272e7b94cd56671b3df6239 'Disable sound and key binding settings in "pause" menu on android'

has disabled it for the esc menu.

Fixes #4115.
2022-05-21 16:13:38 +02:00
Rui914 8850a2a73f
Mainmenu: Refactor tab UI code
- Use local variables for tabs in place of globals
 - Merge together if statements where possible
 - Replace manual table searching code with indexof where possible
2022-05-21 16:13:30 +02:00
Jean-Patrick Guerrero 7d23793e05
Settings Tab: Regroup dropdown datas in tables 2022-05-21 16:13:23 +02:00
Jean-Patrick Guerrero 9f6730de09
Update settings tab + some misc. clean-up 2022-05-21 16:13:22 +02:00
BlockMen ae7b3ec177
Restore simple settings tab and add advanced settings as dialog 2022-05-21 16:13:19 +02:00
Rogier e577c35a3c
Fix error message in settings tab overlapping 'save' button
The save button is now fully functional again when an error message
is shown.

After an invalid value is entered in the settings tab dialog, the GUI
label for the error message that is shown was partly overlapping the
'save' button, so that the top half of the button could not be clicked
on.
2022-05-21 16:13:12 +02:00
Rogier 6a3484c135
Fix the checking of flags values in the settings tab
Changes:
- Accept setting an empty flags-type value in the settings tab
  if the variable specification permits it
- Don't accept substrings of flag values
  E.g. with values: 'one,two,three', 'hree', 'w', etc. used to
  be accepted. Not any more
- Don't accept flags with random pattern-matching special characters
  E.g. with values: 'one,two,three', 'on.', '(o)[n]e*' etc. used
  to be accepted. Not any more.
2022-05-21 16:13:11 +02:00
Rogier 4e30d1bb0a
Improve parsing of setting types from settingtypes.txt for settings tab
- Accept numbers prefixed with '+'
- Accept multiple spaces instead of just a single one where spaces are expected
- Allow flags to have an empty default value
2022-05-21 16:13:10 +02:00
est31 bf7ed56ddd
Settings tab: add v3f type
Add the v3f type, currently is just a nice placeholder for string.
Currently undocumented, on wish of @PilzAdam, to support future changes.
2022-05-21 16:13:03 +02:00
PilzAdam 7e69f86aa5
Fix parameter passing to gettext call 2022-05-21 16:12:59 +02:00
PilzAdam 2f0e5a075d
Escape " in generated settings_translation_file.cpp 2022-05-21 16:12:58 +02:00
PilzAdam 4067cf06c3
Fix setting comments 2022-05-21 16:12:57 +02:00
PilzAdam b7a3bf1e30
Don't allow games or mods to add secure. settings 2022-05-21 16:12:57 +02:00
PilzAdam c391792fca
Improve Lua settings menu
* Add key settings to setting table and ignore them later
  This way they are added to the auto-generated minetest.conf.example
* Add flags type
* Add input validation for int, float and flags
* Break in-game graphic settings into multiple sections
* Parse settingtpes.txt in mods and games
* Improve description for a lot of settings
* Fix typos and wording in settingtypes.txt
* Convert language setting to an enum
2022-05-21 16:12:56 +02:00
est31 b29666b49a
Display sane output for empty descriptions
According to its man page, the function gettext(3)
"may return a nonempty string" when msgid is "".

This commit fixes a bug where the comment ""
for some settings caused gettext to return a
"nonempty string", in this case header info of the
po file.
2022-05-21 16:12:55 +02:00
PilzAdam 86c317e796
New settings tab contain all possible settings
Settings are automatically parsed from builtin/settingtypes.txt
The edit dialog automatically adjust based on the type of setting
2022-05-21 16:12:55 +02:00
Jean-Patrick Guerrero e55a5a1c24
Add viewing range GUI setting 2022-05-21 16:12:53 +02:00
Rui914 39001fe1f5
Minor tweaks handle_settings_buttons 2022-05-21 16:12:51 +02:00
Jean-Patrick Guerrero 777a203e5f
Fix FSAA dropdown option reset after changing another dropdown option 2022-05-21 16:12:46 +02:00
Jean-Patrick Guerrero 10557bce20
Remove drivers dropdown in the settings tab 2022-05-21 16:12:45 +02:00
Mark Schreiber 4e8e0fdff1
Add antialiasing UI setting
The Irrlicht engine supports antialiasing, and Minetest already supports
saving an antialiasing setting in its configuration file.  However,
Minetest lacked UI elements to set this setting, and previously the only
way to enable the feature was by hand-editing the configuration file.

Add a drop-down menu that can enable antialiasing.
2022-05-21 16:12:43 +02:00
RealBadAngel 23e4c70d72
Add new leaves style - simple (glasslike drawtype) 2022-05-21 16:12:41 +02:00
Zeno- 4ff1574c23
Allow filter and mipmap drop down menues to be translated 2022-05-21 16:12:19 +02:00
kwolekr 02fb28a2a9
Reorganize supported video driver query mechanisms 2022-05-21 16:12:19 +02:00
kwolekr a48bf4ad0b
Revert "Fix style on settings tab"
This reverts commit 7b17b9059e30cef384ecca37feec87cdcdfd39b8.
2022-05-21 16:12:18 +02:00
Jean-Patrick Guerrero 75b18a7b37
Fix style on settings tab 2022-05-21 16:12:18 +02:00
Jean-Patrick Guerrero b04cd996b9
Add missing return value for filter/mipmap dropdown in mainmenu 2022-05-21 16:12:16 +02:00
Jean-Patrick Guerrero 618dd99293
Reorganizing client and server tabs 2022-05-21 16:12:15 +02:00
Kahrl a5032d9c3b
Remove vertlabels from main menu and relayout a bit 2022-05-21 16:12:09 +02:00