Skip to content

Commit

Permalink
[ts][player] Fix error message in case WebGL context could not be cre…
Browse files Browse the repository at this point in the history
…ated.
  • Loading branch information
badlogic committed Apr 23, 2024
1 parent ee72ad3 commit 682e112
Show file tree
Hide file tree
Showing 10 changed files with 112 additions and 133 deletions.
211 changes: 95 additions & 116 deletions spine-ts/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion spine-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esotericsoftware/spine-ts",
"version": "4.2.36",
"version": "4.2.37",
"description": "The official Spine Runtimes for the web.",
"type": "module",
"files": [
Expand Down
4 changes: 2 additions & 2 deletions spine-ts/spine-canvas/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esotericsoftware/spine-canvas",
"version": "4.2.36",
"version": "4.2.37",
"description": "The official Spine Runtimes for the web.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -31,6 +31,6 @@
},
"homepage": "https://github.com/esotericsoftware/spine-runtimes#readme",
"dependencies": {
"@esotericsoftware/spine-core": "4.2.36"
"@esotericsoftware/spine-core": "4.2.37"
}
}
2 changes: 1 addition & 1 deletion spine-ts/spine-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esotericsoftware/spine-core",
"version": "4.2.36",
"version": "4.2.37",
"description": "The official Spine Runtimes for the web.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
8 changes: 4 additions & 4 deletions spine-ts/spine-phaser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esotericsoftware/spine-phaser",
"version": "4.2.36",
"version": "4.2.37",
"description": "The official Spine Runtimes for the Phaser.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -31,8 +31,8 @@
},
"homepage": "https://github.com/esotericsoftware/spine-runtimes#readme",
"dependencies": {
"@esotericsoftware/spine-core": "4.2.36",
"@esotericsoftware/spine-webgl": "4.2.36",
"@esotericsoftware/spine-canvas": "4.2.36"
"@esotericsoftware/spine-core": "4.2.37",
"@esotericsoftware/spine-webgl": "4.2.37",
"@esotericsoftware/spine-canvas": "4.2.37"
}
}
4 changes: 2 additions & 2 deletions spine-ts/spine-pixi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esotericsoftware/spine-pixi",
"version": "4.2.36",
"version": "4.2.37",
"description": "The official Spine Runtimes for the web.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -31,7 +31,7 @@
},
"homepage": "https://github.com/esotericsoftware/spine-runtimes#readme",
"dependencies": {
"@esotericsoftware/spine-core": "4.2.36"
"@esotericsoftware/spine-core": "4.2.37"
},
"peerDependencies": {
"@pixi/core": "^7.2.4",
Expand Down
4 changes: 2 additions & 2 deletions spine-ts/spine-player/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esotericsoftware/spine-player",
"version": "4.2.36",
"version": "4.2.37",
"description": "The official Spine Runtimes for the web.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -31,6 +31,6 @@
},
"homepage": "https://github.com/esotericsoftware/spine-runtimes#readme",
"dependencies": {
"@esotericsoftware/spine-webgl": "4.2.36"
"@esotericsoftware/spine-webgl": "4.2.37"
}
}
2 changes: 1 addition & 1 deletion spine-ts/spine-player/src/Player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ export class SpinePlayer implements Disposable {
this.sceneRenderer = new SceneRenderer(this.canvas, this.context, true);
if (config.showLoading) this.loadingScreen = new LoadingScreen(this.sceneRenderer);
} catch (e) {
this.showError("Sorry, your browser does not support WebG, or you have disabled WebGL in your browser settingsL.\nPlease use the latest version of Firefox, Chrome, Edge, or Safari.", e as any);
this.showError("Sorry, your browser does not support WebG, or you have disabled WebGL in your browser settings.\nPlease use the latest version of Firefox, Chrome, Edge, or Safari.", e as any);
return null;
}

Expand Down
4 changes: 2 additions & 2 deletions spine-ts/spine-threejs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esotericsoftware/spine-threejs",
"version": "4.2.36",
"version": "4.2.37",
"description": "The official Spine Runtimes for the web.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -31,6 +31,6 @@
},
"homepage": "https://github.com/esotericsoftware/spine-runtimes#readme",
"dependencies": {
"@esotericsoftware/spine-core": "4.2.36"
"@esotericsoftware/spine-core": "4.2.37"
}
}
4 changes: 2 additions & 2 deletions spine-ts/spine-webgl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esotericsoftware/spine-webgl",
"version": "4.2.36",
"version": "4.2.37",
"description": "The official Spine Runtimes for the web.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -31,6 +31,6 @@
},
"homepage": "https://github.com/esotericsoftware/spine-runtimes#readme",
"dependencies": {
"@esotericsoftware/spine-core": "4.2.36"
"@esotericsoftware/spine-core": "4.2.37"
}
}

0 comments on commit 682e112

Please sign in to comment.