Browse Source

bugfix: missing badges for some small nodes

- now use NO_TITLE instead of height.
pull/113/head
Dr.Lt.Data 1 year ago
parent
commit
1c1139a430
  1. 2
      __init__.py
  2. 7
      extension-node-map.json
  3. 2
      js/comfyui-manager.js
  4. 7
      node_db/new/extension-node-map.json

2
__init__.py

@ -55,7 +55,7 @@ sys.path.append('../..')
from torchvision.datasets.utils import download_url
# ensure .js
print("### Loading: ComfyUI-Manager (V0.29)")
print("### Loading: ComfyUI-Manager (V0.29.1)")
comfy_ui_required_revision = 1240
comfy_ui_revision = "Unknown"

7
extension-node-map.json

@ -1550,6 +1550,8 @@
"Prompt With Style",
"Prompt With Style V2",
"Prompt With Style V3",
"Range Float",
"Range Integer",
"Ratio Advanced",
"Resize Image for SDXL",
"Save Image If True",
@ -2735,6 +2737,7 @@
[
"AV_CheckpointModelsToParametersPipe",
"AV_ControlNetEfficientLoader",
"AV_ControlNetEfficientLoaderAdvanced",
"AV_ControlNetEfficientStacker",
"AV_ControlNetLoader",
"AV_ControlNetPreprocessor",
@ -2989,7 +2992,9 @@
],
"https://github.com/tusharbhutt/Endless-Nodes": [
[
"Endless Nodes Parameteriizer",
"Endless Nodes Combo Parameterizer",
"Endless Nodes Combo Parameterizer & Prompts",
"Endless Nodes Parameterizer",
"Endless Nodes Parameterizer & Prompts",
"Endless Nodes Six Input Text Switch",
"Endless Nodes Six Integer IO Switch",

2
js/comfyui-manager.js vendored

@ -2002,7 +2002,7 @@ app.registerExtension({
nodeType.prototype.onDrawForeground = function (ctx) {
const r = onDrawForeground?.apply?.(this, arguments);
if(!this.flags.collapsed && badge_mode != 'none' && this.size[1] > LiteGraph.NODE_TITLE_HEIGHT) {
if(!this.flags.collapsed && badge_mode != 'none' && nodeType.title_mode != LiteGraph.NO_TITLE) {
let text = "";
if(badge_mode == 'id_nick')
text = `#${this.id} `;

7
node_db/new/extension-node-map.json

@ -1550,6 +1550,8 @@
"Prompt With Style",
"Prompt With Style V2",
"Prompt With Style V3",
"Range Float",
"Range Integer",
"Ratio Advanced",
"Resize Image for SDXL",
"Save Image If True",
@ -2735,6 +2737,7 @@
[
"AV_CheckpointModelsToParametersPipe",
"AV_ControlNetEfficientLoader",
"AV_ControlNetEfficientLoaderAdvanced",
"AV_ControlNetEfficientStacker",
"AV_ControlNetLoader",
"AV_ControlNetPreprocessor",
@ -2989,7 +2992,9 @@
],
"https://github.com/tusharbhutt/Endless-Nodes": [
[
"Endless Nodes Parameteriizer",
"Endless Nodes Combo Parameterizer",
"Endless Nodes Combo Parameterizer & Prompts",
"Endless Nodes Parameterizer",
"Endless Nodes Parameterizer & Prompts",
"Endless Nodes Six Input Text Switch",
"Endless Nodes Six Integer IO Switch",

Loading…
Cancel
Save