public override bool TrySetupObjectUIControl(EditorSceneBase scene, ObjectUIControl objectUIControl) { if (!Selected) { return(false); } objectUIControl.AddObjectUIContainer(new CameraUI(this, scene), "General Settings"); if (mFields.Keys.Any(k => k.StartsWith("flag."))) { objectUIControl.AddObjectUIContainer(new CameraFlagsUI(this, scene), "Camera Flags"); } // camera types "Cube", "Group", "Start", and "Other" load the chunk CameraParamChunkGame // "Event" loads CameraParamChunkEvent CameraType type = GetCameraType(); if (type == CameraType.Cube || type == CameraType.Group || type == CameraType.Start || type == CameraType.Other) { objectUIControl.AddObjectUIContainer(new CameraGameFlagsUI(this, scene), "Camera Game Flags"); } if (type == CameraType.Event) { objectUIControl.AddObjectUIContainer(new CameraEventFlagsUI(this, scene), "Camera Event Flags"); } return(true); }
public override bool TrySetupObjectUIControl(EditorSceneBase scene, ObjectUIControl objectUIControl) { if (!Selected) { return(false); } objectUIControl.AddObjectUIContainer(new PropertyProvider(this, scene), "Transform"); return(true); }
public override bool TrySetupObjectUIControl(EditorSceneBase scene, ObjectUIControl objectUIControl) { if (!Selected) { return(false); } objectUIControl.AddObjectUIContainer(new LightUI(this, scene), "General Settings"); return(true); }
public override void SetupObjectUIControl(ObjectUIControl objectUIControl) { objectUIControl.ClearObjectUIContainers(); if (SelectedConnection != null) { objectUIControl.AddObjectUIContainer(new ConnectionUI(this), "Link Connection Settings"); } objectUIControl.Refresh(); }
public override bool TrySetupObjectUIControl(EditorSceneBase scene, ObjectUIControl objectUIControl) { if (Selected) { objectUIControl.AddObjectUIContainer(new GeneralUIContainer(this, scene), "General"); return(true); } else { return(false); } }
public override bool TrySetupObjectUIControl(EditorSceneBase scene, ObjectUIControl objectUIControl) { if (Selected) { objectUIControl.AddObjectUIContainer(new GeneralUIContainer(this, scene), "General"); if (attributes != null) { objectUIControl.AddObjectUIContainer(new WorldMapPointUIContainer(this, scene), "Attributes"); } return(true); } else { return(false); } }
public static void SetupUIForMultiEditing(EditorSceneBase scene, ObjectUIControl control, List <IEditableObject> objects) { control.AddObjectUIContainer(new MultiEditUIContainer(objects), "Editable Object"); }
public virtual bool TrySetupObjectUIControl(EditorSceneBase scene, ObjectUIControl objectUIControl) => false;