Add emit initial delay option for widget audio emit

This commit is contained in:
Jage9
2026-02-28 03:21:55 -05:00
parent 3bd4f35653
commit 294ccfa902
8 changed files with 44 additions and 2 deletions

View File

@@ -113,6 +113,11 @@ GLOBAL_ITEM_PROPERTY_METADATA: dict[str, dict[str, object]] = {
"tooltip": "Global emitted sound tempo percent. 50 is normal.",
"range": {"min": 0, "max": 100, "step": 0.1},
},
"emitInitialDelay": {
"valueType": "number",
"tooltip": "Delay in seconds before emitted audio starts after this sound is enabled.",
"range": {"min": 0, "max": 300, "step": 0.1},
},
"emitLoopDelay": {
"valueType": "number",
"tooltip": "Delay in seconds between each emitted playback.",
@@ -159,5 +164,6 @@ def get_item_global_properties(item_type: ItemType) -> dict[str, str | int | boo
"directional": bool(definition.directional),
"emitSoundSpeed": 50,
"emitSoundTempo": 50,
"emitInitialDelay": 0,
"emitLoopDelay": 0,
}