Add emit loop delay control for item emit audio

This commit is contained in:
Jage9
2026-02-28 02:30:10 -05:00
parent 1b2c7cdc56
commit 887aad9435
8 changed files with 63 additions and 4 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},
},
"emitLoopDelay": {
"valueType": "number",
"tooltip": "Delay in seconds between each emitted playback.",
"range": {"min": 0, "max": 300, "step": 0.1},
},
}
ITEM_TYPE_PROPERTY_METADATA: dict[ItemType, dict[str, dict[str, object]]] = {
@@ -154,4 +159,5 @@ def get_item_global_properties(item_type: ItemType) -> dict[str, str | int | boo
"directional": bool(definition.directional),
"emitSoundSpeed": 50,
"emitSoundTempo": 50,
"emitLoopDelay": 0,
}