Options
All
  • Public
  • Public/Protected
  • All
Menu

A button with text on it that leads to an URL when clicked.

Settings

  • @member text Text on the button.
  • @member link The URL the button leads to.

Controls

  • None

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly id

id: string

Unique Id of this module.

link

link: string = ''

The URL the button leads to.

name

name: string

The displayed name of also meant for displaying.

playerRole

playerRole: PlayerRoleFlag

Indicates which user is able to see this module.

text

text: string = ''

Text on the button.

Readonly type

Indicates which type of module this is.

Accessors

aggregatorValues

  • Returns undefined | AggregatorValue<number>[]

Methods

init

  • Forces inherited child classes to identify themself with the type of modul they are.

    Returns ModuleEnum

    The module enum that belongs to this type of module.

setLink

  • Builder function to set the URL this button leads to.

    Parameters

    • link: string

      The new URL this button leads to.

    Returns LinkButtonModel

    A copy of the object with updated settings.

setText

  • Builder function to set the text on this button.

    Parameters

    • text: string

      The new text on this button.

    Returns LinkButtonModel

    A copy of the object with updated settings.

updateModule

  • Updates a module with new settings.

    Parameters

    • newModule: ModuleModel

      A module that holds the new settings.

    Returns void

updateMyself

Generated using TypeDoc