调整UI细节
This commit is contained in:
@@ -46,6 +46,7 @@ export class Stage extends Laya.Script {
|
||||
public btn_note: Laya.Button;
|
||||
private btn_note_normal: Laya.Box
|
||||
private btn_note_checked: Laya.Box
|
||||
private label_note: Laya.Label
|
||||
@property(Laya.Button)
|
||||
public btn_hint: Laya.Button;
|
||||
private btn_hint_normal: Laya.Box
|
||||
@@ -100,6 +101,7 @@ export class Stage extends Laya.Script {
|
||||
this.btn_note.on(Laya.Event.CLICK, this, this.onClickNote)
|
||||
this.btn_note_normal = this.btn_note.getChildByName("normal") as Laya.Box
|
||||
this.btn_note_checked = this.btn_note.getChildByName("checked") as Laya.Box
|
||||
this.label_note = this.btn_note.getChildByName("label") as Laya.Label
|
||||
this.btn_hint.on(Laya.Event.CLICK, this, this.onClickHint)
|
||||
this.btn_hint_normal = this.btn_hint.getChildByName("Image").getChildByName("normal") as Laya.Box
|
||||
this.btn_hint_ad = this.btn_hint.getChildByName("Image").getChildByName("ad") as Laya.Box
|
||||
@@ -264,6 +266,7 @@ export class Stage extends Laya.Script {
|
||||
}
|
||||
this.btn_note_normal.visible = this.data.get_note_open() == false
|
||||
this.btn_note_checked.visible = this.data.get_note_open()
|
||||
this.label_note.color = this.data.get_note_open() ? "#1d5cdc" : "#545962"
|
||||
for (var i=0; i<this.candys.length; i++) {
|
||||
this.candys[i].setNoteStatus(this.data.get_note_open())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user