Click or drag to resize

TextLabel Class

Represents a 3d text label.
Inheritance Hierarchy
SystemObject
  SampSharp.GameMode.ToolsDisposable
    SampSharp.GameMode.PoolsIdentifiedPoolTextLabel
      SampSharp.GameMode.WorldTextLabel

Namespace:  SampSharp.GameMode.World
Assembly:  SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public class TextLabel : IdentifiedPool<TextLabel>

The TextLabel type exposes the following members.

Constructors
  NameDescription
Public methodTextLabel(String, Color, Vector3, Single)
Initializes a new instance of the TextLabel class.
Public methodTextLabel(String, Color, Vector3, Single, Int32)
Initializes a new instance of the TextLabel class.
Public methodTextLabel(String, Color, Vector3, Single, Int32, Boolean)
Initializes a new instance of the TextLabel class.
Top
Properties
  NameDescription
Public propertyColor
Gets or sets the color of this TextLabel.
Public propertyDrawDistance
Gets or sets the draw distance of this TextLabel.
Public propertyId
Gets the identifier of this instance.
(Inherited from IdentifiedPoolTInstance.)
Public propertyIsDisposed
Gets whether this resource has been disposed.
(Inherited from Disposable.)
Public propertyPosition
Gets or sets the position of this TextLabel.
Public propertyTestLOS
Gets or sets a value indicating whether the line of sight should be tested before drawing this TextLabel.
Public propertyText
Gets or sets the text of this TextLabel.
Public propertyVirtualWorld
Gets or sets the virtual world of this TextLabel.
Top
Methods
  NameDescription
Protected methodAssertNotDisposed
Checks whether this instance has been disposed. If it has, it throws an exception.
(Inherited from Disposable.)
Public methodAttachTo(BasePlayer, Vector3)
Attaches this TextLabel to the specified player.
Public methodAttachTo(BaseVehicle, Vector3)
Attaches this TextLabel to the specified vehicle.
Public methodDispose
Performs tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from Disposable.)
Protected methodDispose(Boolean)
Performs tasks associated with freeing, releasing, or resetting unmanaged resources.
(Overrides IdentifiedPoolTInstanceDispose(Boolean).)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Finalizes an instance of the Disposable class.
(Inherited from Disposable.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodInitialize
An overloadable point for initialization logic which requires the Id to be set.
(Inherited from IdentifiedPoolTInstance.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventDisposed
Occurs when this isntance has been disposed.
(Inherited from Disposable.)
Top
Fields
  NameDescription
Public fieldStatic memberInvalidId
Identifier indicating the handle is invalid.
Public fieldStatic memberMax
Maximum number of per-player text labels which can exist.
Top
See Also