Show / Hide Table of Contents

Class DirectionIcon

Simple control that shows an arrow pointing in some direction.

Inheritance
System.Object
Robust.Client.UserInterface.Control
Robust.Client.UserInterface.Controls.TextureRect
DirectionIcon
Namespace: Content.Client.UserInterface.Controls
Assembly: Content.Client.dll
Syntax
public sealed class DirectionIcon : TextureRect
Remarks

The actual arrow and other icons are defined in the style sheet.

Constructors

| Improve this Doc View Source

DirectionIcon()

Declaration
public DirectionIcon()
| Improve this Doc View Source

DirectionIcon(Boolean, Single)

Declaration
public DirectionIcon(bool snap = true, float minDistance = 0.1F)
Parameters
Type Name Description
System.Boolean snap
System.Single minDistance

Fields

| Improve this Doc View Source

StyleClassDirectionIconArrow

Declaration
public static string StyleClassDirectionIconArrow
Field Value
Type Description
System.String
| Improve this Doc View Source

StyleClassDirectionIconHere

Declaration
public static string StyleClassDirectionIconHere
Field Value
Type Description
System.String
| Improve this Doc View Source

StyleClassDirectionIconUnknown

Declaration
public static string StyleClassDirectionIconUnknown
Field Value
Type Description
System.String

Properties

| Improve this Doc View Source

Rotation

Declaration
public Angle? Rotation { get; set; }
Property Value
Type Description
System.Nullable<Angle>

Methods

| Improve this Doc View Source

Draw(DrawingHandleScreen)

Declaration
protected override void Draw(DrawingHandleScreen handle)
Parameters
Type Name Description
Robust.Client.Graphics.DrawingHandleScreen handle
Overrides
Robust.Client.UserInterface.Controls.TextureRect.Draw(Robust.Client.Graphics.DrawingHandleScreen)
| Improve this Doc View Source

UpdateDirection(Direction)

Declaration
public void UpdateDirection(Direction direction)
Parameters
Type Name Description
Robust.Shared.Maths.Direction direction
| Improve this Doc View Source

UpdateDirection(Vector2, Angle)

Declaration
public void UpdateDirection(Vector2 direction, Angle relativeAngle)
Parameters
Type Name Description
Vector2 direction
Angle relativeAngle

Extension Methods

ControlExtension.GetControlOfType<T>(Control)
ControlExtension.GetControlOfType<T>(Control, String)
ControlExtension.GetControlOfType<T>(Control, Boolean)
ControlExtension.GetControlOfType<T>(Control, String, Boolean)
ControlExtension.GetSearchableControls(Control, Boolean)
ControlExtension.ChildrenContainText(Control, String)
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