Skip to content

Commit

Permalink
temporary fix for 214
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgoringe committed Aug 22, 2024
1 parent 80c4e6f commit 23ad738
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from .use_everywhere import SeedEverywhere, AnythingEverywherePrompts

UE_VERSION = "5.0.2"
UE_VERSION = "5.0.3"

NODE_CLASS_MAPPINGS = { "Seed Everywhere": SeedEverywhere }

Expand Down
4 changes: 4 additions & 0 deletions js/ue.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,8 @@
margin: 0px;
width: 100%;
float: right;
}

ue_hide {
display: none;
}
12 changes: 7 additions & 5 deletions js/use_everywhere_autoprompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function getClipPath(node, element) {
function active_text_widget(node, inputname) {
const label = document.createElement("label");
label.className = "graphdialog ueprompt";
label.style.display = "none";


const label_text = document.createElement("span");
label_text.innerText = `${inputname.substring(0,5)} `;
Expand Down Expand Up @@ -108,7 +108,9 @@ function active_text_widget(node, inputname) {
}
}
});
widget.element.hidden = true;
//widget.element.hidden = true;
//widget.element.classList.add("ue_hide")
widget.element.style.display="block"

inputEl.onmousedown = function(e) {
const x = app.canvas.prompt("Value",widget.value,function(v) { this.value = v; }.bind(widget), e, false );
Expand Down Expand Up @@ -140,7 +142,7 @@ function active_text_widget(node, inputname) {
node.widgets?.forEach((widget) => {
if (widget.element) {
widget.element.hidden = true;
widget.element.style.display = "none";
widget.element.classList.add("ue_hide")
}
})
}
Expand All @@ -151,13 +153,13 @@ function active_text_widget(node, inputname) {
function activate(node, widget) {
if (node.flags?.collapsed) return;
widget.element.hidden = false;
widget.element.style.display = "";
widget.element.classList.remove("ue_hide")
}

function add_autoprompts() {
const STRING = ComfyWidgets.STRING;
ComfyWidgets.STRING = function (node, inputName, inputData, app) {
if (!is_UEnode(node) || !inputName?.includes("regex") || !app.ui.settings.getSettingValue('AE.autoprompt', true)) {
if (true || !is_UEnode(node) || !inputName?.includes("regex") || !app.ui.settings.getSettingValue('AE.autoprompt', true)) {
return STRING.apply(this, arguments);
}
const atw = active_text_widget(node, inputName);
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "cg-use-everywhere"
description = "A set of nodes that allow data to be 'broadcast' to some or all unconnected inputs. Greatly reduces link spaghetti."
version = "5.0.2"
version = "5.0.3"
license = { file = "LICENSE" }

[project.urls]
Expand Down

0 comments on commit 23ad738

Please sign in to comment.