/// <summary> /// Helper method for drawing the GUI for specifying the initial time. /// </summary> private void InitialTimeGUI() { Controller.InitialTimeHours = EditorGUILayout.IntSlider("Initial Time (Hours)", Controller.InitialTimeHours, 0, TimeController.HOURS_IN_DAY - 1); Controller.InitialTimeMinutes = EditorGUILayout.IntSlider("Initial Time (Minutes)", Controller.InitialTimeMinutes, 0, TimeController.MINUTES_IN_HOUR - 1); Controller.InitialTimeSeconds = EditorGUILayout.IntSlider("Initial Time (Seconds)", Controller.InitialTimeSeconds, 0, TimeController.SECONDS_IN_MINUTE - 1); Controller.InitialTimeOfDay = Controller.ConvertTimeValuesToSimulationTime(Controller.InitialTimeHours, Controller.InitialTimeMinutes, Controller.InitialTimeSeconds); EditorGUILayout.Slider("Initial Time Of Day", Controller.InitialTimeOfDay, 0f, 1f); EditorGUILayout.Space(); EditorGUILayout.LabelField("Initial Time Of Day In 24-Hour Format:"); EditorGUILayout.BeginHorizontal(GUI.skin.box); EditorGUILayout.LabelField(Controller.InitialTimeHours + ":" + Controller.InitialTimeMinutes + ":" + Controller.InitialTimeSeconds, EditorLabelStyle); EditorGUILayout.EndHorizontal(); EditorGUILayout.Space(); }