Commit 634ccff1 authored by unknown's avatar unknown

准备做计算逻辑

parent bce34096
...@@ -995,6 +995,9 @@ ...@@ -995,6 +995,9 @@
"textLab": { "textLab": {
"__id__": 39 "__id__": 39
}, },
"clickNode": {
"__id__": 2
},
"_id": "" "_id": ""
}, },
{ {
......
...@@ -62,12 +62,16 @@ export class FormulaSolitaireItem extends Component { ...@@ -62,12 +62,16 @@ export class FormulaSolitaireItem extends Component {
return this._text; return this._text;
} }
setColor(color: math.IColorLike){ setColor(color: Color){
this.bgSpr.color = new Color(color.r, color.g, color.b, color.a); this.bgSpr.color = color;
this.topSpr.color = new Color(color.r, color.g, color.b, color.a); this.topSpr.color = color;
this.bottomSpr.color = new Color(color.r, color.g, color.b, color.a); this.bottomSpr.color = color;
this.leftSpr.color = new Color(color.r, color.g, color.b, color.a); this.leftSpr.color = color;
this.rightSpr.color = new Color(color.r, color.g, color.b, color.a); this.rightSpr.color = color;
}
getColor(){
return this.bgSpr.color.toHEX();
} }
getWorldAABB(){ getWorldAABB(){
......
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