diff --git a/Source/Editor/Content/Items/CSharpScriptItem.cs b/Source/Editor/Content/Items/CSharpScriptItem.cs index b9b7f563e..80f2122d8 100644 --- a/Source/Editor/Content/Items/CSharpScriptItem.cs +++ b/Source/Editor/Content/Items/CSharpScriptItem.cs @@ -18,7 +18,7 @@ namespace FlaxEditor.Content : base(path) { } - + /// public override SpriteHandle DefaultThumbnail => Editor.Instance.Icons.CSharpScript128; } diff --git a/Source/Editor/Content/Proxy/ContentProxy.cs b/Source/Editor/Content/Proxy/ContentProxy.cs index 95b4f28ab..779232d42 100644 --- a/Source/Editor/Content/Proxy/ContentProxy.cs +++ b/Source/Editor/Content/Proxy/ContentProxy.cs @@ -82,7 +82,7 @@ namespace FlaxEditor.Content { return true; } - + /// /// Determines whether this proxy can create items in the specified target location. /// diff --git a/Source/Editor/Content/Proxy/ScriptProxy.cs b/Source/Editor/Content/Proxy/ScriptProxy.cs index 2d66fb236..9874b7c0f 100644 --- a/Source/Editor/Content/Proxy/ScriptProxy.cs +++ b/Source/Editor/Content/Proxy/ScriptProxy.cs @@ -74,7 +74,7 @@ namespace FlaxEditor.Content return false; return true; } - + /// public override void Create(string outputPath, object arg) { diff --git a/Source/Editor/CustomEditors/Editors/GenericEditor.cs b/Source/Editor/CustomEditors/Editors/GenericEditor.cs index 062316547..39b1ca531 100644 --- a/Source/Editor/CustomEditors/Editors/GenericEditor.cs +++ b/Source/Editor/CustomEditors/Editors/GenericEditor.cs @@ -519,7 +519,7 @@ namespace FlaxEditor.CustomEditors.Editors if (_groups != null) _groups.Clear(); } - + internal static LayoutElementsContainer OnGroup(LayoutElementsContainer layout, EditorDisplayAttribute display) { if (display?.Group != null) diff --git a/Source/Editor/GUI/ItemsListContextMenu.cs b/Source/Editor/GUI/ItemsListContextMenu.cs index 5d123766f..77ee9af76 100644 --- a/Source/Editor/GUI/ItemsListContextMenu.cs +++ b/Source/Editor/GUI/ItemsListContextMenu.cs @@ -264,7 +264,7 @@ namespace FlaxEditor.GUI PerformLayout(true); _searchBox.Focus(); } - + /// /// Sorts the items list (by item name by default). /// @@ -459,7 +459,7 @@ namespace FlaxEditor.GUI } break; } - + if (_waitingForInput) { _waitingForInput = false; diff --git a/Source/Editor/GUI/Timeline/Tracks/AnimationEventTrack.cs b/Source/Editor/GUI/Timeline/Tracks/AnimationEventTrack.cs index 4e813fe38..be67bb430 100644 --- a/Source/Editor/GUI/Timeline/Tracks/AnimationEventTrack.cs +++ b/Source/Editor/GUI/Timeline/Tracks/AnimationEventTrack.cs @@ -140,7 +140,7 @@ namespace FlaxEditor.GUI.Timeline.Tracks _instanceTypeName = typeName; _instanceData = data; } - + internal void Load(BinaryReader stream) { StartFrame = (int)stream.ReadSingle(); diff --git a/Source/Editor/Options/InputOptions.cs b/Source/Editor/Options/InputOptions.cs index 610297efb..0a1a78cab 100644 --- a/Source/Editor/Options/InputOptions.cs +++ b/Source/Editor/Options/InputOptions.cs @@ -151,27 +151,27 @@ namespace FlaxEditor.Options [DefaultValue(typeof(InputBinding), "Q")] [EditorDisplay("Viewport"), EditorOrder(1550)] public InputBinding Down = new InputBinding(KeyboardKeys.Q); - + [DefaultValue(typeof(InputBinding), "Numpad0")] [EditorDisplay("Viewport"), EditorOrder(1600)] public InputBinding ViewpointFront = new InputBinding(KeyboardKeys.Numpad0); - + [DefaultValue(typeof(InputBinding), "Numpad5")] [EditorDisplay("Viewport"), EditorOrder(1610)] public InputBinding ViewpointBack = new InputBinding(KeyboardKeys.Numpad5); - + [DefaultValue(typeof(InputBinding), "Numpad4")] [EditorDisplay("Viewport"), EditorOrder(1620)] public InputBinding ViewpointLeft = new InputBinding(KeyboardKeys.Numpad4); - + [DefaultValue(typeof(InputBinding), "Numpad6")] [EditorDisplay("Viewport"), EditorOrder(1630)] public InputBinding ViewpointRight = new InputBinding(KeyboardKeys.Numpad6); - + [DefaultValue(typeof(InputBinding), "Numpad8")] [EditorDisplay("Viewport"), EditorOrder(1640)] public InputBinding ViewpointTop = new InputBinding(KeyboardKeys.Numpad8); - + [DefaultValue(typeof(InputBinding), "Numpad2")] [EditorDisplay("Viewport"), EditorOrder(1650)] public InputBinding ViewpointBottom = new InputBinding(KeyboardKeys.Numpad2); diff --git a/Source/Editor/Options/InterfaceOptions.cs b/Source/Editor/Options/InterfaceOptions.cs index a277deb6a..8be880e0e 100644 --- a/Source/Editor/Options/InterfaceOptions.cs +++ b/Source/Editor/Options/InterfaceOptions.cs @@ -37,7 +37,7 @@ namespace FlaxEditor.Options /// TimeSinceStartup, } - + /// /// A proxy DockState for window open method. /// @@ -47,27 +47,27 @@ namespace FlaxEditor.Options /// The floating window. /// Float = DockState.Float, - + /// /// The dock fill as a tab. /// DockFill = DockState.DockFill, - + /// /// The dock left. /// DockLeft = DockState.DockLeft, - + /// /// The dock right. /// DockRight = DockState.DockRight, - + /// /// The dock top. /// DockTop = DockState.DockTop, - + /// /// The dock bottom. /// @@ -112,14 +112,14 @@ namespace FlaxEditor.Options [DefaultValue(DockStateProxy.Float)] [EditorDisplay("Interface", "New Window Location"), EditorOrder(150), Tooltip("Define the opening method for new windows, open in a new tab by default.")] public DockStateProxy NewWindowLocation { get; set; } = DockStateProxy.Float; - + /// /// Gets or sets the timestamps prefix mode for debug log messages. /// [DefaultValue(TimestampsFormats.None)] [EditorDisplay("Interface"), EditorOrder(210), Tooltip("The timestamps prefix mode for debug log messages.")] public TimestampsFormats DebugLogTimestampsFormat { get; set; } = TimestampsFormats.None; - + /// /// Gets or sets the editor icons scale. Editor restart required. /// diff --git a/Source/Editor/Options/ViewportOptions.cs b/Source/Editor/Options/ViewportOptions.cs index fa021b491..7f42d36d0 100644 --- a/Source/Editor/Options/ViewportOptions.cs +++ b/Source/Editor/Options/ViewportOptions.cs @@ -24,7 +24,7 @@ namespace FlaxEditor.Options [DefaultValue(1.0f), Limit(0.01f, 100.0f)] [EditorDisplay("General"), EditorOrder(101), Tooltip("The mouse wheel sensitivity applied to zoom in orthographic mode.")] public float MouseWheelSensitivity { get; set; } = 1.0f; - + /// /// Gets or sets the default movement speed for the viewport camera (must match the dropdown menu values in the viewport). /// @@ -57,7 +57,7 @@ namespace FlaxEditor.Options /// Gets or sets if the panning direction is inverted for the viewport camera. /// [DefaultValue(false)] - [EditorDisplay("Defaults"), EditorOrder(150), Tooltip( "Invert the panning direction for the viewport camera." )] + [EditorDisplay("Defaults"), EditorOrder(150), Tooltip("Invert the panning direction for the viewport camera.")] public bool DefaultInvertPanning { get; set; } = false; } } diff --git a/Source/Editor/SceneGraph/Actors/SceneNode.cs b/Source/Editor/SceneGraph/Actors/SceneNode.cs index 41f3cbaf1..e5044d177 100644 --- a/Source/Editor/SceneGraph/Actors/SceneNode.cs +++ b/Source/Editor/SceneGraph/Actors/SceneNode.cs @@ -85,7 +85,7 @@ namespace FlaxEditor.SceneGraph.Actors { Editor.Instance.Windows.ContentWin.Select(Editor.Instance.ContentDatabase.Find(Scene.Path)); } - + private void OnSave() { Editor.Instance.Scene.SaveScene(this); diff --git a/Source/Editor/Surface/Archetypes/Material.cs b/Source/Editor/Surface/Archetypes/Material.cs index 0110c2c0e..38a3eb3dd 100644 --- a/Source/Editor/Surface/Archetypes/Material.cs +++ b/Source/Editor/Surface/Archetypes/Material.cs @@ -242,27 +242,27 @@ namespace FlaxEditor.Surface.Archetypes /// Constant buffers. /// Constants = 1, - + /// /// Shader resources such as textures and buffers. /// ShaderResources = 2, - + /// /// Pre-processor definitions. /// Defines = 3, - + /// /// Included files. /// Includes = 7, - + /// /// Default location after all shader resources and methods but before actual material code. /// Utilities = 8, - + /// /// Shader functions location after all material shaders. /// diff --git a/Source/Editor/Surface/Elements/BoxValue.cs b/Source/Editor/Surface/Elements/BoxValue.cs index 8034d66eb..31e60904a 100644 --- a/Source/Editor/Surface/Elements/BoxValue.cs +++ b/Source/Editor/Surface/Elements/BoxValue.cs @@ -1,11 +1,11 @@ +// Copyright (c) 2012-2022 Wojciech Figat. All rights reserved. + #if USE_LARGE_WORLDS using RealValueBox = FlaxEditor.GUI.Input.DoubleValueBox; #else using RealValueBox = FlaxEditor.GUI.Input.FloatValueBox; #endif -// Copyright (c) 2012-2022 Wojciech Figat. All rights reserved. - using FlaxEngine; using FlaxEngine.GUI; diff --git a/Source/Editor/Surface/Elements/ComboBoxElement.cs b/Source/Editor/Surface/Elements/ComboBoxElement.cs index 4a61df4d7..39928b1a1 100644 --- a/Source/Editor/Surface/Elements/ComboBoxElement.cs +++ b/Source/Editor/Surface/Elements/ComboBoxElement.cs @@ -43,7 +43,7 @@ namespace FlaxEditor.Surface.Elements { var items = Archetype.Text.Split('\n'); AddItems(items); - + OnNodeValuesChanged(); ParentNode.ValuesChanged += OnNodeValuesChanged; } diff --git a/Source/Editor/Utilities/Utils.cs b/Source/Editor/Utilities/Utils.cs index 236e5c04f..5fdaae91a 100644 --- a/Source/Editor/Utilities/Utils.cs +++ b/Source/Editor/Utilities/Utils.cs @@ -507,7 +507,7 @@ namespace FlaxEditor.Utilities break; case 13: // CommonType::Rect: { - value = new Rectangle(stream.ReadSingle(), stream.ReadSingle(),stream.ReadSingle(), stream.ReadSingle()); + value = new Rectangle(stream.ReadSingle(), stream.ReadSingle(), stream.ReadSingle(), stream.ReadSingle()); } break; case 15: // CommonType::Matrix diff --git a/Source/Editor/Viewport/Cameras/ArcBallCamera.cs b/Source/Editor/Viewport/Cameras/ArcBallCamera.cs index 75973c678..bfa31e4fa 100644 --- a/Source/Editor/Viewport/Cameras/ArcBallCamera.cs +++ b/Source/Editor/Viewport/Cameras/ArcBallCamera.cs @@ -1,11 +1,11 @@ +// Copyright (c) 2012-2022 Wojciech Figat. All rights reserved. + #if USE_LARGE_WORLDS using Real = System.Double; #else using Real = System.Single; #endif -// Copyright (c) 2012-2022 Wojciech Figat. All rights reserved. - using FlaxEngine; namespace FlaxEditor.Viewport.Cameras diff --git a/Source/Editor/Windows/Assets/PrefabWindow.Hierarchy.cs b/Source/Editor/Windows/Assets/PrefabWindow.Hierarchy.cs index 90cfdbd5e..ea93e11d9 100644 --- a/Source/Editor/Windows/Assets/PrefabWindow.Hierarchy.cs +++ b/Source/Editor/Windows/Assets/PrefabWindow.Hierarchy.cs @@ -73,7 +73,7 @@ namespace FlaxEditor.Windows.Assets Offsets = Margin.Zero; AnchorPreset = AnchorPresets.StretchAll; } - + private bool ValidateDragAsset(AssetItem assetItem) { return assetItem.OnEditorDrag(this);