コード例 #1
0
        private void checkBoxCG_CheckedChanged(object sender, EventArgs e)
        {
            if (m_objCharGen != null)
            {
                m_objPlaylist.PluginsRemove(m_objCharGen);
                System.Runtime.InteropServices.Marshal.ReleaseComObject(m_objCharGen);
                m_objCharGen = null;
                //m_strItemID = "";
                buttonCG_Props.Enabled = false;
                //CGParams.Enabled = false;
                CgEditorButton.Enabled = false;
            }

            if (checkBoxCG.Checked)
            {
                m_objCharGen = new MLCHARGENLib.CoMLCharGen();
                m_objPlaylist.PluginsAdd(m_objCharGen, 0);

                //m_objCharGen.AddNewItem("MediaLooks", 0.1, 0.1, 1, 1, ref m_strItemID);
                //m_objCharGen.SetItemProperties(m_strItemID, "movement::speed-x", "1", "", 0);
                //m_objCharGen.ShowItem(m_strItemID, 1, 1000);
                //CGParams.Enabled = true;
                buttonCG_Props.Enabled = true;
                CgEditorButton.Enabled = true;
            }
        }
コード例 #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            mcc = new MCCDisplay();

            m_objPlaylist = new MPlaylistClass();
            m_objPlaylist.PreviewWindowSet("", panelPrev.Handle.ToInt32());
            m_objPlaylist.PreviewEnable("", 0, 1);

            m_objPlaylist.PropsSet("object::on_frame.sync", "true");
            m_objPlaylist.PropsSet("object::on_frame.data", "true");

            m_objPlaylist.OnEventSafe += M_objPlaylist_OnEventSafe;
            m_objPlaylist.OnFrameSafe += M_objPlaylist_OnFrameSafe;

            m_objPlaylist.PluginsAdd(mcc, 0);
        }
コード例 #3
0
 public CGManager(MPlaylistClass mplaylist)
 {
     this._mplaylist = mplaylist;
     _mlCharGen      = new CoMLCharGen();
     mplaylist.PluginsAdd(_mlCharGen, 0);
 }