Options
All
  • Public
  • Public/Protected
  • All
Menu

Draw native instructional buttons in the bottom left of the screen using scaleform

Example:

import { InstructionalButtons, Control } from '@nativewrappers/client';

const buttons = new InstructionalButtons([
{controls: [Control.Context], label: "Interact with Bob"},
{controls: [Control.Detonate], label: "Say hello to Alice"}
])

setTick(() => {
buttons.draw()
})

Hierarchy

  • InstructionalButtons

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private scaleform

scaleform: Scaleform

Methods

draw

  • draw(): Promise<void>

Private pushButton

  • pushButton(button: IButton, index: number): void

Generated using TypeDoc