修正代码格式

This commit is contained in:
2025-05-30 16:52:51 +08:00
parent 84d1ac4798
commit 2b4ff0638b
7 changed files with 24 additions and 33 deletions

View File

@@ -17,7 +17,7 @@
{
"_$type": "cd70cd5e-b4cd-4277-ac0a-2224cfbe89ac",
"scriptPath": "../src/models/UIManager.ts",
"debug": true,
"debug": false,
"mask": {
"_$ref": "2668mvhf"
},
@@ -64,7 +64,8 @@
"_$comp": [
{
"_$type": "a541bdfc-e8e1-4795-b68e-7138c5190f17",
"scriptPath": "../src/views/common/CommonHover.ts"
"scriptPath": "../src/views/common/CommonHover.ts",
"hoverAlpha": true
}
],
"_$child": [

View File

@@ -1,4 +1,3 @@
import { config } from "./constants/config"
import { respath } from "./constants/respath"
import { DCManager } from "./models/DCManager"
import { LevelManager } from "./models/LevelManager"
@@ -8,8 +7,6 @@ const { regClass } = Laya
@regClass()
export class Main extends Laya.Script {
onAwake() {
console.log("Game onAwake")
DCManager.getInstance().init()

View File

@@ -1,5 +1,4 @@
import type { DOBlock } from "../models/DOBlock"
import { config } from "../constants/config"
import { G_ShowScoreTips } from "../views/common/GUITips"
const { regClass, property } = Laya

View File

@@ -136,7 +136,6 @@ export class Home extends Laya.Script {
this.btn_go.visible = false
}
}
}
public onClickNew(_evt: Laya.Event): void {

View File

@@ -1,13 +1,12 @@
const { regClass, property } = Laya;
const { regClass, property } = Laya
@regClass()
export class CommonHover extends Laya.Script {
declare owner : Laya.Box;
declare owner: Laya.Box
@property(Boolean)
public hoverAlpha: boolean = true
onAwake(): void {
this.owner.on(Laya.Event.MOUSE_OVER, this, () => {
Laya.Render.canvas.style.cursor = "pointer"
@@ -21,7 +20,5 @@ export class CommonHover extends Laya.Script {
this.owner.alpha = 1
}
})
}
}

View File

@@ -1,5 +1,3 @@
import { config } from "../../constants/config"
const { regClass, property } = Laya
@regClass()