UI: Add TBar controls to obs-frontend-api

Adds `obs_frontend_set_tbar_position` and `obs_frontend_release_tbar`,
which allow plugins and scripts to control the tbar in OBS.
This specific change is required for the `SetTBarPosition`
request to be added to obs-websocket.
This commit is contained in:
tt2468
2020-07-06 17:48:30 -07:00
committed by jp9000
parent 39c3b3d687
commit a03189bb68
5 changed files with 29 additions and 0 deletions
+2
View File
@@ -915,6 +915,8 @@ void OBSBasic::TBarChanged(int value)
OBSSource transition = obs_get_output_source(0);
obs_source_release(transition);
tBar->setValue(value);
if (!tBarActive) {
OBSSource sceneSource = GetCurrentSceneSource();
OBSSource tBarTr = GetOverrideTransition(sceneSource);