public UILightEditWindow(WaterfallModel modelToEdit, bool show) : base(show) { model = modelToEdit; Utils.Log($"[UILightEditWindow]: Started editing lights on {modelToEdit.ToString()}", LogType.UI); light = modelToEdit.lights.First(); GetLightValues(); WindowPosition = new Rect(Screen.width / 2 - 200, Screen.height / 2f, 400, 100); }
public void ChangeLight(WaterfallModel modelToEdit) { model = modelToEdit; Utils.Log($"[UILightEditWindow]: Started editing lights on {modelToEdit}", LogType.UI); light = modelToEdit.lights.First(); if (colorEdit) { WaterfallUI.Instance.OpenColorEditWindow(light.color); } GetLightValues(); showWindow = true; GUI.BringWindowToFront(windowID); }
public void ChangeLight(WaterfallModel modelToEdit) { model = modelToEdit; Utils.Log($"[UILightEditWindow]: Started editing lights on {modelToEdit.ToString()}", LogType.UI); light = modelToEdit.lights.First(); if (colorEdit) { WaterfallUI.Instance.OpenColorEditWindow(light.color); } GetLightValues(); showWindow = true; WindowPosition = new Rect(Screen.width / 2 - 200, Screen.height / 2f, 400, 100); }