122 Commits

Author SHA1 Message Date
kilbith
14c82f432b Android menu: Unified serverlist 2016-04-28 07:19:31 +01:00
SmallJoker
8cf828a818 Mainmenu: Standardize the menu button order and sizes 2016-04-28 07:16:58 +01:00
Ekdohibs
1893eec3cc Fix mainmenu code downloading the public serverlist twice.
Also, fix a nil error that can happen sometimes in
menu_handle_key_up_down
2016-04-22 23:39:54 +10:00
paramat
96683969f2 Textures: Replace menu background fallback dirt_bg.png with empty sky texture 2016-04-21 10:15:05 +01:00
kilbith
9c4e903fe8 Mainmenu: Code cleaning 2016-04-20 21:31:40 +10:00
kilbith
1a4731e806 Mainmenu: Unify favorite servers with main serverlist 2016-04-20 21:31:40 +10:00
est31
ca4f6936ec Mainmenu: Still support favorites if send_pre_v25_init is disabled
@SmallJoker has noted a bug that servers from the (local) main menu
favorites list can't be opened.

This commit fixes the bug by disabling any main menu based protocol
checks for servers from the favorite list.

Also, it fixes a second bug that happens when a server from the
public serverlist doesn't send its supported protocol versions,
most likely because its running a minetest older than commit [1].
Then we have shown an error msg that the server has enforced
one specific protocol version. This was most likely not the case.

Of course, we can't do anything better than do an assumption on
the protocol versions if they are not known. That assumption
should however be closest to the most often occuring case as
possible.

Also, some little cleanups.

