aboutsummaryrefslogtreecommitdiff
path: root/builtin/mainmenu
Commit message (Expand)AuthorAge
* Fix builtin lua function os.tempfolder (#7368)nOOb31672018-06-05
* Tidy up dlg_config_world.lua (#5351)you2018-05-29
* Add screenshots to online content browserrubenwardy2018-05-20
* Add updating to online content browserrubenwardy2018-05-16
* Fix description wrapping in browse online contentrubenwardy2018-04-26
* Add online content repositoryrubenwardy2018-04-19
* Load dependencies and description from mod.confAndrew Ward2018-03-28
* Rename 'subgame' to 'game'paramat2018-03-13
* Delete world dialog: Move buttons to avoid double click deletionMuhammad Rifqi Priyo Susanto2018-02-20
* Add a refresh button to the serverlist (#6957)Tre2018-02-19
* Add main_menu_style settingPorygonZRocks2018-02-08
* Main menu: Change tabs to 'Start Game' and 'Join Game' (#6955)Tre2018-01-25
* Advanced settings: Add range check for float typeMuhammad Rifqi Priyo Susanto2017-12-26
* Fix error if setting menu_last_game is not a valid gamenOOb31672017-12-22
* Give subgames the ability to disallow specific mapgens (#6792)Ezhh2017-12-16
* Change Normal Map setting to be less ambigousTre2017-12-16
* Mainmenu: Improve button alignmentezhh2017-11-19
* Mainmenu: Make capitalisation consistent in mainmenu and advanced settingsezhh2017-11-14
* Improve Settings tab button alignmentsezhh2017-11-13
* Fix Settings tab formspec alignment (#6585)Ezhh2017-11-05
* Improvements/fixes for noise parameter input in advanced settingsMuhammad Rifqi Priyo Susanto2017-10-23
* Formspec: textarea with scrollbar improvementsadrido2017-10-09
* Fix core.wrap_text and make its behaviour consistent with the docssfan52017-09-12
* Make world creation menu automatically generate a random world name (#6257)lisacvuk2017-08-18
* Advanced settings: Re-organise mapgen settings for ease of useparamat2017-08-14
* Add short description for disabled texture packsWuzzy2017-08-13
* Update credits (#6228)Zeno-2017-08-09
* Remove remaining modstore code (#6120)Elijah Duffy2017-07-14
* Advanced settings: Reformat noise parameter format exampleparamat2017-07-11
* Create a filesystem abstraction layer for CSM and only allow accessing files ...red-0012017-06-30
* Change the server description after a search (#6074)Vincent Glize2017-06-29
* Improve the path select GUI (#5852)red-0012017-06-11
* Menu: Do not use textlist for shaders in settings tab (#5820)Elijah Duffy2017-06-10
* make ret variable in /builtin/mainmenu/tab_credits.lua local (#5942)DS2017-06-07
* Update creditsrubenwardy2017-06-03
* Add formspec escaping to subgame list in create world dialog (#5808)rubenwardy2017-05-24
* Menu: Merge singleplayer and server tabs (#5627)Elijah Duffy2017-05-21
* Mainmenu: Fix issues while trying to enable all mods (#5770)SmallJoker2017-05-19
* Builtin: Fix subgame mod selection (#5367)SmallJoker2017-05-17
* CSM: Document forgotten functionsSmallJoker2017-05-16
* Add option to use neither node highlighting nor outliningezhh2017-05-15
* Menu: Fix starting a server if the server address is an empty string. (#5742)red-0012017-05-10
* Android: Fix crash while loading main menu (#5736)red-0012017-05-09
* Move Pilzadam to previous developers. (#5735)Auke Kok2017-05-09
* Use a settings object for the main settingsShadowNinja2017-05-06
* Save minetest screen width/height options when modified (#5683)Loïc Blot2017-05-05
* Conf.example: Move some lines to minetest.conf.example.extraparamat2017-04-19
* Multiplayer menu: fix attempt to open nonexistant imagekilbith2017-02-18
* Mainmenu: Brighter text colours for readabilityHybrid Dog2017-02-12
* Use tree to list mods rather than textlistrubenwardy2017-02-10
> shift shift ;; --heightalpha|-a) heightsource=1 shift ;; --conversion|-c) if [ -z "$2" ] ; then echo "Missing conversion parameter"; exit 1; fi case "$2" in biased|1) conversion=1 ;; red|2) conversion=2 ;; green|3) conversion=3 ;; blue|4) conversion=4 ;; maxrgb|5) conversion=5 ;; minrgb|6) conversion=6 ;; colorspace|7) conversion=7 ;; normalize-only|8) conversion=8 ;; heightmap|9) conversion=9 ;; *) conversion=0 ;; esac shift shift ;; --wrap|-w) wrap=1 shift ;; --invertx|-x) invertx=1 shift ;; --inverty|-y) inverty=1 shift ;; --dryrun|-d) dryrun=true shift ;; *) echo -e "\nUsage:\n" echo "`basename $0` [--scale|-s <value>] [--filter|-f <string>]" echo " [--wrap|-w] [--heightalpha|-a] [--invertx|-x] [--inverty|-y]" echo " [--conversion|-c <string>] [--skiptools|-t] [--skipinventory|-i [<value>]]" echo " [--dryrun|-d] [--pattern|-p <pattern>]" echo -e "\nDefaults to a scale of 8, checking all files in the current directory, and not" echo "skipping apparent tools or inventory images. Filter, if specified, may be one" echo "of: sobel3, sobel5, prewitt3, prewitt5, 3x3, 5x5, 7x7, or 9x9, or a value 1" echo "through 8 (1=sobel3, 2=sobel5, etc.). Defaults to 0 (four-sample). The height" echo "source is taken from the image's alpha channel if heightalpha is specified.\n" echo "" echo "If inventory skip is specified, an optional resolution may also be included" echo "(default is 64). Conversion can be one of: biased, red, green, blue, maxrgb," echo "minrgb, colorspace, normalize-only, heightmap or a value from 1 to 9" echo "corresponding respectively to those keywords. Defaults to 0 (simple" echo "normalize) if not specified. Wrap, if specified, enables wrapping of the" echo "normalmap around the edges of the texture (defaults to no). Invert X/Y" echo "reverses the calculated gradients for the X and/or Y dimensions represented" echo "by the normalmap (both default to non-inverted)." echo "" echo "The pattern, can be an escaped pattern string such as \*apple\* or" echo "default_\*.png or similar (defaults to all PNG and JPG images in the current" echo "directory that do not contain \"_normal\" or \"_specular\" in their filenames)." echo "" echo "If set for dry-run, the actions this script will take will be printed, but no" echo "images will be generated. Passing an invalid value to a switch will generally" echo "cause that switch to revert to its default value." echo "" exit 1 ;; esac done echo -e "\nProcessing files based on pattern \"$pattern\" ..." normalMap() { out=`echo "$1" | sed 's/.png/_normal.png/' | sed 's/.jpg/_normal.png/'` echo "Launched process to generate normalmap: \"$1\" --> \"$out\"" >&2 gimp -i -b " (define (normalMap-fbx-conversion fileName newFileName filter nscale wrap heightsource conversion invertx inverty) (let* ( (image (car (gimp-file-load RUN-NONINTERACTIVE fileName fileName))) (drawable (car (gimp-image-get-active-layer image))) (drawable (car (gimp-image-flatten image))) ) (if (> (car (gimp-drawable-type drawable)) 1) (gimp-convert-rgb image) () ) (plug-in-normalmap RUN-NONINTERACTIVE image drawable filter 0.0 nscale wrap heightsource 0 conversion 0 invertx inverty 0 0.0 drawable) (gimp-file-save RUN-NONINTERACTIVE image drawable newFileName newFileName) (gimp-image-delete image) ) ) (normalMap-fbx-conversion \"$1\" \"$out\" $2 $3 $4 $5 $6 $7 $8)" -b '(gimp-quit 0)' } export -f normalMap for file in `ls $pattern |grep -v "_normal.png"|grep -v "_specular"` ; do invtest=`file "$file" |grep "$invresolution x $invresolution"` if $skipinventory && [ -n "$invtest" ] ; then echo "Skipped presumed "$invresolution"px inventory image: $file" >&2 continue fi tooltest=`echo "$file" \ | grep -v "_tool" \ | grep -v "_shovel" \ | grep -v "_pick" \ | grep -v "_axe" \ | grep -v "_sword" \ | grep -v "_hoe" \ | grep -v "bucket_"` if $skiptools && [ -z "$tooltest" ] ; then echo "Skipped presumed tool image: $file" >&2 continue fi if $dryrun ; then echo "Would have generated a normalmap for $file" >&2 continue else echo \"$file\" $filter $scale $wrap $heightsource $conversion $invertx $inverty fi done | xargs -P $numprocs -n 8 -I{} bash -c normalMap\ \{\}\ \{\}\ \{\}\ \{\}\ \{\}\ \{\}\ \{\}\ \{\}