Show / Hide Table of Contents

Class Item

Represents a text label visible on a display

Inheritance
Object
Item
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Server.Displays
Assembly: SlipeServer.dll
Syntax
public class Item

Constructors

| Improve this Doc View Source

Item(Display, String, Vector2)

Create a new text item

Declaration
public Item(Display display, string content, Vector2 position)
Parameters
Type Name Description
Display display
String content
Vector2 position
| Improve this Doc View Source

Item(Display, String, Vector2, Priority)

Create a new text item

Declaration
public Item(Display display, string content, Vector2 position, Priority priority)
Parameters
Type Name Description
Display display
String content
Vector2 position
Priority priority
| Improve this Doc View Source

Item(Display, String, Vector2, Priority, Color, Single)

Create a new text item

Declaration
public Item(Display display, string content, Vector2 position, Priority priority, Color color, float scale = 1F)
Parameters
Type Name Description
Display display
String content
Vector2 position
Priority priority
Color color
Single scale
| Improve this Doc View Source

Item(Display, String, Vector2, Priority, Color, Single, HorizontalAlignment, VerticalAlignment, Int32)

Create a new text item

Declaration
public Item(Display display, string content, Vector2 position, Priority priority, Color color, float scale, HorizontalAlignment alignX, VerticalAlignment alignY, int shadowAlpha = 0)
Parameters
Type Name Description
Display display
String content
Vector2 position
Priority priority
Color color
Single scale
HorizontalAlignment alignX
VerticalAlignment alignY
Int32 shadowAlpha

Properties

| Improve this Doc View Source

Color

Get and set the color of this item

Declaration
public Color Color { get; set; }
Property Value
Type Description
Color
| Improve this Doc View Source

Content

Get and set the text

Declaration
public string Content { get; set; }
Property Value
Type Description
String
| Improve this Doc View Source

Display

Declaration
public Display Display { get; }
Property Value
Type Description
Display
| Improve this Doc View Source

ItemElement

Declaration
public MtaElement ItemElement { get; }
Property Value
Type Description
Slipe.MtaDefinitions.MtaElement
| Improve this Doc View Source

Position

Get and set the screen position of this text item

Declaration
public Vector2 Position { get; set; }
Property Value
Type Description
Vector2
| Improve this Doc View Source

Priority

Get and set the priority with which to update this text

Declaration
public Priority Priority { get; set; }
Property Value
Type Description
Priority
| Improve this Doc View Source

Scale

Get and set the scale of this text

Declaration
public float Scale { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

Visible

Declaration
public bool Visible { get; set; }
Property Value
Type Description
Boolean

Methods

| Improve this Doc View Source

Destroy()

Declaration
public bool Destroy()
Returns
Type Description
Boolean
  • Improve this Doc
  • View Source
Back to top Generated by DocFX