Click or drag to resize

TextDraw Class

Represents a textdraw.
Inheritance Hierarchy
SystemObject
  SampSharp.GameMode.ToolsDisposable
    SampSharp.GameMode.PoolsIdentifiedPoolTextDraw
      SampSharp.GameMode.DisplayTextDraw

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

The TextDraw type exposes the following members.

Constructors
  NameDescription
Public methodTextDraw
Initializes a new instance of the TextDraw class.
Public methodTextDraw(Vector2, String)
Initializes a new instance of the TextDraw class.
Public methodTextDraw(Vector2, String, TextDrawFont)
Initializes a new instance of the TextDraw class.
Public methodTextDraw(Vector2, String, TextDrawFont, Color)
Initializes a new instance of the TextDraw class.
Top
Properties
  NameDescription
Public propertyAlignment
Gets or sets the TextDrawAlignment of this textdraw.
Public propertyBackColor
Gets or sets the background Color of this textdraw.
Public propertyBoxColor
Gets or sets the box Color of this textdraw.
Public propertyFont
Gets or sets the TextDrawFont to use in this textdraw.
Public propertyForeColor
Gets or sets the foreground Color of this textdraw.
Public propertyHeight
Gets or sets the height of this textdraw's box.
Public propertyId
Gets the identifier of this instance.
(Inherited from IdentifiedPoolTInstance.)
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 textdraw.
Public propertyOutline
Gets or sets the outline size of this textdraw.
Public propertyPosition
Gets or sets the position of this textdraw on the screen.
Public propertyPreviewModel
Gets or sets the previewmodel to draw on this textdraw.
Public propertyPreviewPrimaryColor
Gets or sets the primary vehicle color of this textdraw's previewmodel.
Public propertyPreviewRotation
Gets or sets the rotation of this textdraw's previewmodel.
Public propertyPreviewSecondaryColor
Gets or sets the secondary vehicle color of this textdraw's previewmodel.
Public propertyPreviewZoom
Gets or sets the zoom level of this textdraw's previewmodel.
Public propertyProportional
Gets or sets whether to proporionally space the characters of this textdraw.
Public propertySelectable
Gets or sets whether this textdraw is selectable.
Public propertyShadow
Gets or sets the shadow-size of this textdraw.
Public propertyText
Gets or sets the text of this textdraw.
Public propertyUseBox
Gets or sets whether to draw a box behind the textdraw.
Public propertyWidth
Gets or sets the width of this 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 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.)
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 textdraw.
Public methodHide(BasePlayer)
Hides this textdraw for the given player.
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 methodOnClick
Raises the Click event.
Protected methodRefresh
Recreates this textdraw with all set properties. Called when changing the location on the screen.
Public methodShow
Displays this textdraw to all players.
Public methodShow(BasePlayer)
Display this textdraw to the given player.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodUpdateClients
Updates this textdraw on all client's screens.
Top
Events
  NameDescription
Public eventClick
Occurs when the OnPlayerClickTextDraw(BasePlayer, ClickTextDrawEventArgs) is being called. This callback is called when a player clicks on a textdraw or cancels the select mode(ESC).
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 text draws which can exist.
Top
See Also