Format code

This commit is contained in:
Wojtek Figat
2023-05-12 14:19:40 +02:00
parent d7327d62e2
commit b5117af4b8
5 changed files with 10 additions and 11 deletions

View File

@@ -25,7 +25,7 @@ struct AxisEvaluation
bool Used; bool Used;
}; };
struct ActionData struct ActionData
{ {
bool Active; bool Active;
uint64 FrameIndex; uint64 FrameIndex;
@@ -602,7 +602,7 @@ bool Input::GetAction(const StringView& name)
InputActionState Input::GetActionState(const StringView& name) InputActionState Input::GetActionState(const StringView& name)
{ {
const auto e = Actions.TryGet(name); const auto e = Actions.TryGet(name);
if (e != nullptr) if (e != nullptr)
{ {
return e->State; return e->State;
} }

View File

@@ -60,7 +60,7 @@ namespace FlaxEngine.GUI
/// </summary> /// </summary>
[EditorDisplay("Text Style"), EditorOrder(2020)] [EditorDisplay("Text Style"), EditorOrder(2020)]
public Color TextColor; public Color TextColor;
/// <summary> /// <summary>
/// Gets or sets the brush used for background drawing. /// Gets or sets the brush used for background drawing.
/// </summary> /// </summary>
@@ -78,13 +78,13 @@ namespace FlaxEngine.GUI
/// </summary> /// </summary>
[EditorDisplay("Background Style"), EditorOrder(2002)] [EditorDisplay("Background Style"), EditorOrder(2002)]
public Color BackgroundColorSelected { get; set; } public Color BackgroundColorSelected { get; set; }
/// <summary> /// <summary>
/// Gets or sets the color of the border. /// Gets or sets the color of the border.
/// </summary> /// </summary>
[EditorDisplay("Border Style"), EditorOrder(2010), ExpandGroups] [EditorDisplay("Border Style"), EditorOrder(2010), ExpandGroups]
public Color BorderColor { get; set; } public Color BorderColor { get; set; }
/// <summary> /// <summary>
/// Gets or sets the border color when button is highlighted. /// Gets or sets the border color when button is highlighted.
/// </summary> /// </summary>
@@ -209,7 +209,7 @@ namespace FlaxEngine.GUI
public override void ClearState() public override void ClearState()
{ {
base.ClearState(); base.ClearState();
if (_isPressed) if (_isPressed)
OnPressEnd(); OnPressEnd();
} }

View File

@@ -119,7 +119,7 @@ namespace FlaxEngine.GUI
/// </summary> /// </summary>
[EditorDisplay("Border Style"), EditorOrder(2011)] [EditorDisplay("Border Style"), EditorOrder(2011)]
public Color BorderColorHighlighted { get; set; } public Color BorderColorHighlighted { get; set; }
/// <summary> /// <summary>
/// Gets or sets the color of the checkbox icon. /// Gets or sets the color of the checkbox icon.
/// </summary> /// </summary>

View File

@@ -1197,7 +1197,7 @@ namespace FlaxEngine.GUI
{ {
SetSelection(hitPos); SetSelection(hitPos);
} }
if (Cursor == CursorType.Default && _changeCursor) if (Cursor == CursorType.Default && _changeCursor)
Cursor = CursorType.IBeam; Cursor = CursorType.IBeam;

View File

@@ -94,7 +94,7 @@ namespace FlaxEngine.GUI
} }
} }
} }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether enable drop down icon drawing. /// Gets or sets a value indicating whether enable drop down icon drawing.
/// </summary> /// </summary>
@@ -376,7 +376,6 @@ namespace FlaxEngine.GUI
Render2D.DrawText(HeaderTextFont.GetFont(), HeaderTextMaterial, HeaderText, textRect, textColor, TextAlignment.Near, TextAlignment.Center); Render2D.DrawText(HeaderTextFont.GetFont(), HeaderTextMaterial, HeaderText, textRect, textColor, TextAlignment.Near, TextAlignment.Center);
if (!_isClosed && EnableContainmentLines) if (!_isClosed && EnableContainmentLines)
{ {
Color lineColor = Style.Current.ForegroundGrey - new Color(0, 0, 0, 100); 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(1, Height), new Float2(Width, Height), lineColor, lineThickness);
Render2D.DrawLine(new Float2(Width, HeaderHeight), new Float2(Width, Height), lineColor, lineThickness); Render2D.DrawLine(new Float2(Width, HeaderHeight), new Float2(Width, Height), lineColor, lineThickness);
} }
// Children // Children
DrawChildren(); DrawChildren();
} }