From 464da36e2aa4796601f3d69443f35cb7105d25c9 Mon Sep 17 00:00:00 2001 From: tim h Date: Fri, 27 Jan 2023 20:00:48 -0600 Subject: [PATCH] unrelated to scripts but kinda neato autolayers option --- js/ui/tool/dream.js | 4 ++++ pages/configuration.html | 15 +++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/js/ui/tool/dream.js b/js/ui/tool/dream.js index f40ed9a..14b1811 100644 --- a/js/ui/tool/dream.js +++ b/js/ui/tool/dream.js @@ -515,6 +515,10 @@ const _generate = async (endpoint, request, bb, options = {}) => { ctx.drawImage(keepUnmaskCanvas, 0, 0); } + if (localStorage.getItem("openoutpaint/settings.autolayer") == "true") { + commands.runCommand("addLayer", "Added Layer", {}); + } + commands.runCommand("drawImage", "Image Dream", { x: bb.x, y: bb.y, diff --git a/pages/configuration.html b/pages/configuration.html index a7fcd42..ca71372 100644 --- a/pages/configuration.html +++ b/pages/configuration.html @@ -90,6 +90,10 @@ Lie to HRfix: +