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-local+709673996c0cc3c0733358a87691d1009326afa7
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 (Inherited from Object.)
Protected methodFinalize
Finalizes an instance of the Disposable class.
(Inherited from Disposable.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodInitialize
An overloadable point for initialization logic which requires the Id to be set.
(Inherited from IdentifiedPoolTInstance.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (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