Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xy_camera
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
xy_camera
Commits
04b3333a
Commit
04b3333a
authored
2 years ago
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat
parent
8883e899
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
22 deletions
+36
-22
xy_camera.fire
assets/xy_camera/scene/xy_camera.fire
+12
-12
xy_camera.ts
assets/xy_camera/scene/xy_camera.ts
+10
-2
defaultData.ts
assets/xy_camera/script/defaultData.ts
+6
-0
tip_right.png
assets/xy_camera/textures/tip_right.png
+0
-0
tip_right.png.meta
assets/xy_camera/textures/tip_right.png.meta
+8
-8
No files found.
assets/xy_camera/scene/xy_camera.fire
View file @
04b3333a
...
...
@@ -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": [
-1
03.9
,
-10
8.6
,
-1
29.692
,
-10
0.502
,
0,
0,
0,
...
...
@@ -5264,9 +5264,9 @@
"_target": null,
"_alignFlags": 36,
"_left": 0,
"_right": 64,
"_right": 64
.29200000000002
,
"_top": 0,
"_bottom": 7
0
,
"_bottom": 7
4.19800000000001
,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
...
...
@@ -5390,15 +5390,15 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-1
59.459
,
-1
82.71
3,
-1
29.026
,
-1
00.22
3,
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,
...
...
This diff is collapsed.
Click to expand it.
assets/xy_camera/scene/xy_camera.ts
View file @
04b3333a
...
...
@@ -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
()
{
...
...
This diff is collapsed.
Click to expand it.
assets/xy_camera/script/defaultData.ts
View file @
04b3333a
...
...
@@ -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
"
:
""
,
...
...
This diff is collapsed.
Click to expand it.
assets/xy_camera/textures/tip_right.png
View replaced file @
8883e899
View file @
04b3333a
5.38 KB
|
W:
0px
|
H:
0px
6.08 KB
|
W:
0px
|
H:
0px
2-up
Swipe
Onion skin
This diff is collapsed.
Click to expand it.
assets/xy_camera/textures/tip_right.png.meta
View file @
04b3333a
...
...
@@ -18,14 +18,14 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0
.5
,
"offsetY":
0
,
"trimX":
11
,
"trimY":
10
,
"width":
133
,
"height":
93
,
"rawWidth":
15
4,
"rawHeight": 1
13
,
"offsetX": 0,
"offsetY":
-0.5
,
"trimX":
8
,
"trimY":
8
,
"width":
218
,
"height":
106
,
"rawWidth":
23
4,
"rawHeight": 1
21
,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment