This context menu is shown when the user wants to spawn a new aircraft or helicopter from the ground at an airbase. It is shown by clicking on the "spawn" button of a AirbaseContextMenu.

Hierarchy

Constructors

Properties

#aircraftSpawnMenu: AircraftSpawnMenu
#container: null | HTMLElement
#helicopterSpawnMenu: HelicopterSpawnMenu
#hidden: boolean = true
#latlng: LatLng = ...
#visibleSubMenu: null | string = null
#x: number = 0
#y: number = 0

Methods

  • Hide all the open submenus

    Returns void

  • Shows the submenu depending on unit selection

    Parameters

    • type: string

      Submenu type, either "aircraft" or "helicopter"

    Returns void

  • Returns void

  • Returns null | HTMLElement

  • Returns boolean

  • Returns LatLng

  • Returns null | string

  • Returns number

  • Returns number

  • Returns void

  • Sets the airbase at which the new unit will be spawned

    Parameters

    • airbase: Airbase

      The airbase at which the new unit will be spawned. Note: if the airbase has no suitable parking spots, the airplane may be spawned on the runway, or spawning may fail.

    Returns void

  • Parameters

    • menu: null | string

    Returns void

  • Show the context menu

    Parameters

    • x: number

      X screen coordinate of the top left corner of the context menu

    • y: number

      Y screen coordinate of the top left corner of the context menu

    Returns void

Generated using TypeDoc