Click or drag to resize

PlayerTextDraw Class

Represents a player-textdraw.
Inheritance Hierarchy
SystemObject
  SampSharp.GameMode.ToolsDisposable
    SampSharp.GameMode.PoolsIdentifiedOwnedPoolPlayerTextDraw, BasePlayer
      SampSharp.GameMode.DisplayPlayerTextDraw

Namespace:  SampSharp.GameMode.Display
Assembly:  SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public class PlayerTextDraw : IdentifiedOwnedPool<PlayerTextDraw, BasePlayer>

The PlayerTextDraw type exposes the following members.

Constructors
  NameDescription
Public methodPlayerTextDraw(BasePlayer)
Initializes a new instance of the PlayerTextDraw class.
Public methodPlayerTextDraw(BasePlayer, Vector2, String)
Initializes a new instance of the PlayerTextDraw class.
Public methodPlayerTextDraw(BasePlayer, Vector2, String, TextDrawFont)
Initializes a new instance of the PlayerTextDraw class.
Public methodPlayerTextDraw(BasePlayer, Vector2, String, TextDrawFont, Color)
Initializes a new instance of the PlayerTextDraw class.
Top
Properties
  NameDescription
Public propertyAlignment
Gets or sets the TextDrawAlignment of this player-textdraw.
Public propertyAutoDestroy
Gets or sets whether the textdraw should automatically be destroyed when hidden.
Public propertyBackColor
Gets or sets the background Color of this player-textdraw.
Public propertyBoxColor
Gets or sets the box Color of this player-textdraw.
Public propertyFont
Gets or sets the TextDrawFont to use in this player-textdraw.
Public propertyForeColor
Gets or sets the foreground Color of this player-textdraw.
Public propertyHeight
Gets or sets the height of this player-textdraw's box.
Public propertyId
Gets the identifier of this instance.
(Inherited from IdentifiedOwnedPoolTInstance, TOwner.)
Public propertyIsApplyFixes
Gets or sets whether SA-MP fixes should be applied.
Public propertyIsDisposed
Gets whether this resource has been disposed.
(Inherited from Disposable.)
Public propertyLetterSize
Gets or sets the size of the letters of this player-textdraw.
Public propertyOutline
Gets or sets the outline size of this player-textdraw.
Public propertyOwner
Gets the owner of this instance.
(Inherited from IdentifiedOwnedPoolTInstance, TOwner.)
Public propertyPosition
Gets or sets the position of this player-textdraw on the screen.
Public propertyPreviewModel
Gets or sets the preview model to draw on this player-textdraw.
Public propertyPreviewPrimaryColor
Gets or sets the primary vehicle color of this player-textdraw's preview model.
Public propertyPreviewRotation
Gets or sets the rotation of this player-textdraw's preview model.
Public propertyPreviewSecondaryColor
Gets or sets the secondary vehicle color of this player-textdraw's preview model.
Public propertyPreviewZoom
Gets or sets the zoom level of this player-textdraw's preview model.
Public propertyProportional
Gets or sets whether to proporionally space the characters of this player-textdraw.
Public propertySelectable
Gets or sets whether this player-textdraw is selectable.
Public propertyShadow
Gets or sets the shadow-size of this player-textdraw.
Public propertyText
Gets or sets the text of this player-textdraw.
Public propertyUseBox
Gets or sets whether to draw a box behind the player-textdraw.
Public propertyWidth
Gets or sets the width of this player-textdraw's box.
Top
Methods
  NameDescription
Protected methodAssertNotDisposed
Checks whether this instance has been disposed. If it has, it throws an exception.
(Inherited from Disposable.)
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 IdentifiedOwnedPoolTInstance, TOwnerDispose(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.)
Protected methodFixString
Fixes a string so no SA-MP bugs will occur during application.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHide
Hides this player-textdraw.
Protected methodInitialize
An overloadable point for initialization logic which requires the Id and the Owner to be set.
(Inherited from IdentifiedOwnedPoolTInstance, TOwner.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOnClick
Raises the Click event.
Protected methodRefresh
Recreates this player-textdraw with all set properties. Called when changing the location on the screen.
Public methodShow
Displays this player-textdraw to the Owner of this textdraw.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodUpdate
Updates this textdraw on the client's screen.
Top
Events
  NameDescription
Public eventClick
Occurs when the OnPlayerClickPlayerTextDraw(BasePlayer, ClickPlayerTextDrawEventArgs) is being called. This callback is called when a player clicks on a player-textdraw.
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 player text draws which can exist.
Top
See Also