Link Search Menu Expand Document

Window_Command.d overview


Table of contents


utils

WindowCommand (type alias)

Signature

export declare type WindowCommand = {
  name: string
  symbol: string
  enabled: boolean
  ext: number | null
}

Window_Command (class)

Window_Command

The superclass of windows for selecting a command.

Signature

export declare class Window_Command {
  constructor(rect: Rectangle)
}

maxItems (method)

Signature

maxItems(): number

clearCommandList (method)

Signature

clearCommandList(): void

makeCommandList (method)

Signature

makeCommandList(): void

addCommand (method)

Signature

addCommand(name: string, symbol: string, enabled?: boolean, ext?: number | null): void

commandName (method)

Signature

commandName(index: number): string

commandSymbol (method)

Signature

commandSymbol(index: number): string

isCommandEnabled (method)

Signature

isCommandEnabled(index: number): boolean

currentData (method)

Signature

currentData(): WindowCommand | null

isCurrentItemEnabled (method)

Signature

isCurrentItemEnabled(): boolean

currentSymbol (method)

Signature

currentSymbol(): string | null

currentExt (method)

Signature

currentExt(): number | null

findSymbol (method)

Signature

findSymbol(symbol: string | null): number

selectSymbol (method)

Signature

selectSymbol(symbol: string | null): void

findExt (method)

Signature

findExt(ext: number): number

selectExt (method)

Signature

selectExt(ext: number): void

drawItem (method)

Signature

drawItem(index: number): void

itemTextAlign (method)

Signature

itemTextAlign(): CanvasTextAlign

isOkEnabled (method)

Signature

isOkEnabled(): boolean

callOkHandler (method)

Signature

callOkHandler(): void

refresh (method)

Signature

refresh(): void

_list (property)

Signature

_list: WindowCommand[]