[1]: 5a0ed780f56a5225b3d7c5f64099586e390e5f39 "Server: announce MIN/MAX protocol version supported to serverlist. Client: check serverlist"
2016-04-15 14:40:31 +02:00
SmallJoker
638c2c543d mainmenu: Tidy up logic in is_server_protocol_compat() (#3997)
Apply de morgan to simplify the logic.
2016-04-15 14:37:09 +02:00
Rui914
b283ced646 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
2016-04-08 02:25:04 -04:00
Rui914
619304f9cc Mainmenu: Move description.txt textbox down
Additionally, fix misc. code style issues
2016-03-31 04:15:41 -04:00
Rui
108afce789 Credits: Make that easy to add/remove 2016-03-24 16:56:23 +01:00
est31
a334f5f527 Add option to not send pre v25 init packet
The legacy init packet (pre v25) sends information about the client's
password that a server could use to log in to other servers if the
username and password are the same. All the other benefits of SRP of
protocol v25 are missed if the legacy init packet is still sent during
connection creation.

This patch adds an option to not send the v25 init packet. Not sending
the v25 packet means breaking compat with pre v25 servers, but as the
option is not enabled by default, no servers are affected unless the
user explicitly flips the switch. More than 90% of the servers on the
serverlist support post v25 protocols.

The patch also fixes a bug with greying out of non compliant servers
being done wrongly, the min and max params were mixed.
2016-03-15 17:20:09 +01:00
Jean-Patrick Guerrero
b5bb7f8105 Settings Tab: Regroup dropdown datas in tables 2016-03-06 23:42:21 +00:00
Rui914
7a9e8367db Faster insertion into table 2016-03-06 23:42:04 +00:00
Jean-Patrick Guerrero
08b9a710be Update settings tab + some misc. clean-up 2016-03-05 10:41:51 +01:00
est31
246fafdfc1 Don't generate trailing spaces in minetest.conf.example
If the default value of a setting was empty,
it previously generated a trailing space.
2016-02-27 05:49:22 +01:00
BlockMen
5e0a7cd4eb Restore simple settings tab and add advanced settings as dialog 2016-02-21 08:54:33 +00:00
Diego Martinez
b0ccad7c79 Fix world config menu ignoring name in mod.conf. 2016-01-23 21:14:14 -05:00
Rogier
46465998f1 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.
2016-01-16 13:05:46 +00:00
Rogier
0f5fa5be92 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.
2016-01-10 01:03:06 +00:00
Rogier
a009c24b00 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
2016-01-10 01:03:06 +00:00
jeanpatrick.guerrero@gmail.com
8fb17b7f21 Alphabetical sorting of texture packs in menu (fixes #3487) 2015-12-26 21:53:12 +01:00
est31
adce6104ec 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.
2015-11-08 21:19:21 +01:00
Rui914
f4e29e66bb minetest. to core. 2015-10-31 02:28:06 +01:00
PilzAdam
e65a03fa1b Fix parameter passing to gettext call 2015-10-25 19:14:07 +01:00
Rui
0524a56c32 Credits: Remove my name 2015-10-25 16:10:49 +01:00
PilzAdam
dd89f8c558 Escape " in generated settings_translation_file.cpp 2015-10-25 10:56:58 +01:00
PilzAdam
c8597365f2 Fix setting comments 2015-10-24 23:11:21 +02:00
PilzAdam
0100cb232b Don't allow games or mods to add secure. settings 2015-10-24 22:32:03 +02:00
est31
c9b9732e98 Better gettext support for protocol version mismatch messages
Previously, xgettext failed to resolve the dynamic call.
Thanks to @JakubVanek for pointing this out.
2015-10-24 20:16:47 +02:00
PilzAdam
2fb30ef4d3 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
2015-10-24 19:39:15 +02:00
est31
8ac6039dbc 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.
2015-10-18 02:18:10 +02:00
PilzAdam
65b81bc6d6 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
2015-10-17 22:06:29 +02:00
kilbith
801202245c Add viewing range GUI setting 2015-10-06 19:00:26 +02:00
Rui914
96bd2c3b4d Minor tweaks handle_settings_buttons 2015-09-14 08:29:15 +02:00
Rui914
a9fcb765e6 Change my email 2015-09-03 22:57:52 +02:00
est31
8ccd18e4e9 Credits tab: fix accidental merger of two contributors
Fixes #3125
2015-08-31 16:37:02 +02:00
Rui914
d653d026f6 Use gettext to "None" of texture pack list 2015-08-25 00:22:58 +02:00
kwolekr
86e7e26037 Remove some emails from credits tab 2015-08-19 15:56:08 -04:00
kwolekr
cd5c07e300 Update credits tab 2015-08-19 15:14:27 -04:00
est31
050e18c50e Client: disable mmdb modstore
The service isn't online, and on the long term, mmdb will likekly be
replaced with other services from the modding community.
2015-08-19 18:56:44 +02:00
est31
e5ed9dedc5 Don't do formspec escaping twice for loading description 2015-08-14 15:56:25 +02:00
jeanpatrick.guerrero@gmail.com
73c5031355 Fix FSAA dropdown option reset after changing another dropdown option 2015-07-25 17:33:41 +02:00
kilbith
2de082f89e Remove drivers dropdown in the settings tab 2015-07-25 10:41:04 +02:00
Novatux
9abb55e7d0 Update my name 2015-07-24 12:04:44 +02:00
sfan5
337a5ffd37 Fix crash in mainmenu when loaded subgame does not have a "menu" directory 2015-07-21 21:55:58 +02:00
sfan5
d7405b6176 Allow random menu images for subgames 2015-07-21 16:58:22 +02:00
Mark Schreiber
a2c95ad81d 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.
2015-07-18 08:40:57 +02:00
ExcaliburZero
da064cf437 Change texture pack description file name
Change the name for texture pack description files from "info.txt" to "description.txt" in order to keep the naming consistent between description files for both mods and texture packs.

Also add backwards compatibility for texture packs that use "info.txt", and note in the log that "info.txt" is depreciated.
2015-07-18 07:50:44 +02:00
jp
42c382fc7f Fix remnant bugs on mainmenu
- Stop attempting to start a world when no world's created/selected in server tab
- Better world's indexes handling between subgames lists
2015-07-10 16:52:57 -04:00