Format code
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace FlaxEngine.GUI
|
||||
/// </summary>
|
||||
[EditorDisplay("Text Style"), EditorOrder(2020)]
|
||||
public Color TextColor;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the brush used for background drawing.
|
||||
/// </summary>
|
||||
@@ -78,13 +78,13 @@ namespace FlaxEngine.GUI
|
||||
/// </summary>
|
||||
[EditorDisplay("Background Style"), EditorOrder(2002)]
|
||||
public Color BackgroundColorSelected { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the color of the border.
|
||||
/// </summary>
|
||||
[EditorDisplay("Border Style"), EditorOrder(2010), ExpandGroups]
|
||||
public Color BorderColor { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the border color when button is highlighted.
|
||||
/// </summary>
|
||||
@@ -209,7 +209,7 @@ namespace FlaxEngine.GUI
|
||||
public override void ClearState()
|
||||
{
|
||||
base.ClearState();
|
||||
|
||||
|
||||
if (_isPressed)
|
||||
OnPressEnd();
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ namespace FlaxEngine.GUI
|
||||
/// </summary>
|
||||
[EditorDisplay("Border Style"), EditorOrder(2011)]
|
||||
public Color BorderColorHighlighted { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the color of the checkbox icon.
|
||||
/// </summary>
|
||||
|
||||
@@ -1197,7 +1197,7 @@ namespace FlaxEngine.GUI
|
||||
{
|
||||
SetSelection(hitPos);
|
||||
}
|
||||
|
||||
|
||||
if (Cursor == CursorType.Default && _changeCursor)
|
||||
Cursor = CursorType.IBeam;
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ namespace FlaxEngine.GUI
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether enable drop down icon drawing.
|
||||
/// </summary>
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user