Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
4c54c2ec
Commit
4c54c2ec
authored
Feb 01, 2024
by
comfyanonymous
Browse files
Merge branch 'increment-wrap' of
https://github.com/pksebben/ComfyUI
parents
6ab42054
53a22e1a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
web/scripts/widgets.js
web/scripts/widgets.js
+10
-1
No files found.
web/scripts/widgets.js
View file @
4c54c2ec
...
@@ -81,6 +81,9 @@ export function addValueControlWidgets(node, targetWidget, defaultValue = "rando
...
@@ -81,6 +81,9 @@ export function addValueControlWidgets(node, targetWidget, defaultValue = "rando
const
isCombo
=
targetWidget
.
type
===
"
combo
"
;
const
isCombo
=
targetWidget
.
type
===
"
combo
"
;
let
comboFilter
;
let
comboFilter
;
if
(
isCombo
)
{
valueControl
.
options
.
values
.
push
(
"
increment-wrap
"
);
}
if
(
isCombo
&&
options
.
addFilterList
!==
false
)
{
if
(
isCombo
&&
options
.
addFilterList
!==
false
)
{
comboFilter
=
node
.
addWidget
(
comboFilter
=
node
.
addWidget
(
"
string
"
,
"
string
"
,
...
@@ -128,6 +131,12 @@ export function addValueControlWidgets(node, targetWidget, defaultValue = "rando
...
@@ -128,6 +131,12 @@ export function addValueControlWidgets(node, targetWidget, defaultValue = "rando
case
"
increment
"
:
case
"
increment
"
:
current_index
+=
1
;
current_index
+=
1
;
break
;
break
;
case
"
increment-wrap
"
:
current_index
+=
1
;
if
(
current_index
>=
current_length
)
{
current_index
=
0
;
}
break
;
case
"
decrement
"
:
case
"
decrement
"
:
current_index
-=
1
;
current_index
-=
1
;
break
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment