GameMask.ts.json 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {
  2. "sourceFile": "assets/scripts/Game/GameMask.ts",
  3. "activeCommit": 0,
  4. "commits": [
  5. {
  6. "activePatchIndex": 6,
  7. "patches": [
  8. {
  9. "date": 1692788971506,
  10. "content": "Index: \n===================================================================\n--- \n+++ \n"
  11. },
  12. {
  13. "date": 1692789009374,
  14. "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"
  15. },
  16. {
  17. "date": 1692789049061,
  18. "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"
  19. },
  20. {
  21. "date": 1692789125802,
  22. "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"
  23. },
  24. {
  25. "date": 1692789141498,
  26. "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"
  27. },
  28. {
  29. "date": 1692789424955,
  30. "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"
  31. },
  32. {
  33. "date": 1692789604025,
  34. "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"
  35. }
  36. ],
  37. "date": 1692788971506,
  38. "name": "Commit-0",
  39. "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"
  40. }
  41. ]
  42. }