5e482a8f005b2d70575d1e00511efc4b35bcd91d 1.3 KB

12345
  1. {
  2. "code": "var REG = Laya.ClassUtils.regClass;\r\nexport var ui;\r\n(function (ui) {\r\n class InGameViewUI extends Laya.Scene {\r\n constructor() { super(); }\r\n createChildren() {\r\n super.createChildren();\r\n this.createView(InGameViewUI.uiView);\r\n }\r\n }\r\n InGameViewUI.uiView = { \"type\": \"Scene\", \"props\": { \"width\": 720, \"height\": 1280 }, \"compId\": 2, \"loadList\": [], \"loadList3D\": [] };\r\n ui.InGameViewUI = InGameViewUI;\r\n REG(\"ui.InGameViewUI\", InGameViewUI);\r\n class MainGameViewUI extends Laya.Scene {\r\n constructor() { super(); }\r\n createChildren() {\r\n super.createChildren();\r\n this.createView(MainGameViewUI.uiView);\r\n }\r\n }\r\n MainGameViewUI.uiView = { \"type\": \"Scene\", \"props\": { \"width\": 720, \"height\": 1280 }, \"compId\": 2, \"child\": [{ \"type\": \"Button\", \"props\": { \"y\": 640, \"x\": 360, \"width\": 100, \"var\": \"StartBtn\", \"stateNum\": 1, \"skin\": \"comp/button.png\", \"pivotY\": 50, \"pivotX\": 50, \"label\": \"label\", \"height\": 100 }, \"compId\": 4 }], \"loadList\": [\"comp/button.png\"], \"loadList3D\": [] };\r\n ui.MainGameViewUI = MainGameViewUI;\r\n REG(\"ui.MainGameViewUI\", MainGameViewUI);\r\n})(ui || (ui = {}));\r\n",
  3. "references": []
  4. }