mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-19 09:41:32 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user