Fixed additional typos

Went through the source with VNNCC to correct as many found typos as possible

Co-Authored-By: VNC <52937757+VNNCC@users.noreply.github.com>
This commit is contained in:
W2.Wizard
2021-01-05 02:14:21 +01:00
parent f7c17d96ce
commit 4d8cc9aef7
22 changed files with 53 additions and 53 deletions

View File

@@ -26,7 +26,7 @@ namespace FlaxEngine.GUI
public Action<int> ItemClicked;
/// <summary>
/// Occurs when popup losts focus.
/// Occurs when popup lost focus.
/// </summary>
public Action LostFocus;

View File

@@ -636,7 +636,7 @@ namespace FlaxEngine.GUI
}
/// <summary>
/// Draws the children. Can be overriden to provide some customizations. Draw is performed with applied clipping mask for the client area.
/// Draws the children. Can be overridden to provide some customizations. Draw is performed with applied clipping mask for the client area.
/// </summary>
protected virtual void DrawChildren()
{

View File

@@ -12,12 +12,12 @@ namespace FlaxEngine.GUI
/// <summary>
/// The splitter size (in pixels).
/// </summary>
public const int SpliterSize = 4;
public const int SplitterSize = 4;
/// <summary>
/// The splitter half size (in pixels).
/// </summary>
private const int SpliterSizeHalf = SpliterSize / 2;
private const int SplitterSizeHalf = SplitterSize / 2;
private Orientation _orientation;
private float _splitterValue;
@@ -105,12 +105,12 @@ namespace FlaxEngine.GUI
if (_orientation == Orientation.Horizontal)
{
var split = Mathf.RoundToInt(_splitterValue * Width);
_splitterRect = new Rectangle(Mathf.Clamp(split - SpliterSizeHalf, 0.0f, Width), 0, SpliterSize, Height);
_splitterRect = new Rectangle(Mathf.Clamp(split - SplitterSizeHalf, 0.0f, Width), 0, SplitterSize, Height);
}
else
{
var split = Mathf.RoundToInt(_splitterValue * Height);
_splitterRect = new Rectangle(0, Mathf.Clamp(split - SpliterSizeHalf, 0.0f, Height), Width, SpliterSize);
_splitterRect = new Rectangle(0, Mathf.Clamp(split - SplitterSizeHalf, 0.0f, Height), Width, SplitterSize);
}
}
@@ -226,14 +226,14 @@ namespace FlaxEngine.GUI
if (_orientation == Orientation.Horizontal)
{
var split = Mathf.RoundToInt(_splitterValue * Width);
Panel1.Bounds = new Rectangle(0, 0, split - SpliterSizeHalf, Height);
Panel2.Bounds = new Rectangle(split + SpliterSizeHalf, 0, Width - split - SpliterSizeHalf, Height);
Panel1.Bounds = new Rectangle(0, 0, split - SplitterSizeHalf, Height);
Panel2.Bounds = new Rectangle(split + SplitterSizeHalf, 0, Width - split - SplitterSizeHalf, Height);
}
else
{
var split = Mathf.RoundToInt(_splitterValue * Height);
Panel1.Bounds = new Rectangle(0, 0, Width, split - SpliterSizeHalf);
Panel2.Bounds = new Rectangle(0, split + SpliterSizeHalf, Width, Height - split - SpliterSizeHalf);
Panel1.Bounds = new Rectangle(0, 0, Width, split - SplitterSizeHalf);
Panel2.Bounds = new Rectangle(0, split + SplitterSizeHalf, Width, Height - split - SplitterSizeHalf);
}
}
}

View File

@@ -262,14 +262,14 @@ namespace FlaxEngine.GUI
return false;
// Change focused control
Control prevous = _focusedControl;
Control previous = _focusedControl;
_focusedControl = c;
// Fire events
if (prevous != null)
if (previous != null)
{
prevous.OnLostFocus();
Assert.IsFalse(prevous.IsFocused);
previous.OnLostFocus();
Assert.IsFalse(previous.IsFocused);
}
if (_focusedControl != null)
{