From 4ae3e183a31668d23ba9bccf5069f7c5d1bb26d4 Mon Sep 17 00:00:00 2001 From: AUTOMATIC1111 <16777216c@gmail.com> Date: Sat, 16 Mar 2024 09:57:18 +0300 Subject: [PATCH] Updated Developing extensions (markdown) --- Developing-extensions.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Developing-extensions.md b/Developing-extensions.md index 7d1fd19..c6e9750 100644 --- a/Developing-extensions.md +++ b/Developing-extensions.md @@ -145,6 +145,21 @@ Before = another-extension, yet-another-extension/another-script.py, xyz_grid.py # Other details are the same as `Before` key. After = another-extension, yet-another-extension/another-script.py, xyz_grid.py +# A section starting with "callbacks/" allows you to change the position of +# the mentioned callback relative to others. +# +# Each callback is identified by its extension's canonical name, its filename, +# its category (here, it's ui_settings for all of them), and, optionally, by a user-specified name. +# +# You can see identifiers for existing callbacks in settings (see screenshot below). +[callbacks/swinir/swinir_model.py/ui_settings] + +# This makes our swinir_model.py/ui_settings callback happen before ldsr_model.py/ui_settings +Before = ldsr/ldsr_model.py/ui_settings + +# This makes our swinir_model.py/ui_settings callback happen after hypertile_script.py/ui_settings +After = hypertile/hypertile_script.py/ui_settings + ``` When authoring a metadata file, please note that while the section names are case-insensitive, the keys are not.