Commit 08f9101b authored by Tt's avatar Tt

报错修复

parent 839550a1
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// pg.event.emit('img_voice_play_voice_end') // pg.event.emit('img_voice_play_voice_end')
import pg from "../../scene/pg_hy04_pinci"; import pg from "./pg_hy04_pinci";
const { ccclass, property } = cc._decorator; const { ccclass, property } = cc._decorator;
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
"__id__": 5 "__id__": 5
}, },
{ {
"__id__": 8 "__id__": 7
}, },
{ {
"__id__": 10 "__id__": 10
...@@ -247,19 +247,16 @@ ...@@ -247,19 +247,16 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "bg", "_name": "view_hy04_pinci",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 2
}, },
"_children": [], "_children": [],
"_active": false, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 6 "__id__": 6
},
{
"__id__": 7
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -308,7 +305,7 @@ ...@@ -308,7 +305,7 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "dfr99VAB5KCYifz/T9wpbX" "_id": "282bC8lUtPqaDLxhSSa9bB"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
...@@ -326,7 +323,7 @@ ...@@ -326,7 +323,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "9498bb11-8b30-4bdb-b7e5-d389bdc6859d" "__uuid__": "b8762abb-cb60-4e02-a880-34cd7a248856"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -340,38 +337,11 @@ ...@@ -340,38 +337,11 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "fckUycCR1CDLWgRo+2cwRE" "_id": "71Ed8kZPBOJKXzz6iYRkSh"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "e1ScZHVExInbYo0laDI4IG"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "view_hy04_pinci", "_name": "bg",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 2
...@@ -379,6 +349,9 @@ ...@@ -379,6 +349,9 @@
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{
"__id__": 8
},
{ {
"__id__": 9 "__id__": 9
} }
...@@ -429,14 +402,14 @@ ...@@ -429,14 +402,14 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "282bC8lUtPqaDLxhSSa9bB" "_id": "dfr99VAB5KCYifz/T9wpbX"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 8 "__id__": 7
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -447,7 +420,7 @@ ...@@ -447,7 +420,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "b8762abb-cb60-4e02-a880-34cd7a248856" "__uuid__": "9498bb11-8b30-4bdb-b7e5-d389bdc6859d"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -461,7 +434,34 @@ ...@@ -461,7 +434,34 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "71Ed8kZPBOJKXzz6iYRkSh" "_id": "fckUycCR1CDLWgRo+2cwRE"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "e1ScZHVExInbYo0laDI4IG"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
...@@ -13779,6 +13779,21 @@ ...@@ -13779,6 +13779,21 @@
"__id__": 2 "__id__": 2
}, },
"_enabled": true, "_enabled": true,
"upper_shadow": {
"__id__": 177
},
"lower_shadow": {
"__id__": 71
},
"lower_word": {
"__id__": 124
},
"upper_word": {
"__id__": 230
},
"word_area": {
"__id__": 11
},
"_id": "eaTVUpqahPfZeO9+sUI7RP" "_id": "eaTVUpqahPfZeO9+sUI7RP"
} }
] ]
\ No newline at end of file
import { asyncDelay, onHomeworkFinish } from "../script/util_hy04_pinci"; import { asyncDelay, onHomeworkFinish } from "../script/util_hy04_pinci";
import { MyCocosSceneComponent } from "../script/MyCocosSceneComponent_hy04_pinci"; import { MyCocosSceneComponent } from "../script/MyCocosSceneComponent_hy04_pinci";
import pg from "./pg_hy04_pinci"; import pg from "./pg_hy04_pinci";
import ImgVoice from "../common/script/ImgVoice_hy04_pinci"; import ImgVoice from "./ImgVoice_hy04_pinci";
import Candy from "./hy01_candy_hy04_pinci"; import Candy from "./hy01_candy_hy04_pinci";
// 空格问题 // 空格问题
// 尺寸大小问题 // 尺寸大小问题
...@@ -55,11 +55,16 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -55,11 +55,16 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg.event.clear(); pg.event.clear();
} }
// 一轮单词数量 // 一轮单词数量
@property(cc.Node)
private upper_shadow: cc.Node = null;
@property(cc.Node)
private lower_shadow: cc.Node = null;
@property(cc.Node)
private lower_word: cc.Node = null;
@property(cc.Node)
private upper_word: cc.Node = null;
@property(cc.Node)
private word_area: cc.Node; private word_area: cc.Node;
private upper_shadow: cc.Node;
private lower_shadow: cc.Node;
private lower_word: cc.Node;
private upper_word: cc.Node;
_cantouch = null; _cantouch = null;
private list: Array<{ type, text, right, imgage, duration, content, audio }>; private list: Array<{ type, text, right, imgage, duration, content, audio }>;
...@@ -104,17 +109,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -104,17 +109,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
private res_audio: cc.Node; private res_audio: cc.Node;
initView() { initView() {
this.layer_word = pg.view.find(this, 'layer_word') this.layer_word = pg.view.find(this, 'layer_word')
this.word_area = pg.view.find(this.layer_word, "word_area");
this.upper_shadow = pg.view.find(this.layer_word, "upper_shadow");
this.lower_shadow = pg.view.find(this.layer_word, "lower_shadow");
this.upper_word = pg.view.find(this.layer_word, "upper_word");
this.lower_word = pg.view.find(this.layer_word, "lower_word");
this.res_audio = pg.view.find(this, "res/audio") this.res_audio = pg.view.find(this, "res/audio")
} }
initEvent() { initEvent() {
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment