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
#latlng: LatLng = ...
#visibleSubMenu: null | string = null
#x: number = 0
#y: number = 0

Methods

  • Shows the submenu depending on unit selection

    Parameters

    • type: string

      Submenu type, either "aircraft" or "helicopter"

    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

  • 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