123456789101112131415161718192021222324252627282930313233343536373839404142 |
- {
- "sourceFile": "assets/scripts/Game/GameMask.ts",
- "activeCommit": 0,
- "commits": [
- {
- "activePatchIndex": 6,
- "patches": [
- {
- "date": 1692788971506,
- "content": "Index: \n===================================================================\n--- \n+++ \n"
- },
- {
- "date": 1692789009374,
- "content": "Index: \n===================================================================\n--- \n+++ \n@@ -0,0 +1,29 @@\n+import { _decorator, Component, Node, SpriteFrame } from 'cc';\r\n+const { ccclass, property } = _decorator;\r\n+\r\n+@ccclass('GameMask')\r\n+export class GameMask extends Component {\r\n+\r\n+ @property(SpriteFrame)\r\n+ iconList: SpriteFrame[] = [];\r\n+\r\n+ @property(Node)\r\n+ iconNode: Node = null;\r\n+\r\n+ @property(Node)\r\n+ labelNode: Node = null;\r\n+\r\n+ onLoad() {\r\n+ \r\n+ }\r\n+\r\n+ start() {\r\n+\r\n+ }\r\n+\r\n+ update(deltaTime: number) {\r\n+ \r\n+ }\r\n+}\r\n+\r\n+\r\n"
- },
- {
- "date": 1692789049061,
- "content": "Index: \n===================================================================\n--- \n+++ \n@@ -0,0 +1,38 @@\n+import { _decorator, Component, Node, SpriteFrame } from 'cc';\r\n+import { GameConfig } from './GameConfig';\r\n+const { ccclass, property } = _decorator;\r\n+\r\n+@ccclass('GameMask')\r\n+export class GameMask extends Component {\r\n+\r\n+ @property(SpriteFrame)\r\n+ iconList: SpriteFrame[] = [];\r\n+\r\n+ @property(Node)\r\n+ iconNode: Node = null;\r\n+\r\n+ @property(Node)\r\n+ labelNode: Node = null;\r\n+\r\n+ onLoad() {\r\n+ this.node.on(\"init\", this.init, this);\r\n+ }\r\n+\r\n+ start() {\r\n+\r\n+ }\r\n+\r\n+ init(data) {\r\n+ if (data == GameConfig.selectType.Success) {\r\n+\r\n+ } else {\r\n+ \r\n+ }\r\n+ }\r\n+\r\n+ update(deltaTime: number) {\r\n+ \r\n+ }\r\n+}\r\n+\r\n+\r\n"
- },
- {
- "date": 1692789125802,
- "content": "Index: \n===================================================================\n--- \n+++ \n@@ -0,0 +1,39 @@\n+import { _decorator, Component, Node, SpriteFrame, Sprite, Label } from 'cc';\r\n+import { GameConfig } from './GameConfig';\r\n+const { ccclass, property } = _decorator;\r\n+\r\n+@ccclass('GameMask')\r\n+export class GameMask extends Component {\r\n+\r\n+ @property(SpriteFrame)\r\n+ iconList: SpriteFrame[] = [];\r\n+\r\n+ @property(Node)\r\n+ iconNode: Node = null;\r\n+\r\n+ @property(Node)\r\n+ labelNode: Node = null;\r\n+\r\n+ onLoad() {\r\n+ this.node.on(\"init\", this.init, this);\r\n+ }\r\n+\r\n+ start() {\r\n+\r\n+ }\r\n+\r\n+ init(data) {\r\n+ if (data == GameConfig.selectType.Success) {\r\n+\r\n+ } else {\r\n+ this.iconNode.getComponent(Sprite).spriteFrame = this.iconList[1];\r\n+ this.labelNode.getComponent(Label).string = \"没关系,继续努力!\";\r\n+ }\r\n+ }\r\n+\r\n+ update(deltaTime: number) {\r\n+ \r\n+ }\r\n+}\r\n+\r\n+\r\n"
- },
- {
- "date": 1692789141498,
- "content": "Index: \n===================================================================\n--- \n+++ \n@@ -0,0 +1,40 @@\n+import { _decorator, Component, Node, SpriteFrame, Sprite, Label } from 'cc';\r\n+import { GameConfig } from './GameConfig';\r\n+const { ccclass, property } = _decorator;\r\n+\r\n+@ccclass('GameMask')\r\n+export class GameMask extends Component {\r\n+\r\n+ @property(SpriteFrame)\r\n+ iconList: SpriteFrame[] = [];\r\n+\r\n+ @property(Node)\r\n+ iconNode: Node = null;\r\n+\r\n+ @property(Node)\r\n+ labelNode: Node = null;\r\n+\r\n+ onLoad() {\r\n+ this.node.on(\"init\", this.init, this);\r\n+ }\r\n+\r\n+ start() {\r\n+\r\n+ }\r\n+\r\n+ init(data) {\r\n+ if (data == GameConfig.selectType.Success) {\r\n+ this.iconNode.getComponent(Sprite).spriteFrame = this.iconList[0];\r\n+ this.labelNode.getComponent(Label).string = \"太棒了!\"\r\n+ } else {\r\n+ this.iconNode.getComponent(Sprite).spriteFrame = this.iconList[1];\r\n+ this.labelNode.getComponent(Label).string = \"没关系,继续努力!\";\r\n+ }\r\n+ }\r\n+\r\n+ update(deltaTime: number) {\r\n+ \r\n+ }\r\n+}\r\n+\r\n+\r\n"
- },
- {
- "date": 1692789424955,
- "content": "Index: \n===================================================================\n--- \n+++ \n@@ -0,0 +1,46 @@\n+import { _decorator, Component, Node, SpriteFrame, Sprite, Label } from 'cc';\r\n+import { GameConfig } from './GameConfig';\r\n+const { ccclass, property } = _decorator;\r\n+\r\n+@ccclass('GameMask')\r\n+export class GameMask extends Component {\r\n+\r\n+ @property(SpriteFrame)\r\n+ iconList: SpriteFrame[] = [];\r\n+\r\n+ @property(Node)\r\n+ iconNode: Node = null;\r\n+\r\n+ @property(Node)\r\n+ labelNode: Node = null;\r\n+\r\n+ onLoad() {\r\n+ this.node.on(\"init\", this.init, this);\r\n+ }\r\n+\r\n+ start() {\r\n+\r\n+ }\r\n+\r\n+ init(data) {\r\n+ if (data == GameConfig.selectType.Success) {\r\n+ this.iconNode.getComponent(Sprite).spriteFrame = this.iconList[0];\r\n+ this.labelNode.getComponent(Label).string = \"太棒了!\";\r\n+ setTimeout(() => {\r\n+\r\n+ }, 2 * 1000);\r\n+ } else {\r\n+ this.iconNode.getComponent(Sprite).spriteFrame = this.iconList[1];\r\n+ this.labelNode.getComponent(Label).string = \"没关系,继续努力!\";\r\n+ setTimeout(() => {\r\n+ \r\n+ }, 2 * 1000);\r\n+ }\r\n+ }\r\n+\r\n+ update(deltaTime: number) {\r\n+ \r\n+ }\r\n+}\r\n+\r\n+\r\n"
- },
- {
- "date": 1692789604025,
- "content": "Index: \n===================================================================\n--- \n+++ \n@@ -0,0 +1,50 @@\n+import { _decorator, Component, Node, SpriteFrame, Sprite, Label } from 'cc';\r\n+import { EventCustom } from '../Common/EventCustom';\r\n+import { Global } from '../Common/Global';\r\n+import { GameConfig } from './GameConfig';\r\n+const { ccclass, property } = _decorator;\r\n+\r\n+@ccclass('GameMask')\r\n+export class GameMask extends Component {\r\n+\r\n+ @property(SpriteFrame)\r\n+ iconList: SpriteFrame[] = [];\r\n+\r\n+ @property(Node)\r\n+ iconNode: Node = null;\r\n+\r\n+ @property(Node)\r\n+ labelNode: Node = null;\r\n+\r\n+ onLoad() {\r\n+ this.node.on(\"init\", this.init, this);\r\n+ }\r\n+\r\n+ start() {\r\n+\r\n+ }\r\n+\r\n+ init(data) {\r\n+ if (data == GameConfig.selectType.Success) {\r\n+ this.iconNode.getComponent(Sprite).spriteFrame = this.iconList[0];\r\n+ this.labelNode.getComponent(Label).string = \"太棒了!\";\r\n+ setTimeout(() => {\r\n+ let event = new EventCustom(Global.EventGameContinue, true, GameConfig.selectType.Success);\r\n+ this.node.dispatchEvent(event);\r\n+ }, 2 * 1000);\r\n+ } else {\r\n+ this.iconNode.getComponent(Sprite).spriteFrame = this.iconList[1];\r\n+ this.labelNode.getComponent(Label).string = \"没关系,继续努力!\";\r\n+ setTimeout(() => {\r\n+ let event = new EventCustom(Global.EventGameContinue, true, GameConfig.selectType.Failed);\r\n+ this.node.dispatchEvent(event);\r\n+ }, 2 * 1000);\r\n+ }\r\n+ }\r\n+\r\n+ update(deltaTime: number) {\r\n+ \r\n+ }\r\n+}\r\n+\r\n+\r\n"
- }
- ],
- "date": 1692788971506,
- "name": "Commit-0",
- "content": "import { _decorator, Component, Node, SpriteFrame } from 'cc';\r\nconst { ccclass, property } = _decorator;\r\n\r\n@ccclass('GameMask')\r\nexport class GameMask extends Component {\r\n\r\n @property(SpriteFrame)\r\n iconList: SpriteFrame[] = [];\r\n\r\n @property(Node)\r\n iconNode: Node = null;\r\n\r\n @property(Node)\r\n labelNode: Node = null;\r\n\r\n start() {\r\n\r\n }\r\n\r\n update(deltaTime: number) {\r\n \r\n }\r\n}\r\n\r\n\r\n"
- }
- ]
- }
|