From 56d9639659e53afa99fb24bddb2c97f1ad649e28 Mon Sep 17 00:00:00 2001 From: ozelot379 Date: Tue, 27 Aug 2019 10:32:59 +0200 Subject: [PATCH] Allow select folder on browser gui --- CHANGELOG.md | 3 ++ README.md | 6 ++-- package.json | 2 +- src/webapp/css/style.less | 4 +-- src/webapp/html/index.html | 8 +++-- src/webapp/js/index.js | 39 ++++++++++++++-------- src/webapp/js/selector.js | 67 ++++++++++++++++++++++++++++---------- src/webapp/js/worker.js | 2 +- 8 files changed, 90 insertions(+), 41 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 49e96d5..fdb8fe0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## [1.9.0] +- Allow select folder on browser gui + ## [1.8.1] - Some improvments and fixes diff --git a/README.md b/README.md index a9f6d0d..80b2cdd 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ ConvertMinecraftJavaTextureToBedrock -i input/java_texture_pack.zip -o output/be |---------------|-------------------------------| | -i (Required) | Input folder or archive path | | -o (Required) | Output folder or archive path | -| -l | Verbose log | +| -l | Verbose log (Default `true`) | ## Direct in your code Add it as a dependency to your `package.json` @@ -77,14 +77,14 @@ ConvertMinecraftJavaTextureToBedrock(input, output/*, "options"*/).then((outputP |---------------------|------------------------------------------------| | input (Required) | - Folder or archive path (`string`)
- Archive (`Buffer`)
- `Array` with archive (`Buffer`) and filename (`string`) | | output (Required) | - Folder or archive path (`string`)
- Archive (`Buffer`) | -| options.verbose | Verbose log | +| options.verbose | Verbose log (Default `true`) | | options.logCallback | Custom log callback (Default is `console.log`) | ## Known issues - Convert horse textures is very tricky and may buggy - Convert weather textures (rain and snow) may not works (seems to be an other format as the default) -# Extras +# Extras (for texture pack creators) ## UUID You can create the `bedrock_uuid_header` and `bedrock_uuid_module` files in your input, to keep the same uuid on repeating conversions - otherwise, random uuids are generated each time and you need to reselect the texture pack again in the game diff --git a/package.json b/package.json index c06170e..b0ba0fe 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@ozelot379/convert-minecraft-java-texture-to-bedrock", "productName": "ConvertMinecraftJavaTextureToBedrock", - "version": "1.8.1", + "version": "1.9.0", "description": "Convert Minecraft Java texture packs to Minecraft Bedrock texture packs", "keywords": [ "Minecraft", diff --git a/src/webapp/css/style.less b/src/webapp/css/style.less index 7a739a8..11ee386 100644 --- a/src/webapp/css/style.less +++ b/src/webapp/css/style.less @@ -1,9 +1,9 @@ @import (less) "~materialize-css/dist/css/materialize.min.css"; .section { - padding: 100px; + padding: 100px 0; } .swal-button { - .green + .green // Color for sweetalert buttons } diff --git a/src/webapp/html/index.html b/src/webapp/html/index.html index 785823f..f0320f2 100644 --- a/src/webapp/html/index.html +++ b/src/webapp/html/index.html @@ -14,14 +14,18 @@
- + Select + + + * Not works on mobile browsers