diff --git a/Source/Engine/Input/Input.cpp b/Source/Engine/Input/Input.cpp index 8658b984c..1fa7454ea 100644 --- a/Source/Engine/Input/Input.cpp +++ b/Source/Engine/Input/Input.cpp @@ -25,7 +25,7 @@ struct AxisEvaluation bool Used; }; -struct ActionData +struct ActionData { bool Active; uint64 FrameIndex; @@ -602,7 +602,7 @@ bool Input::GetAction(const StringView& name) InputActionState Input::GetActionState(const StringView& name) { const auto e = Actions.TryGet(name); - if (e != nullptr) + if (e != nullptr) { return e->State; } diff --git a/Source/Engine/UI/GUI/Common/Button.cs b/Source/Engine/UI/GUI/Common/Button.cs index 41ea3a0d4..e3bee0017 100644 --- a/Source/Engine/UI/GUI/Common/Button.cs +++ b/Source/Engine/UI/GUI/Common/Button.cs @@ -60,7 +60,7 @@ namespace FlaxEngine.GUI /// [EditorDisplay("Text Style"), EditorOrder(2020)] public Color TextColor; - + /// /// Gets or sets the brush used for background drawing. /// @@ -78,13 +78,13 @@ namespace FlaxEngine.GUI /// [EditorDisplay("Background Style"), EditorOrder(2002)] public Color BackgroundColorSelected { get; set; } - + /// /// Gets or sets the color of the border. /// [EditorDisplay("Border Style"), EditorOrder(2010), ExpandGroups] public Color BorderColor { get; set; } - + /// /// Gets or sets the border color when button is highlighted. /// @@ -209,7 +209,7 @@ namespace FlaxEngine.GUI public override void ClearState() { base.ClearState(); - + if (_isPressed) OnPressEnd(); } diff --git a/Source/Engine/UI/GUI/Common/CheckBox.cs b/Source/Engine/UI/GUI/Common/CheckBox.cs index c5a6e3bb3..939708f36 100644 --- a/Source/Engine/UI/GUI/Common/CheckBox.cs +++ b/Source/Engine/UI/GUI/Common/CheckBox.cs @@ -119,7 +119,7 @@ namespace FlaxEngine.GUI /// [EditorDisplay("Border Style"), EditorOrder(2011)] public Color BorderColorHighlighted { get; set; } - + /// /// Gets or sets the color of the checkbox icon. /// diff --git a/Source/Engine/UI/GUI/Common/TextBoxBase.cs b/Source/Engine/UI/GUI/Common/TextBoxBase.cs index 9619f98bd..d94ff8854 100644 --- a/Source/Engine/UI/GUI/Common/TextBoxBase.cs +++ b/Source/Engine/UI/GUI/Common/TextBoxBase.cs @@ -1197,7 +1197,7 @@ namespace FlaxEngine.GUI { SetSelection(hitPos); } - + if (Cursor == CursorType.Default && _changeCursor) Cursor = CursorType.IBeam; diff --git a/Source/Engine/UI/GUI/Panels/DropPanel.cs b/Source/Engine/UI/GUI/Panels/DropPanel.cs index 9662f61b9..d650d6205 100644 --- a/Source/Engine/UI/GUI/Panels/DropPanel.cs +++ b/Source/Engine/UI/GUI/Panels/DropPanel.cs @@ -94,7 +94,7 @@ namespace FlaxEngine.GUI } } } - + /// /// Gets or sets a value indicating whether enable drop down icon drawing. /// @@ -376,7 +376,6 @@ namespace FlaxEngine.GUI Render2D.DrawText(HeaderTextFont.GetFont(), HeaderTextMaterial, HeaderText, textRect, textColor, TextAlignment.Near, TextAlignment.Center); - if (!_isClosed && EnableContainmentLines) { Color lineColor = Style.Current.ForegroundGrey - new Color(0, 0, 0, 100); @@ -385,7 +384,7 @@ namespace FlaxEngine.GUI Render2D.DrawLine(new Float2(1, Height), new Float2(Width, Height), lineColor, lineThickness); Render2D.DrawLine(new Float2(Width, HeaderHeight), new Float2(Width, Height), lineColor, lineThickness); } - + // Children DrawChildren(); }