diff --git a/line_counter.py b/line_counter.py index d1a189a..ada189d 100644 --- a/line_counter.py +++ b/line_counter.py @@ -80,17 +80,15 @@ class SimpleNumberCounter: def INPUT_TYPES(cls): return { "required": { + "reset_bool": ("BOOLEAN", {"default": False, + "label_on": "Reset", + "label_off": "Off"}), "number_type": (["integer", "float"],), "mode": (["increment", "decrement", "increment_to_stop", "decrement_to_stop"],), "start": ("FLOAT", {"default": 0, "min": -18446744073709551615, "max": 18446744073709551615, "step": 0.01}), "stop": ("FLOAT", {"default": 0, "min": -18446744073709551615, "max": 18446744073709551615, "step": 0.01}), "step": ("FLOAT", {"default": 1, "min": 0, "max": 99999, "step": 0.01}), }, - "optional": { - "reset_bool": ("BOOLEAN", {"default": False, - "label_on": "Reset", - "label_off": "Off"}), - }, "hidden": { "unique_id": "UNIQUE_ID", } @@ -106,7 +104,7 @@ class SimpleNumberCounter: CATEGORY = "🤖 CCTech/Utilities" - def increment_number(self, number_type, mode, start, stop, step, unique_id, reset_bool=False): + def increment_number(self, reset_bool, number_type, mode, start, stop, step, unique_id): counter = int(start) if number_type == 'integer' else start if unique_id in self.counters: diff --git a/pyproject.toml b/pyproject.toml index 83060e1..0be863d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-line-counter" description = "This custom node package for ComfyUI is designed to streamline your workflow with powerful file-counting capabilities." -version = "1.0.11" +version = "1.0.12" license = {file = "LICENSE"} [project.urls]