Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kleber-swf committed Sep 16, 2021
1 parent e384c7e commit 7766e47
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 20 deletions.
10 changes: 5 additions & 5 deletions TODO.todo
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ BASIC:
[x] actions handler
[x] undo
[x] toggle gizmos
[ ] toggle enabled
[x] toggle enabled
[x] reference image
[x] toggle ref image
[x] set alpha
[ ] global shortcuts
[ ] toggle gizmos
[ ] navigation (arrows)
[ ] undo
[x] global shortcuts
[x] toggle gizmos
[x] navigation (arrows)
[x] undo
[ ] find another shortcut to toggle gizmos

Refactors:
Expand Down
10 changes: 0 additions & 10 deletions src/core/action-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,7 @@ export class ActionHandler {
public getAction(id: string) { return id in this.actionById ? this.actionById[id] : null; }

public addContainer(id: string, container: HTMLElement) {
// if (this._container) return;
// const container = document.querySelector(containerId) as HTMLElement;
// if (!container) {
// console.warn(`Could not find container with id ${containerId}`);
// return;
// }
// this._container = container;
// container.tabIndex = 0;
this.containers[id] = container;
// container.onkeydown = this.onKeyDown.bind(this);
// container.onkeyup = this.onKeyUp.bind(this);
}

public enable() {
Expand Down
4 changes: 0 additions & 4 deletions src/editor.window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { ReferenceImage } from 'scene-view/reference-image';
import { SceneView } from 'scene-view/scene-view';

export class EditorWindow {
// private plugin: Phaser.Plugin;
private _initialized = false;
private disabledUI: DisabledUI;

Expand Down Expand Up @@ -39,9 +38,6 @@ export class EditorWindow {

private init() {
this._initialized = true;
// const plugin = this.plugin;
// const game = plugin.game;
// root = root ?? game.world;

Editor.init();
this.setupInspectorData();
Expand Down
1 change: 0 additions & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { DisabledUI } from 'disabled/disabled-ui';
import { EditorWindow } from 'editor.window';
import { Editor } from 'index';
import Phaser from 'phaser-ce';
Expand Down

0 comments on commit 7766e47

Please sign in to comment.