void TimeGUI() { using (EditorGUILayout.VerticalScope scope = hGUI.Vertical()) { SeekAreaGUI(); using (EditorGUILayout.VerticalScope displayScope = hGUI.Vertical()) { DragListener.EventCheck(displayScope.rect); string error = null; if (IDs == null) { error = "No selected event. Select an event."; } else if (IDs.Count <= 0) { error = "No Hitboxes on {0}. Drag Character hitboxes here.".With(State.name); } if (!error.IsNullOrEmpty()) { hGUI.Space(); EditorGUILayout.LabelField(error, GUI.skin.label.WithAlignment(TextAnchor.MiddleCenter)); } else { for (var i = 0; i < IDs.Count; i++) { DrawHitboxGUI(i); } } hGUI.Space(); } Rect areaRect = scope.rect; DrawVerticalLine(SeekTime, SeekLineColor, areaRect); areaRect.height -= elementHeight; areaRect.y += elementHeight; foreach (HitboxKeyframe keyframe in Keyframes.IgnoreNulls()) { DrawVerticalLine(keyframe.Time, KeyframeLineColor, areaRect); } } }