]> git.lizzy.rs Git - minetest.git/commit
Improve the path select GUI (#5852)
authorred-001 <red-001@outlook.ie>
Sun, 11 Jun 2017 07:43:31 +0000 (08:43 +0100)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Sun, 11 Jun 2017 07:43:31 +0000 (09:43 +0200)
commit26e2eb019afa60c66c4dc89cf24bbf5b25c6a383
treea2ac098a32d4b7c97775c9161a29b12ec54e3fad
parent6c5e5e202394ce8063e3c2d9b663145bc4f8efce
Improve the path select GUI (#5852)

- Allow lua to chose whatever directories or files can be selected
- Fix selecting directories
- Rename dialog to `guiPathSelectMenu` from `guiFileSelectMenu`
- Rename lua function for opening the menu from `show_file_open_dialog` to `show_path_select_dialog`
- Remove duplicate code and fix code style.

Related changes
- fix `clang-format` whitelist.
- Regenerate minetest.conf.example
12 files changed:
build/android/jni/Android.mk
builtin/mainmenu/dlg_settings_advanced.lua
builtin/settingtypes.txt
minetest.conf.example
src/CMakeLists.txt
src/guiFileSelectMenu.cpp [deleted file]
src/guiFileSelectMenu.h [deleted file]
src/guiPathSelectMenu.cpp [new file with mode: 0644]
src/guiPathSelectMenu.h [new file with mode: 0644]
src/script/lua_api/l_mainmenu.cpp
src/script/lua_api/l_mainmenu.h
util/travis/clang-format-whitelist.txt