Drawing

All stuff needed for drawing.

Enums

Align

  • LEFT

  • CENTER

  • RIGHT

Effect

  • SHADOW

  • OUTLINE

  • NONE

Font

  • NORMAL

  • BOLD

  • EMOJI


Functions

DrawBoxedText

Draws the AW stylized "boxed text" (box around text). This is if you want your drawing to look in-line with the UI style.

Parameters

  1. Text (String)

  2. Position (Vec2 Object)

  3. Color (Color Object)

  4. FontSize (Float)

  5. Alignment (Align Enum)

  6. Font (Font Enum)

  7. BoxPadding (Vec2)

  8. BoxAlpha (Float)

  9. BoxRounding (Float)

Example


DrawText

Draws text on the screen.

Parameters

  1. Text (String)

  2. Position (Vec2 Object)

  3. Color (Color Object)

  4. Alignment (Align Enum)

  5. FontEffect (Effect Enum)

  6. FontSize (Float)

  7. Font (Font Enum)

Example


DrawLine

Draws a line on the screen.

Parameters

  1. PosA (Vec2 Object)

  2. PosB (Vec2 Object)

  3. Color (Color Object)

  4. Thickness (Float)

Example


DrawCircle

Draws a circle on the screen.

Parameters

  1. PosA (FVector2D)

  2. Color (Color)

  3. Segments (Integer)

  4. Radius (Float)

  5. Thickness (Float)

Example


DrawCircleFilled

Draws a filled circle on the screen.

Parameters

  1. PosA (FVector2D)

  2. Color (Color)

  3. Segments (Integer)

  4. Radius (Float)

Example


DrawRectangle

Draws a rectangle on the screen.

Parameters

  1. PosA (Vec2)

  2. PosB (Vec2)

  3. Color (Color)

  4. Thickness (Float)

  5. Rounding (Float)

Example


DrawRectangleFilled

Draws a filled rectangle on the screen.

Parameters

  1. PosA (FVector2D)

  2. PosB (FVector2D)

  3. Color (Color)

  4. Rounding (Float)

Example


DrawTriangle

Draws a triangle on the screen.

Parameters

  1. PosA (FVector2D)

  2. PosB (FVector2D)

  3. PosC (FVector2D)

  4. Color (Color)

  5. Thickness (Float)

Example


DrawTriangleFilled

Draws a triangle filled on the screen.

Parameters

  1. PosA (FVector2D)

  2. PosB (FVector2D)

  3. PosC (FVector2D)

  4. Color (Color)

Example


DrawRectangleGradient

Draws a multi-coloured filled rectangle.

Parameters

  1. PosA (FVector2D)

  2. PosB (FVector2D)

  3. TopLeftColor (FColor)

  4. TopRightColor (FColor)

  5. BottomRightColor (FColor)

  6. BottomLeftColor (FColor)

Example

Last updated