Format code
This commit is contained in:
@@ -18,7 +18,7 @@ namespace FlaxEditor.Content
|
||||
: base(path)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
/// <inheritdoc />
|
||||
public override SpriteHandle DefaultThumbnail => Editor.Instance.Icons.CSharpScript128;
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ namespace FlaxEditor.Content
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether this proxy can create items in the specified target location.
|
||||
/// </summary>
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace FlaxEditor.Content
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void Create(string outputPath, object arg)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -264,7 +264,7 @@ namespace FlaxEditor.GUI
|
||||
PerformLayout(true);
|
||||
_searchBox.Focus();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Sorts the items list (by item name by default).
|
||||
/// </summary>
|
||||
@@ -459,7 +459,7 @@ namespace FlaxEditor.GUI
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
if (_waitingForInput)
|
||||
{
|
||||
_waitingForInput = false;
|
||||
|
||||
@@ -140,7 +140,7 @@ namespace FlaxEditor.GUI.Timeline.Tracks
|
||||
_instanceTypeName = typeName;
|
||||
_instanceData = data;
|
||||
}
|
||||
|
||||
|
||||
internal void Load(BinaryReader stream)
|
||||
{
|
||||
StartFrame = (int)stream.ReadSingle();
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace FlaxEditor.Options
|
||||
/// </summary>
|
||||
TimeSinceStartup,
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A proxy DockState for window open method.
|
||||
/// </summary>
|
||||
@@ -47,27 +47,27 @@ namespace FlaxEditor.Options
|
||||
/// The floating window.
|
||||
/// </summary>
|
||||
Float = DockState.Float,
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// The dock fill as a tab.
|
||||
/// </summary>
|
||||
DockFill = DockState.DockFill,
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// The dock left.
|
||||
/// </summary>
|
||||
DockLeft = DockState.DockLeft,
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// The dock right.
|
||||
/// </summary>
|
||||
DockRight = DockState.DockRight,
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// The dock top.
|
||||
/// </summary>
|
||||
DockTop = DockState.DockTop,
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// The dock bottom.
|
||||
/// </summary>
|
||||
@@ -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;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the timestamps prefix mode for debug log messages.
|
||||
/// </summary>
|
||||
[DefaultValue(TimestampsFormats.None)]
|
||||
[EditorDisplay("Interface"), EditorOrder(210), Tooltip("The timestamps prefix mode for debug log messages.")]
|
||||
public TimestampsFormats DebugLogTimestampsFormat { get; set; } = TimestampsFormats.None;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the editor icons scale. Editor restart required.
|
||||
/// </summary>
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the default movement speed for the viewport camera (must match the dropdown menu values in the viewport).
|
||||
/// </summary>
|
||||
@@ -57,7 +57,7 @@ namespace FlaxEditor.Options
|
||||
/// Gets or sets if the panning direction is inverted for the viewport camera.
|
||||
/// </summary>
|
||||
[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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -242,27 +242,27 @@ namespace FlaxEditor.Surface.Archetypes
|
||||
/// Constant buffers.
|
||||
/// </summary>
|
||||
Constants = 1,
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Shader resources such as textures and buffers.
|
||||
/// </summary>
|
||||
ShaderResources = 2,
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Pre-processor definitions.
|
||||
/// </summary>
|
||||
Defines = 3,
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Included files.
|
||||
/// </summary>
|
||||
Includes = 7,
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Default location after all shader resources and methods but before actual material code.
|
||||
/// </summary>
|
||||
Utilities = 8,
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Shader functions location after all material shaders.
|
||||
/// </summary>
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace FlaxEditor.Surface.Elements
|
||||
{
|
||||
var items = Archetype.Text.Split('\n');
|
||||
AddItems(items);
|
||||
|
||||
|
||||
OnNodeValuesChanged();
|
||||
ParentNode.ValuesChanged += OnNodeValuesChanged;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace FlaxEditor.Windows.Assets
|
||||
Offsets = Margin.Zero;
|
||||
AnchorPreset = AnchorPresets.StretchAll;
|
||||
}
|
||||
|
||||
|
||||
private bool ValidateDragAsset(AssetItem assetItem)
|
||||
{
|
||||
return assetItem.OnEditorDrag(this);
|
||||
|
||||
Reference in New Issue
Block a user