Show / Hide Table of Contents

Class TextItemService

Allows you to create and delete text items to be displayed on a client's UI

Inheritance
object
TextItemService
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SlipeServer.Server.Services
Assembly: SlipeServer.Server.dll
Syntax
public class TextItemService

Constructors

| Edit this page View Source

TextItemService()

Declaration
public TextItemService()

Methods

| Edit this page View Source

CreateTextItemFor(Player, string, Vector2, float, Color?, byte, HorizontalTextAlignment, VerticalTextAlignment)

Declaration
public TextItem CreateTextItemFor(Player player, string text, Vector2 position, float scale = 1, Color? color = null, byte shadowAlpha = 0, HorizontalTextAlignment horizontalAlignment = HorizontalTextAlignment.Left, VerticalTextAlignment verticalAlignment = VerticalTextAlignment.Top)
Parameters
Type Name Description
Player player
string text
Vector2 position
float scale
Color? color
byte shadowAlpha
HorizontalTextAlignment horizontalAlignment
VerticalTextAlignment verticalAlignment
Returns
Type Description
TextItem
| Edit this page View Source

CreateTextItemFor(IEnumerable<Player>, string, Vector2, float, Color?, byte, HorizontalTextAlignment, VerticalTextAlignment)

Declaration
public TextItem CreateTextItemFor(IEnumerable<Player> players, string text, Vector2 position, float scale = 1, Color? color = null, byte shadowAlpha = 0, HorizontalTextAlignment horizontalAlignment = HorizontalTextAlignment.Left, VerticalTextAlignment verticalAlignment = VerticalTextAlignment.Top)
Parameters
Type Name Description
IEnumerable<Player> players
string text
Vector2 position
float scale
Color? color
byte shadowAlpha
HorizontalTextAlignment horizontalAlignment
VerticalTextAlignment verticalAlignment
Returns
Type Description
TextItem
| Edit this page View Source

DeleteTextItemFor(Player, TextItem)

Declaration
public void DeleteTextItemFor(Player player, TextItem item)
Parameters
Type Name Description
Player player
TextItem item
| Edit this page View Source

DeleteTextItemFor(IEnumerable<Player>, TextItem)

Declaration
public void DeleteTextItemFor(IEnumerable<Player> players, TextItem item)
Parameters
Type Name Description
IEnumerable<Player> players
TextItem item
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX