Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
DebugTextWorldSpace Class Reference
Inheritance diagram for DebugTextWorldSpace:
DebugText DebugText

Private Member Functions

void DebugTextWorldSpace ()
void DebugTextWorldSpace ()
void ~DebugTextWorldSpace ()
void ~DebugTextWorldSpace ()
proto external vector GetPosition ()
proto external vector GetPosition ()
proto void GetTransform (out vector mat[4])
 Returns the transformation matrix of the text. Useful only for texts created with CreateInWorld().
proto void GetTransform (out vector mat[4])
 Returns the transformation matrix of the text. Useful only for texts created with CreateInWorld().
proto external void SetPosition (float x, float y, float z)
proto external void SetPosition (float x, float y, float z)
proto external void SetTransform (vector mat[4])
 Sets the transformation matrix of the text. Useful only for texts created with CreateInWorld().
proto external void SetTransform (vector mat[4])
 Sets the transformation matrix of the text. Useful only for texts created with CreateInWorld().

Static Private Member Functions

static proto DebugTextWorldSpace Create (string text, DebugTextFlags flags, float x, float y, float z, float size=20.0, int color=0xFFFFFFFF, int bgColor=0x00000000, int priority=1000)
 Creates a text instance.
static proto DebugTextWorldSpace Create (string text, DebugTextFlags flags, float x, float y, float z, float size=20.0, int color=0xFFFFFFFF, int bgColor=0x00000000, int priority=1000)
 Creates a text instance.
static proto DebugTextWorldSpace CreateInWorld (string text, DebugTextFlags flags, vector transform[4], float size=20.0, int color=0xFFFFFFFF, int bgColor=0x00000000, int priority=1000)
 The text is placed in world and is occluded by other objects.
static proto DebugTextWorldSpace CreateInWorld (string text, DebugTextFlags flags, vector transform[4], float size=20.0, int color=0xFFFFFFFF, int bgColor=0x00000000, int priority=1000)
 The text is placed in world and is occluded by other objects.

Detailed Description

Definition at line 7 of file debugtextworldspace.c.

Constructor & Destructor Documentation

◆ DebugTextWorldSpace() [1/2]

void DebugTextWorldSpace ( )
private

Referenced by Create(), and CreateInWorld().

◆ ~DebugTextWorldSpace() [1/2]

void ~DebugTextWorldSpace ( )
private

◆ DebugTextWorldSpace() [2/2]

void DebugTextWorldSpace ( )
private

◆ ~DebugTextWorldSpace() [2/2]

void ~DebugTextWorldSpace ( )
private

Member Function Documentation

◆ Create() [1/2]

proto DebugTextWorldSpace Create ( string text,
DebugTextFlags flags,
float x,
float y,
float z,
float size = 20.0,
int color = 0xFFFFFFFF,
int bgColor = 0x00000000,
int priority = 1000 )
staticprivate

Creates a text instance.

Warning
Returned instance should be saved to ref, otherwise it is impossible to remove from screen (unless DebugTextFlags.ONCE is used).
Parameters
textText to draw on screen
flagsDebugTextFlags
xX coordinate of the top left corner of the text in world space
yY coordinate of the top left corner of the text in world space
zZ coordinate of the top left corner of the text in world space
sizeSize of the font in pixels
colorColor of the text
bgColorColor of the back background behind the text
priorityZ order priority. Note: texts with background are always rendered under texts without background.
Returns
DebugText Instance of debug text with given properties set, if flags contains DebugTextFlags.ONCE null is returned

References DebugTextWorldSpace(), x, and y.

Referenced by Debug::DrawTextWS().

◆ Create() [2/2]

proto DebugTextWorldSpace Create ( string text,
DebugTextFlags flags,
float x,
float y,
float z,
float size = 20.0,
int color = 0xFFFFFFFF,
int bgColor = 0x00000000,
int priority = 1000 )
staticprivate

Creates a text instance.

Warning
Returned instance should be saved to ref, otherwise it is impossible to remove from screen (unless DebugTextFlags.ONCE is used).
Parameters
textText to draw on screen
flagsDebugTextFlags
xX coordinate of the top left corner of the text in world space
yY coordinate of the top left corner of the text in world space
zZ coordinate of the top left corner of the text in world space
sizeSize of the font in pixels
colorColor of the text
bgColorColor of the back background behind the text
priorityZ order priority. Note: texts with background are always rendered under texts without background.
Returns
DebugText Instance of debug text with given properties set, if flags contains DebugTextFlags.ONCE null is returned

◆ CreateInWorld() [1/2]

proto DebugTextWorldSpace CreateInWorld ( string text,
DebugTextFlags flags,
vector transform[4],
float size = 20.0,
int color = 0xFFFFFFFF,
int bgColor = 0x00000000,
int priority = 1000 )
staticprivate

The text is placed in world and is occluded by other objects.

The size is in meters (approximately).

Parameters
sizeSize of the font in meters (approximately)
See also
DebugTextWorldSpace.Create

References DebugTextWorldSpace().

◆ CreateInWorld() [2/2]

proto DebugTextWorldSpace CreateInWorld ( string text,
DebugTextFlags flags,
vector transform[4],
float size = 20.0,
int color = 0xFFFFFFFF,
int bgColor = 0x00000000,
int priority = 1000 )
staticprivate

The text is placed in world and is occluded by other objects.

The size is in meters (approximately).

Parameters
sizeSize of the font in meters (approximately)
See also
DebugTextWorldSpace.Create

◆ GetPosition() [1/2]

proto external vector GetPosition ( )
private

◆ GetPosition() [2/2]

proto external vector GetPosition ( )
private

◆ GetTransform() [1/2]

proto void GetTransform ( out vector mat[4])
private

Returns the transformation matrix of the text. Useful only for texts created with CreateInWorld().

◆ GetTransform() [2/2]

proto void GetTransform ( out vector mat[4])
private

Returns the transformation matrix of the text. Useful only for texts created with CreateInWorld().

◆ SetPosition() [1/2]

proto external void SetPosition ( float x,
float y,
float z )
private

References x, and y.

◆ SetPosition() [2/2]

proto external void SetPosition ( float x,
float y,
float z )
private

◆ SetTransform() [1/2]

proto external void SetTransform ( vector mat[4])
private

Sets the transformation matrix of the text. Useful only for texts created with CreateInWorld().

◆ SetTransform() [2/2]

proto external void SetTransform ( vector mat[4])
private

Sets the transformation matrix of the text. Useful only for texts created with CreateInWorld().


The documentation for this class was generated from the following file: