Description

A generic hud element shown on the screen

Example

const hud_element = new HudElement({
name: 'watermark',
point: Point.top_left(),
font: Font.default(),
text: `"Hello world!"`
});

Constructors

Properties

Methods

Constructors

Properties

options: HudOptions

Methods

  • export

    Returns string[]

    Description

    Initializes the hud element in gsc

    Example

    export const init = [
    hud_element.init(),
    ];
  • Parameters

    • alpha: number

    Returns string[]

    Description

    Sets the alpha of this HudElement.

    Example

    hud_element.setAlpha(0.5);
    
  • Parameters

    • new_value: string

    Returns string[]

    Description

    Updates the hud element with new_text in gsc

    Example

    export const update = [
    hud_element.update(`"Player Score: " + self.score`),
    ];

Generated using TypeDoc