mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 09:46:02 +08:00
[ts][player] Closes #1238, disable pause/play when controls are hidden via options.
This commit is contained in:
parent
66689b3800
commit
1cf8a72e30
@ -10820,6 +10820,8 @@ var spine;
|
||||
target = null;
|
||||
}
|
||||
else {
|
||||
if (!_this.config.showControls)
|
||||
return;
|
||||
if (_this.paused)
|
||||
_this.play();
|
||||
else
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -10157,6 +10157,8 @@ var spine;
|
||||
target = null;
|
||||
}
|
||||
else {
|
||||
if (!_this.config.showControls)
|
||||
return;
|
||||
if (_this.paused)
|
||||
_this.play();
|
||||
else
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -29,7 +29,8 @@ body {
|
||||
backgroundColor: "#cccccc",
|
||||
viewport: {
|
||||
debugRender: true,
|
||||
}
|
||||
},
|
||||
showControls: false,
|
||||
});
|
||||
|
||||
/*// Creates a new spine player with a transparent background,
|
||||
|
||||
@ -989,6 +989,7 @@
|
||||
if (target) {
|
||||
target = null;
|
||||
} else {
|
||||
if (!this.config.showControls) return;
|
||||
if (this.paused)
|
||||
this.play()
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user