Add Scalar Icon, PS & XBox
A separate scalar icon for the value box
This commit is contained in:
@@ -23,6 +23,6 @@ namespace FlaxEditor.Content
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override SpriteHandle DefaultThumbnail => Editor.Instance.Icons.Document64;
|
||||
public override SpriteHandle DefaultThumbnail => Editor.Instance.Icons.GraphicsSettings;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,6 +23,6 @@ namespace FlaxEditor.Content
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override SpriteHandle DefaultThumbnail => Editor.Instance.Icons.Document64;
|
||||
public override SpriteHandle DefaultThumbnail => Editor.Instance.Icons.TimeSettings;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,6 +40,7 @@ namespace FlaxEditor
|
||||
public SpriteHandle ScaleStep16;
|
||||
public SpriteHandle Translate16;
|
||||
public SpriteHandle World16;
|
||||
public SpriteHandle Scalar16;
|
||||
|
||||
// 32px
|
||||
public SpriteHandle AddDoc32;
|
||||
@@ -124,6 +125,8 @@ namespace FlaxEditor
|
||||
public SpriteHandle TimeSettings;
|
||||
public SpriteHandle UWPSettings;
|
||||
public SpriteHandle WindowsSettings;
|
||||
public SpriteHandle PlaystationSettings;
|
||||
public SpriteHandle XboxSettings;
|
||||
|
||||
internal void LoadIcons()
|
||||
{
|
||||
|
||||
@@ -184,7 +184,7 @@ namespace FlaxEditor.GUI.Input
|
||||
var style = Style.Current;
|
||||
|
||||
// Draw sliding UI
|
||||
Render2D.DrawSprite(style.Scale, SlideRect, style.Foreground);
|
||||
Render2D.DrawSprite(style.Scalar, SlideRect, style.Foreground);
|
||||
|
||||
// Check if is sliding
|
||||
if (_isSliding)
|
||||
|
||||
@@ -249,6 +249,7 @@ namespace FlaxEditor.Options
|
||||
Translate = Editor.Icons.Translate16,
|
||||
Rotate = Editor.Icons.Rotate16,
|
||||
Scale = Editor.Icons.Scale16,
|
||||
Scalar = Editor.Icons.Scalar16,
|
||||
|
||||
SharedTooltip = new Tooltip()
|
||||
};
|
||||
|
||||
@@ -224,6 +224,12 @@ namespace FlaxEngine.GUI
|
||||
[EditorOrder(320)]
|
||||
public SpriteHandle Scale;
|
||||
|
||||
/// <summary>
|
||||
/// The scalar icon.
|
||||
/// </summary>
|
||||
[EditorOrder(330)]
|
||||
public SpriteHandle Scalar;
|
||||
|
||||
/// <summary>
|
||||
/// The shared tooltip control used by the controls if no custom tooltip is provided.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user