绘制API问题

This commit is contained in:
2025-06-13 15:11:08 +08:00
parent d16d57eef6
commit 9d573c0582

View File

@@ -99,7 +99,7 @@ export class CalendarUnit extends Laya.Script {
this.sprite_pie.graphics.clear()
this.sprite_pie.graphics.drawPie(this.pieSize, this.pieSize, this.pieSize, 0, 360 * this.progress, "#ffffff")
this.sprite_mask.graphics.clear()
this.sprite_mask.graphics.drawCircle(0.5, 0.5, 0.5, "#1d5cdc")
this.sprite_mask.graphics.drawCircle(this.obj_mask.width/2, this.obj_mask.width/2, this.obj_mask.width/2, "#1d5cdc")
} else {
this.obj_pie.visible = false
this.obj_mask.visible = false
@@ -113,7 +113,7 @@ export class CalendarUnit extends Laya.Script {
this.sprite_pie.graphics.clear()
this.sprite_pie.graphics.drawPie(this.pieSize, this.pieSize, this.pieSize, 0, 360 * this.progress, "#2d3138")
this.sprite_mask.graphics.clear()
this.sprite_mask.graphics.drawCircle(0.5, 0.5, 0.5, "#ffffff")
this.sprite_mask.graphics.drawCircle(this.obj_mask.width/2, this.obj_mask.width/2, this.obj_mask.width/2, "#ffffff")
} else {
this.obj_pie.visible = false
this.obj_mask.visible = false