コード例 #1
0
        private SOBSSceneItem _translateSceneItem(SceneItem input, int index = 0)
        {
            SOBSSceneItem item = new SOBSSceneItem();

            item.Id       = _uidFromString(input.SourceName + "_" + index);
            item.Index    = index;
            item.Name     = input.SourceName;
            item.Visible  = input.Visible;
            item.IsFolder = input.InternalType == "group" ? true : false;
            item.ParentId = input.ParentGroupName;
            return(item);
        }
コード例 #2
0
        private SOBSSceneItem _translateSceneItem(SLOBSSceneItem input, int index = 0)
        {
            SOBSSceneItem item = new SOBSSceneItem();

            item.Id       = input.Id;
            item.SourceId = input.SourceId;
            item.Index    = index;
            item.Name     = input.Name;
            item.Visible  = input.Visible;
            item.IsFolder = input.SceneNodeType == "folder" ? true : false;
            item.ParentId = input.ParentId;
            return(item);
        }
コード例 #3
0
        private SOBSScene _translateScene(OBSScene input, int index = -1)
        {
            SOBSScene output = new SOBSScene();

            output.Index = index == -1 ? Scenes.Count() : index;
            output.Id    = _uidFromString(input.Name);
            output.Name  = input.Name;
            output.Items = new List <SOBSSceneItem>();
            if (input.Items != null && input.Items.Count > 0)
            {
                for (int i = 0; i < input.Items.Count; i++)
                {
                    SOBSSceneItem item = _translateSceneItem(input.Items[i], i);
                    output.Items.Add(item);
                }
            }
            return(output);
        }
コード例 #4
0
 private void Obs_SceneItemChanged(IOBSConnector sender, EOBSEvent eventtype, SOBSSceneItem eventdata)
 {
     _renderSceneItems();
 }