-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improving the spine preview ui control #17899
Conversation
@@ -654,6 +654,9 @@ export class Skeleton extends UIRenderer { | |||
|
|||
public __preload (): void { | |||
super.__preload(); | |||
if (EDITOR_NOT_IN_PREVIEW) { | |||
this.paused = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The editor should stop playing by default
@@ -191,6 +194,7 @@ const Elements = { | |||
close() { | |||
const panel = this; | |||
|
|||
callFunction('stop').then(() => {}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.then
is unnessary
@@ -259,6 +265,9 @@ const Elements = { | |||
ready() { | |||
const panel = this; | |||
|
|||
panel.$.timeScale.addEventListener('change', (event) => { | |||
callFunction('setTimeScale', Number(event.target.value)).then(() => {}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.then
is unnessary
✅ Package size is not changedInterface Check ReportThis pull request does not change any public interfaces ! |
* Improving the spine preview ui control
Re: #
https://forum.cocos.org/t/topic/163455/36?u=knox
Changelog
Continuous Integration
This pull request:
Compatibility Check
This pull request: