mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
SmokeComponent
This commit is contained in:
parent
4ed15f2736
commit
2b09ef0345
@ -183,3 +183,4 @@ L_CAMERA_TOP = '相机上';
|
||||
L_CAMERA_BOTTOM = '相机下';
|
||||
L_CAMERA_NEAR = '相机近';
|
||||
L_CAMERA_FAR = '相机远';
|
||||
L_SMOKE_COMPONENT = '烟组件';
|
||||
|
||||
@ -33,7 +33,7 @@ SmokeComponent.prototype.render = function () {
|
||||
color: '#555',
|
||||
fontWeight: 'bold'
|
||||
},
|
||||
text: '烟组件'
|
||||
text: L_SMOKE_COMPONENT
|
||||
}, {
|
||||
xtype: 'row',
|
||||
children: [{
|
||||
@ -42,7 +42,7 @@ SmokeComponent.prototype.render = function () {
|
||||
xtype: 'button',
|
||||
id: 'btnPreview',
|
||||
scope: this.id,
|
||||
text: '预览',
|
||||
text: L_PREVIEW,
|
||||
onClick: this.onPreview.bind(this)
|
||||
}]
|
||||
}]
|
||||
@ -78,9 +78,9 @@ SmokeComponent.prototype.updateUI = function () {
|
||||
var btnPreview = UI.get('btnPreview', this.id);
|
||||
|
||||
if (this.isPlaying) {
|
||||
btnPreview.setText('取消');
|
||||
btnPreview.setText(L_CANCEL);
|
||||
} else {
|
||||
btnPreview.setText('预览');
|
||||
btnPreview.setText(L_PREVIEW);
|
||||
}
|
||||
};
|
||||
|
||||
@ -96,7 +96,7 @@ SmokeComponent.prototype.startPreview = function () {
|
||||
var btnPreview = UI.get('btnPreview', this.id);
|
||||
|
||||
this.isPlaying = true;
|
||||
btnPreview.setText('取消');
|
||||
btnPreview.setText(L_CANCEL);
|
||||
|
||||
this.app.on(`animate.${this.id}`, this.onAnimate.bind(this));
|
||||
};
|
||||
@ -105,7 +105,7 @@ SmokeComponent.prototype.stopPreview = function () {
|
||||
var btnPreview = UI.get('btnPreview', this.id);
|
||||
|
||||
this.isPlaying = false;
|
||||
btnPreview.setText('预览');
|
||||
btnPreview.setText(L_PREVIEW);
|
||||
|
||||
this.app.on(`animate.${this.id}`, null);
|
||||
};
|
||||
|
||||
@ -183,4 +183,5 @@ Object.assign(window, {
|
||||
L_CAMERA_BOTTOM: 'CameraBottom',
|
||||
L_CAMERA_NEAR: 'CameraNear',
|
||||
L_CAMERA_FAR: 'CameraFar',
|
||||
L_SMOKE_COMPONENT: 'SmokeComponent',
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user