Commit 04b3333a authored by liujiangnan's avatar liujiangnan

feat

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

5.38 KB | W: 0px | H: 0px

assets/xy_camera/textures/tip_right.png

6.08 KB | W: 0px | H: 0px

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