Skip to content

Commit bccbba5

Browse files
committed
1.0.2
1 parent be49446 commit bccbba5

File tree

4 files changed

+13
-25
lines changed

4 files changed

+13
-25
lines changed

dist/display-list-watcher.es.js

+5-11
Original file line numberDiff line numberDiff line change
@@ -146,22 +146,22 @@ class DisplayListWatcher extends Phaser.Plugins.ScenePlugin {
146146
this.showKey = keyboard.addKey("X");
147147
this.hideKey = keyboard.addKey("C");
148148
this.resetKey = keyboard.addKey("V");
149-
this.toggleKey.on("down", (key, event) => {
149+
this.toggleKey.on("down", (_key, event) => {
150150
if (event.shiftKey) {
151151
this.toggle();
152152
}
153153
});
154-
this.showKey.on("down", (key, event) => {
154+
this.showKey.on("down", (_key, event) => {
155155
if (event.shiftKey) {
156156
this.show();
157157
}
158158
});
159-
this.hideKey.on("down", (key, event) => {
159+
this.hideKey.on("down", (_key, event) => {
160160
if (event.shiftKey) {
161161
this.hide();
162162
}
163163
});
164-
this.resetKey.on("down", (key, event) => {
164+
this.resetKey.on("down", (_key, event) => {
165165
if (event.shiftKey) {
166166
this.resetCamera();
167167
}
@@ -201,7 +201,7 @@ class DisplayListWatcher extends Phaser.Plugins.ScenePlugin {
201201
this.showKey = null;
202202
this.toggleKey = null;
203203
}
204-
update(time, delta) {
204+
update(_time, delta) {
205205
if (this.modKey.isDown) {
206206
this.controls.update(delta);
207207
}
@@ -210,7 +210,6 @@ class DisplayListWatcher extends Phaser.Plugins.ScenePlugin {
210210
if (!this.text.visible) {
211211
return;
212212
}
213-
const maxLines = 100;
214213
const { displayList, renderer, scenePlugin, settings } = this.systems;
215214
const x = 256 * scenePlugin.getIndex(this.scene);
216215
const y = 0;
@@ -223,11 +222,6 @@ class DisplayListWatcher extends Phaser.Plugins.ScenePlugin {
223222
[],
224223
0
225224
);
226-
const fullLength = output.length;
227-
if (fullLength > maxLines) {
228-
output.length = maxLines;
229-
output.push(`[ ... ${fullLength - maxLines} more ]`);
230-
}
231225
this.text.setPosition(x, y).setText(output);
232226
this.camera.preRender();
233227
this.renderText(renderer, this.text, this.camera);

dist/display-list-watcher.umd.js

+5-11
Original file line numberDiff line numberDiff line change
@@ -149,22 +149,22 @@
149149
this.showKey = keyboard.addKey("X");
150150
this.hideKey = keyboard.addKey("C");
151151
this.resetKey = keyboard.addKey("V");
152-
this.toggleKey.on("down", (key, event) => {
152+
this.toggleKey.on("down", (_key, event) => {
153153
if (event.shiftKey) {
154154
this.toggle();
155155
}
156156
});
157-
this.showKey.on("down", (key, event) => {
157+
this.showKey.on("down", (_key, event) => {
158158
if (event.shiftKey) {
159159
this.show();
160160
}
161161
});
162-
this.hideKey.on("down", (key, event) => {
162+
this.hideKey.on("down", (_key, event) => {
163163
if (event.shiftKey) {
164164
this.hide();
165165
}
166166
});
167-
this.resetKey.on("down", (key, event) => {
167+
this.resetKey.on("down", (_key, event) => {
168168
if (event.shiftKey) {
169169
this.resetCamera();
170170
}
@@ -204,7 +204,7 @@
204204
this.showKey = null;
205205
this.toggleKey = null;
206206
}
207-
update(time, delta) {
207+
update(_time, delta) {
208208
if (this.modKey.isDown) {
209209
this.controls.update(delta);
210210
}
@@ -213,7 +213,6 @@
213213
if (!this.text.visible) {
214214
return;
215215
}
216-
const maxLines = 100;
217216
const { displayList, renderer, scenePlugin, settings } = this.systems;
218217
const x = 256 * scenePlugin.getIndex(this.scene);
219218
const y = 0;
@@ -226,11 +225,6 @@
226225
[],
227226
0
228227
);
229-
const fullLength = output.length;
230-
if (fullLength > maxLines) {
231-
output.length = maxLines;
232-
output.push(`[ ... ${fullLength - maxLines} more ]`);
233-
}
234228
this.text.setPosition(x, y).setText(output);
235229
this.camera.preRender();
236230
this.renderText(renderer, this.text, this.camera);

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "phaser-plugin-display-list-watcher",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Shows the scene display lists",
55
"keywords": [
66
"phaser",

0 commit comments

Comments
 (0)