Skip to Content
defold-typescript libraries
megalanthusdefold-gamepush

megalanthus/defold-gamepush/gamepush.core.windows

GamePush overlay windows: the confirmation window and its event.

  • GitHub: megalanthus/defold-gamepush — pinned to v1.4.1
    1. Pick a release from megalanthus/defold-gamepush releases and add its Source code (zip) URL (or a packaged .zip asset, if the library ships one) to game.project under [project] dependencies, then Fetch Libraries in the Defold editor.
    2. Run bunx @defold-typescript/cli resolve to materialize its types.
    3. Import it under a namespace alias of your choice:
      import * as core_windows from "gamepush.core.windows"

Functions

show_confirm(parameters?: ConfirmParameters, callback?: (is_confirmed: boolean) => void)

Shows a confirmation window.

Parameters

  • parameters?: ConfirmParameters — The window's options.
  • callback?: (is_confirmed: boolean) => void — Receives whether the player confirmed.

Variables

callbacks: WindowsCallbacks

The event handlers.

Types

ConfirmParameters

ConfirmParameters.title?: string

The window's title.

ConfirmParameters.description?: string

The window's text.

ConfirmParameters.textConfirm?: string

The confirm button's label.

ConfirmParameters.textCancel?: string

The cancel button's label.

ConfirmParameters.invertButtonColors?: boolean

Whether to swap the buttons' colors.

ConfirmParameters.hideCancelButton?: boolean

Whether to hide the cancel button.

WindowsCallbacks

WindowsCallbacks.confirm_close?: (is_confirmed: boolean) => void

The confirmation window closed.

On this page