UI: Add obs_frontend_open_source_interaction()

Adds a frontend api call to open the interact dialog of a source,
just like the `_properties` and `_filters` functions.
This commit is contained in:
tt2468
2021-12-28 16:50:43 -08:00
committed by Jim
parent 466ba5ae29
commit 47397ce527
7 changed files with 34 additions and 0 deletions

View File

@@ -6199,6 +6199,15 @@ void OBSBasic::OpenProperties(OBSSource source)
CreatePropertiesWindow(source);
}
void OBSBasic::OpenInteraction(OBSSource source)
{
if (source == nullptr) {
OBSSceneItem item = GetCurrentSceneItem();
source = obs_sceneitem_get_source(item);
}
CreateInteractionWindow(source);
}
void OBSBasic::OpenSceneFilters()
{
OBSScene scene = GetCurrentScene();