Commit eac2d9e6 authored by wjf's avatar wjf

l

parent 8e17097d
This diff is collapsed.
This diff is collapsed.
......@@ -170,7 +170,7 @@ export class Element extends eui.Component {
* 替换资源时,同时修改
* @param source
*/
changeSource(source: string) {
private changeSource(source: string) {
// this.showImage.source = source;
var texture: egret.Texture = RES.getRes(source);
this.showImage.texture = texture
......@@ -274,8 +274,9 @@ export class Element extends eui.Component {
}
}
/**
* 去掉原先带的所有特效
*/
private removeEffectHas() {
//回收掉原先有的
switch (this._effectType) {
......@@ -358,7 +359,7 @@ export class Element extends eui.Component {
this.states[state] = stateEx;
//视图添加
this.addChild(this.states[state]);
//气泡定制逻辑
//气泡定制逻辑,暂时没出现给特效元素设置气泡的操作,所以先不管,只对视图做简单处理
if (state === StateType.BUBBLE) this.showImage.alpha = 0;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment