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- Pick a release from megalanthus/defold-gamepush releases and add its Source code (zip) URL (or a packaged
.zipasset, if the library ships one) togame.projectunder[project]dependencies, then Fetch Libraries in the Defold editor. - Run
bunx @defold-typescript/cli resolveto materialize its types. - Import it under a namespace alias of your choice:
import * as core_windows from "gamepush.core.windows"
- Pick a release from megalanthus/defold-gamepush releases and add its Source code (zip) URL (or a packaged
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.