protected override void OnItemGui(ReactionType item) { CUE cue = CUE.GetInstance(); if (item == null) { base.OnItemGui(item); return; } item.Name = EditorGUILayout.TextField("Name", item.Name); EditorGUILayout.BeginHorizontal(); item.Reagents = GuiSpeciesList(cue, item.Reagents); EditorGUILayout.LabelField(" \u2192 ", GUILayout.MaxWidth(30)); item.Products = GuiSpeciesList(cue, item.Products); EditorGUILayout.EndHorizontal(); item.Rate = EditorGUILayout.FloatField("Rate [nl/(nmol*s)]", item.Rate); EditorUtility.SetDirty(item); if (Application.isPlaying) { if (GUILayout.Button("start reaction")) { cue.ReactionManager.InitiateReaction(item, true); } } if (GUILayout.Button("remove")) { cue.RemoveReaction(item); EditorUtility.SetDirty(cue); } }