Esempio n. 1
0
 /// <summary> Panel to show all active "Events" while playing </summary>
 /// <param name="inlineHelp">Should help be displayed?</param>
 void EventsPanel(bool inlineHelp)
 {
     ++EditorGUI.indentLevel;
     EditorGUILayout.BeginHorizontal();
     {
         if (m_editorUtils.Button("AddEventButton", inlineHelp, GUILayout.Width(40)) && !string.IsNullOrEmpty(tmpTrigger))
         {
             AmbienceManager.ActivateEvent(tmpTrigger);
             tmpTrigger = "";
         }
         tmpTrigger = GUILayout.TextField(tmpTrigger);
     }
     EditorGUILayout.EndHorizontal();
     foreach (string str in AmbienceManager.GetEvents())
     {
         EditorGUILayout.BeginHorizontal();
         {
             if (m_editorUtils.Button("RemoveEventButton", GUILayout.Width(40)))
             {
                 AmbienceManager.DeactivateEvent(str);
             }
             GUILayout.Label(str);
         }
         EditorGUILayout.EndHorizontal();
     }
     --EditorGUI.indentLevel;
 }