Commit de031573 authored by 杨一航's avatar 杨一航

UI.++

parent e6d0c08a
...@@ -5285,7 +5285,7 @@ ...@@ -5285,7 +5285,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
1063, 1063,
180, 200,
0, 0,
0, 0,
0, 0,
...@@ -5587,12 +5587,12 @@ ...@@ -5587,12 +5587,12 @@
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
"_target": null, "_target": null,
"_alignFlags": 32, "_alignFlags": 34,
"_left": 0, "_left": 0,
"_right": 0, "_right": 0,
"_top": 0, "_top": 0,
"_bottom": 0, "_bottom": 0,
"_verticalCenter": 0, "_verticalCenter": 200,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_isAbsLeft": true, "_isAbsLeft": true,
"_isAbsRight": true, "_isAbsRight": true,
...@@ -5988,8 +5988,8 @@ ...@@ -5988,8 +5988,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 600, "width": 800,
"height": 600 "height": 800
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -6277,7 +6277,7 @@ ...@@ -6277,7 +6277,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 800, "width": 1200,
"height": 50 "height": 50
}, },
"_anchorPoint": { "_anchorPoint": {
...@@ -6289,7 +6289,7 @@ ...@@ -6289,7 +6289,7 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-400, -600,
500, 500,
0, 0,
0, 0,
...@@ -6339,7 +6339,7 @@ ...@@ -6339,7 +6339,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 770, "width": 1170,
"height": 30 "height": 30
}, },
"_anchorPoint": { "_anchorPoint": {
...@@ -6448,7 +6448,7 @@ ...@@ -6448,7 +6448,7 @@
"__id__": 126 "__id__": 126
}, },
"_enabled": true, "_enabled": true,
"_N$totalLength": 770, "_N$totalLength": 1170,
"_N$barSprite": { "_N$barSprite": {
"__id__": 128 "__id__": 128
}, },
......
...@@ -171,7 +171,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -171,7 +171,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
id: 11, rJumpId: null, wJumpId: null, word: "broom", url: "", id: 11, rJumpId: null, wJumpId: null, word: "broom", url: "",
}, },
{ {
id: 12, rJumpId: null, wJumpId: 7, word: "fly", url: "", id: 12, rJumpId: null, wJumpId: null, word: "fly", url: "",
}, },
{ {
id: 13, rJumpId: null, wJumpId: 11, word: "plate", url: "", id: 13, rJumpId: null, wJumpId: 11, word: "plate", url: "",
...@@ -195,7 +195,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -195,7 +195,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
id: 19, rJumpId: 21, wJumpId: null, word: "crab", url: "", id: 19, rJumpId: 21, wJumpId: null, word: "crab", url: "",
}, },
{ {
id: 20, rJumpId: 22, wJumpId: 11, word: "clock", url: "", id: 20, rJumpId: null, wJumpId: null, word: "clock", url: "",
}, },
{ {
id: 21, rJumpId: null, wJumpId: null, word: "green", url: "", id: 21, rJumpId: null, wJumpId: null, word: "green", url: "",
...@@ -476,6 +476,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -476,6 +476,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
async openCoursView(node, word) { async openCoursView(node, word) {
this.cover.active = true; this.cover.active = true;
this.cat.active = false;
let probar = this.cover.getChildByName("bg").getChildByName("probar"); let probar = this.cover.getChildByName("bg").getChildByName("probar");
let pass = this.cover.getChildByName("bg").getChildByName("pass"); let pass = this.cover.getChildByName("bg").getChildByName("pass");
let loss = this.cover.getChildByName("bg").getChildByName("loss"); let loss = this.cover.getChildByName("bg").getChildByName("loss");
...@@ -519,7 +520,6 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -519,7 +520,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
async _startCourseware(word) { async _startCourseware(word) {
if (!cc.sys.isBrowser && window["courseware"]?.startTest) { if (!cc.sys.isBrowser && window["courseware"]?.startTest) {
this.log("录音开始 单词:" + word); this.log("录音开始 单词:" + word);
...@@ -569,6 +569,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -569,6 +569,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
await asyncDelay(1); await asyncDelay(1);
this.cover.active = false; this.cover.active = false;
this.cat.active = true;
this.log("====评测通过====="); this.log("====评测通过=====");
this.networkHelper.sendFrame({ this.networkHelper.sendFrame({
type: "right", type: "right",
...@@ -585,6 +586,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -585,6 +586,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.playLocalAudio("wrong"); this.playLocalAudio("wrong");
await asyncDelay(1); await asyncDelay(1);
this.cover.active = false; this.cover.active = false;
this.cat.active = true;
this.log("====评测不通过====="); this.log("====评测不通过=====");
this.networkHelper.sendFrame({ this.networkHelper.sendFrame({
type: "wrong", type: "wrong",
......
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