hide colors
This commit is contained in:
@@ -56,6 +56,9 @@
|
||||
"obj_candys": {
|
||||
"_$ref": "2gza421u"
|
||||
},
|
||||
"obj_block_colors": {
|
||||
"_$ref": "gsnppavp"
|
||||
},
|
||||
"img_block_normal": {
|
||||
"_$ref": "cu3v74bo"
|
||||
},
|
||||
@@ -3851,7 +3854,7 @@
|
||||
{
|
||||
"_$id": "gsnppavp",
|
||||
"_$type": "HBox",
|
||||
"name": "HBox",
|
||||
"name": "colors",
|
||||
"x": 192,
|
||||
"y": 1804,
|
||||
"width": 696,
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"uuid": "81a88cce-fdad-44c5-a651-2ea3abe6582d"
|
||||
}
|
||||
@@ -19,21 +19,18 @@ export class Stage extends Laya.Script {
|
||||
public obj_candys: Laya.Box;
|
||||
private candys: Array<Candy> = new Array();
|
||||
|
||||
@property(Laya.Box)
|
||||
public obj_block_colors: Laya.Box;
|
||||
@property(Laya.Image)
|
||||
public img_block_normal: Laya.Image;
|
||||
|
||||
@property(Laya.Image)
|
||||
public img_block_grey: Laya.Image;
|
||||
|
||||
@property(Laya.Image)
|
||||
public img_block_correct: Laya.Image;
|
||||
|
||||
@property(Laya.Image)
|
||||
public img_block_weak_correct: Laya.Image;
|
||||
|
||||
@property(Laya.Image)
|
||||
public img_block_wrong: Laya.Image;
|
||||
|
||||
@property(Laya.Image)
|
||||
public img_block_weak_wrong: Laya.Image;
|
||||
|
||||
@@ -87,6 +84,8 @@ export class Stage extends Laya.Script {
|
||||
this.candys.push(candy);
|
||||
candy.onInit(i+1, this, this.onClickCandy)
|
||||
}
|
||||
|
||||
this.obj_block_colors.visible = false
|
||||
}
|
||||
|
||||
public onLoadStage(levelStr: string): void {
|
||||
|
||||
Reference in New Issue
Block a user