Esempio n. 1
0
 private void DrawReadOnlyEventFields()
 {
     EditorGUILayout.LabelField("Application ID", _selectedEventObject.application.ToString());
     EditorGUILayout.LabelField("ID", _selectedEventObject.id.ToString());
     EditorGUILayout.LabelField("Name", _selectedEventObject.name);
     EventsManagerUI.SizedTextAreaLabel(_parent.position.width - LIST_WIDTH, "Description", _selectedEventObject.description);
 }
Esempio n. 2
0
        private void DrawParameterViewer(DDNAEventManagerEventParameter parameter)
        {
            List <string> usingEvents = GetEventNamesThatUseParameter(parameter.id);

            GUILayout.BeginVertical();

            EditorGUILayout.LabelField("Application ID", parameter.application.ToString());
            EditorGUILayout.LabelField("ID", parameter.id.ToString());
            EditorGUILayout.LabelField("Name", parameter.name);
            EventsManagerUI.SizedTextAreaLabel(_parent.position.width - LIST_WIDTH, "Description", parameter.description);

            EditorGUILayout.LabelField("Type", parameter.type);
            if (parameter.type == "STRING")
            {
                EditorGUILayout.LabelField("Format", parameter.format);
            }
            if (usingEvents.Count > 0)
            {
                EditorGUILayout.HelpBox("This parameter is in use by the following events: \n- " +
                                        String.Join("\n- ", usingEvents),
                                        MessageType.Info);
            }
            else
            {
                EditorGUILayout.HelpBox("This parameter is not used by any events!",
                                        MessageType.Info);
            }
            GUILayout.FlexibleSpace();
            GUILayout.EndVertical();
        }