diff --git a/build.js b/build.js index 3a2b332..1172994 100644 --- a/build.js +++ b/build.js @@ -21,10 +21,12 @@ function copy_images(){ gulp.src('./images/*.ico').pipe(gulp.dest(BUILDDIR)); // Splash images gulp.src('./images/Splash images/*.png').pipe(gulp.dest(BUILDDIR)); - // Logs images + // Logs gifs gulp.src('./images/Logs/*.gif').pipe(gulp.dest(BUILDDIR)); - // Logs images + // Logs pngs gulp.src('./images/Logs/*.png').pipe(gulp.dest(BUILDDIR)); + // Tool tutorials + gulp.src('./images/ToolTutorials/*.gif').pipe(gulp.dest(BUILDDIR)); } function copy_logs() { diff --git a/css/_main-menu.scss b/css/_main-menu.scss index 06453d8..29e9370 100644 --- a/css/_main-menu.scss +++ b/css/_main-menu.scss @@ -69,7 +69,7 @@ -/*app title*/ +/* app title */ .logo { color: lighten($basecolor, 20%); @@ -83,3 +83,46 @@ #main-menu li.open, #main-menu li button:hover { background: $basehover; } + +/* Editor info */ +li#editor-info { + float:right; + height:100%; + display:flex; + align-items: center; + background-color: $basecolor; + color:$basetext; + + ul { + background-color: $basecolor; + display:block; + position:relative; + top:0px; + padding-top:0px; + box-shadow: none; + padding-bottom: 0px; + + li { + top:0px; + padding-top:0px; + display:inline; + padding-right:20px; + } + input { + margin-left:10px; + background-color:$basehovertext; + box-shadow:none; + border:none; + vertical-align: middle; + border-radius:5px; + } + input[type=text] { + width:20px; + height:15px; + } + input[type=checkbox] { + width:15px; + height:15px; + } + } +} \ No newline at end of file diff --git a/css/_splash-page.scss b/css/_splash-page.scss index 1bf440a..10ee8dc 100644 --- a/css/_splash-page.scss +++ b/css/_splash-page.scss @@ -3,6 +3,7 @@ #splash { width:100% !important; height:100%!important; + position:absolute; background-color: #232125 !important; opacity: 1 !important; diff --git a/css/_tools-menu.scss b/css/_tools-menu.scss index 704b041..ce70f63 100644 --- a/css/_tools-menu.scss +++ b/css/_tools-menu.scss @@ -108,4 +108,29 @@ #tools-menu li:hover { background: $basehover; +} + +/* Tool tutorial */ +#tool-tutorial { + display:inline-block; + position:absolute; + z-index:4000; + margin-left:48px; + margin-top:48px; + background-color: $basehover; + color:$basetext; + font-size:14px; + width:20%; + border-radius:0 5px 5px 5px; + + img { + width:100%; + } +} + +#tool-tutorial:after { + border-left: 11px solid #222; + border-top: 8px solid transparent; + border-bottom: 8px solid transparent; + position: relative; } \ No newline at end of file diff --git a/images/ToolTutorials/brush-tutorial.gif b/images/ToolTutorials/brush-tutorial.gif new file mode 100644 index 0000000..50dd9c6 Binary files /dev/null and b/images/ToolTutorials/brush-tutorial.gif differ diff --git a/js/Tool.js b/js/Tool.js index 435acaa..f05f6eb 100644 --- a/js/Tool.js +++ b/js/Tool.js @@ -24,6 +24,7 @@ class Tool { biggerButton = undefined; smallerButton = undefined; brushPreview = document.getElementById("brush-preview"); + toolTutorial = document.getElementById("tool-tutorial"); constructor (name, options) { this.name = name; @@ -34,6 +35,22 @@ class Tool { this.smallerButton = document.getElementById(name + "-smaller-button"); } + resetTutorial() { + this.toolTutorial.innerHTML = "