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

UI.++

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