Commit 634ccff1 authored by unknown's avatar unknown

准备做计算逻辑

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