Commit 04b3333a authored by liujiangnan's avatar liujiangnan

feat

parent 8883e899
...@@ -5183,8 +5183,8 @@ ...@@ -5183,8 +5183,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 133, "width": 218,
"height": 93 "height": 106
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -5195,8 +5195,8 @@ ...@@ -5195,8 +5195,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-103.9, -129.692,
-108.6, -100.502,
0, 0,
0, 0,
0, 0,
...@@ -5264,9 +5264,9 @@ ...@@ -5264,9 +5264,9 @@
"_target": null, "_target": null,
"_alignFlags": 36, "_alignFlags": 36,
"_left": 0, "_left": 0,
"_right": 64, "_right": 64.29200000000002,
"_top": 0, "_top": 0,
"_bottom": 70, "_bottom": 74.19800000000001,
"_verticalCenter": 0, "_verticalCenter": 0,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_isAbsLeft": true, "_isAbsLeft": true,
...@@ -5390,15 +5390,15 @@ ...@@ -5390,15 +5390,15 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-159.459, -129.026,
-182.713, -100.223,
0, 0,
0, 0,
0, 0,
0, 0,
1, 1,
1, 0.6,
1, 0.6,
1 1
] ]
}, },
...@@ -5459,9 +5459,9 @@ ...@@ -5459,9 +5459,9 @@
"_target": null, "_target": null,
"_alignFlags": 36, "_alignFlags": 36,
"_left": 0, "_left": 0,
"_right": 50.459, "_right": 63.62600000000002,
"_top": 0, "_top": 0,
"_bottom": -29.212999999999994, "_bottom": 74.477,
"_verticalCenter": 0, "_verticalCenter": 0,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_isAbsLeft": true, "_isAbsLeft": true,
......
...@@ -153,7 +153,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -153,7 +153,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
updataTipArrow() { updataTipArrow() {
let index = this.page_view.getComponent(cc.PageView).getCurrentPageIndex(); let index = this.page_view.getComponent(cc.PageView).getCurrentPageIndex();
let pages = this.page_view.getComponent(cc.PageView).getPages(); let pages = this.page_view.getComponent(cc.PageView).getPages();
this.tip_left.active = pages.length > 0 && index > 0; // this.tip_left.active = pages.length > 0 && index > 0;
this.tip_right.active = pages.length > 0 && index < pages.length - 1; this.tip_right.active = pages.length > 0 && index < pages.length - 1;
cc.find("s_group/startbg/btn_close", this.startNode).active = index === pages.length - 1; cc.find("s_group/startbg/btn_close", this.startNode).active = index === pages.length - 1;
let page = pages[index]; let page = pages[index];
...@@ -210,7 +210,15 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -210,7 +210,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
}).start(); }).start();
this.page_view.getComponent(cc.PageView).setCurrentPageIndex(0); this.page_view.getComponent(cc.PageView).setCurrentPageIndex(0);
this.startNode.active = false; this.startNode.active = false;
}); }, 0.6);
const tipRight = cc.find("s_group/startbg/tip_right", this.startNode);
buttonOnClick(tipRight, () => {
tipRight.active = false;
let index = this.page_view.getComponent(cc.PageView).getCurrentPageIndex();
this.page_view.getComponent(cc.PageView).scrollToPage(index + 1, 0.3);
this.updataTipArrow();
}, 0.6);
} }
async showFinal() { async showFinal() {
......
...@@ -23,6 +23,12 @@ export const defaultData = { ...@@ -23,6 +23,12 @@ export const defaultData = {
{ {
"title": "这么小的院子里,居然同时有一间书房和一间书院,这家人可真喜欢读书啊。", "title": "这么小的院子里,居然同时有一间书房和一间书院,这家人可真喜欢读书啊。",
"audio": "https://staging-teach.cdn.ireadabc.com/c03129693e6cabf061661fba349fa031.mp3" "audio": "https://staging-teach.cdn.ireadabc.com/c03129693e6cabf061661fba349fa031.mp3"
},{
"title": "这么小的院子里,居然同时有一间书房和一间书院,这家人可真喜欢读书啊。",
"audio": "https://staging-teach.cdn.ireadabc.com/c03129693e6cabf061661fba349fa031.mp3"
},{
"title": "这么小的院子里,居然同时有一间书房和一间书院,这家人可真喜欢读书啊。",
"audio": "https://staging-teach.cdn.ireadabc.com/c03129693e6cabf061661fba349fa031.mp3"
} }
], ],
"title": "", "title": "",
......
assets/xy_camera/textures/tip_right.png

5.38 KB | W: | H:

assets/xy_camera/textures/tip_right.png

6.08 KB | W: | H:

assets/xy_camera/textures/tip_right.png
assets/xy_camera/textures/tip_right.png
assets/xy_camera/textures/tip_right.png
assets/xy_camera/textures/tip_right.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -18,14 +18,14 @@ ...@@ -18,14 +18,14 @@
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
"offsetX": 0.5, "offsetX": 0,
"offsetY": 0, "offsetY": -0.5,
"trimX": 11, "trimX": 8,
"trimY": 10, "trimY": 8,
"width": 133, "width": 218,
"height": 93, "height": 106,
"rawWidth": 154, "rawWidth": 234,
"rawHeight": 113, "rawHeight": 121,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
......
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