Example #1
0
 public override void OnInspectorGUI()
 {
     cinemaAudio.Update();
     EditorGUILayout.PropertyField(firetime);
     EditorGUILayout.PropertyField(duration);
     EditorGUILayout.PropertyField(inTime);
     EditorGUILayout.PropertyField(outTime);
     EditorGUILayout.PropertyField(m_Path);
     cinemaAudio.ApplyModifiedProperties();
     if (GUILayout.Button("打开音效资源"))
     {
         EffectSelector.Show(Callback, "Sounds", false);
     }
 }
Example #2
0
    public static void Show(Callback callback, string path, bool extension = true)
    {
        if (Instance != null)
        {
            Instance.Close();
            Instance = null;
        }

        EffectSelector comp = GetWindow <EffectSelector>("选择资源");

        comp.Path        = path;
        comp.m_Extension = extension;
        comp._callback   = callback;
        comp.Show();
    }
 private void buttonAddEffect_Click(object sender, EventArgs e)
 {
     EffectSelector es = new EffectSelector();
     if (es.ShowDialog() == DialogResult.OK)
     {
         dataGridView1.Rows.Add();
         int rowNum = dataGridView1.RowCount - 1;
         dataGridView1.Rows[rowNum].Cells[0].Value = es.effectType;
         if(es.effectType=="psn"||es.effectType=="psnself"||es.effectType =="par"||es.effectType =="parself" || es.effectType == "bli" || es.effectType == "bliself")
         {
             disableCell(rowNum, 1);
             disableCell(rowNum, 3);
         }
         else if (es.effectType == "cleanse")
         {
             disableCell(rowNum, 1);
             disableCell(rowNum, 2);
             disableCell(rowNum, 3);
         }
     }
 }
Example #4
0
 public ActiveRenderStage(string effectName)
 {
     EffectSelector = new EffectSelector(effectName);
 }
 public ActiveRenderStage(string effectName)
 {
     EffectSelector = new EffectSelector(effectName);
 }
 public void OpenParticle()
 {
     EffectSelector.Show(Callback, "Resources\\Effect");
 }
Example #7
0
 public ActiveRenderStage(string effectName, bool isShadow = false)
 {
     _es = new EffectSelector(effectName);
     TemporaryDisable = false;
     IsShadowStage    = isShadow;
 }
Example #8
0
 private void OnDisable()
 {
     Instance = null;
 }
Example #9
0
 private void OnEnable()
 {
     Instance = this;
 }