diff --git a/packages/pixi-palidor/example/Game.ts b/packages/pixi-palidor/example/Game.ts index 7b3528ab0..b9808cc5a 100644 --- a/packages/pixi-palidor/example/Game.ts +++ b/packages/pixi-palidor/example/Game.ts @@ -7,14 +7,14 @@ import { Context } from "@robotlegsjs/core"; import { ContextView } from "@robotlegsjs/pixi"; -import { autoDetectRenderer, Container, Renderer } from "pixi.js"; +import { AbstractRenderer, autoDetectRenderer, Container } from "pixi.js"; import { PalidorBundle } from "../src/robotlegs/bender/bundles/palidor/PalidorBundle"; import { ExampleConfig } from "./config/ExampleConfig"; export class Game { private _canvas: HTMLCanvasElement; private _stage: Container; - private _renderer: Renderer; + private _renderer: AbstractRenderer; private _context: Context; public constructor() { diff --git a/packages/pixi-palidor/example/index.ts b/packages/pixi-palidor/example/index.ts index ce6359215..fbd027313 100644 --- a/packages/pixi-palidor/example/index.ts +++ b/packages/pixi-palidor/example/index.ts @@ -5,8 +5,6 @@ // in accordance with the terms of the license agreement accompanying it. // ------------------------------------------------------------------------------ -/// - import "reflect-metadata"; import { Game } from "./Game"; diff --git a/packages/pixi-palidor/example/mediators/FloatingViewMediator.ts b/packages/pixi-palidor/example/mediators/FloatingViewMediator.ts index 439ea75bc..d17c98f66 100644 --- a/packages/pixi-palidor/example/mediators/FloatingViewMediator.ts +++ b/packages/pixi-palidor/example/mediators/FloatingViewMediator.ts @@ -15,9 +15,9 @@ export class FloatingViewMediator extends Mediator { public initialize(): void { this.view.interactive = true; this.view.setTitle(this.view.parent.children.length); - this.eventMap.mapListener(this.view.addViewButton, "click", this._onAddView, this); - this.eventMap.mapListener(this.view.closeAllButton, "click", this._onCloseAll, this); - this.eventMap.mapListener(this.view.closeButton, "click", this._onClose, this); + this.eventMap.on(this.view.addViewButton, "click", this._onAddView, this); + this.eventMap.on(this.view.closeAllButton, "click", this._onCloseAll, this); + this.eventMap.on(this.view.closeButton, "click", this._onClose, this); } public destroy(): void { diff --git a/packages/pixi-palidor/example/mediators/PalidorViewMediator.ts b/packages/pixi-palidor/example/mediators/PalidorViewMediator.ts index a66ca63d7..b70a48834 100644 --- a/packages/pixi-palidor/example/mediators/PalidorViewMediator.ts +++ b/packages/pixi-palidor/example/mediators/PalidorViewMediator.ts @@ -12,8 +12,8 @@ import { PalidorView } from "../views/PalidorView"; @injectable() export class PalidorViewMediator extends Mediator { public initialize(): void { - this.eventMap.mapListener(this.view.setViewButton, "click", this._onSetView, this); - this.eventMap.mapListener(this.view.addViewButton, "click", this._onAddView, this); + this.eventMap.on(this.view.setViewButton, "click", this._onSetView, this); + this.eventMap.on(this.view.addViewButton, "click", this._onAddView, this); } public destroy(): void { diff --git a/packages/pixi-palidor/example/mediators/RobotlegsViewMediator.ts b/packages/pixi-palidor/example/mediators/RobotlegsViewMediator.ts index 5e8ddd85c..3cb8cf5a4 100644 --- a/packages/pixi-palidor/example/mediators/RobotlegsViewMediator.ts +++ b/packages/pixi-palidor/example/mediators/RobotlegsViewMediator.ts @@ -12,8 +12,8 @@ import { RobotlegsView } from "../views/RobotlegsView"; @injectable() export class RobotlegsViewMediator extends Mediator { public initialize(): void { - this.eventMap.mapListener(this.view.setViewButton, "click", this._onSetView, this); - this.eventMap.mapListener(this.view.addViewButton, "click", this._onAddView, this); + this.eventMap.on(this.view.setViewButton, "click", this._onSetView, this); + this.eventMap.on(this.view.addViewButton, "click", this._onAddView, this); } public destroy(): void {