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:
parent
39c3b3d687
commit
a03189bb68
5 changed files with 29 additions and 0 deletions
|
|
@ -151,6 +151,17 @@ struct OBSStudioAPI : obs_frontend_callbacks {
|
|||
"setValue", Q_ARG(int, duration));
|
||||
}
|
||||
|
||||
void obs_frontend_release_tbar(void) override
|
||||
{
|
||||
QMetaObject::invokeMethod(main, "TBarReleased");
|
||||
}
|
||||
|
||||
void obs_frontend_set_tbar_position(int position) override
|
||||
{
|
||||
QMetaObject::invokeMethod(main, "TBarChanged",
|
||||
Q_ARG(int, position));
|
||||
}
|
||||
|
||||
void obs_frontend_get_scene_collections(
|
||||
std::vector<std::string> &strings) override
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue