Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dg29_museum
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
dg29_museum
Commits
e9eddc50
Commit
e9eddc50
authored
Dec 22, 2023
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更换暂停
parent
4f795494
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
338 additions
and
184 deletions
+338
-184
dg18_tianci.fire
assets/dg18_tianci/scene/dg18_tianci.fire
+280
-183
dg18_tianci.ts
assets/dg18_tianci/scene/dg18_tianci.ts
+22
-1
icon_stop.png
assets/dg18_tianci/textures/icon_stop.png
+0
-0
icon_stop.png.meta
assets/dg18_tianci/textures/icon_stop.png.meta
+36
-0
No files found.
assets/dg18_tianci/scene/dg18_tianci.fire
View file @
e9eddc50
This diff is collapsed.
Click to expand it.
assets/dg18_tianci/scene/dg18_tianci.ts
View file @
e9eddc50
...
@@ -114,6 +114,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -114,6 +114,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
btn_vioce
.
active
=
true
;
this
.
btn_vioce
.
active
=
true
;
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
.
btn_vioce
,
'
img_ing
'
),
false
)
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
.
btn_vioce
,
'
img_ing
'
),
false
)
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
.
btn_vioce
,
'
img_stop
'
),
false
)
this
.
label_tip_wait
.
active
=
true
;
this
.
label_tip_wait
.
active
=
true
;
// 展示下一题
// 展示下一题
...
@@ -155,6 +156,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -155,6 +156,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
label_tip_wait
.
active
=
false
this
.
label_tip_wait
.
active
=
false
this
.
label_tip_ing
.
active
=
true
;
this
.
label_tip_ing
.
active
=
true
;
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
.
btn_vioce
,
'
img_ing
'
),
true
)
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
.
btn_vioce
,
'
img_ing
'
),
true
)
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
.
btn_vioce
,
'
img_stop
'
),
true
)
let
img_ing
=
pg
.
view
.
find
(
this
.
btn_vioce
,
'
img_ing
'
)
let
img_ing
=
pg
.
view
.
find
(
this
.
btn_vioce
,
'
img_ing
'
)
img_ing
.
getComponent
(
cc
.
Sprite
).
fillRange
=
subTime
/
this
.
targetTime
;
img_ing
.
getComponent
(
cc
.
Sprite
).
fillRange
=
subTime
/
this
.
targetTime
;
if
(
subTime
==
0
)
{
if
(
subTime
==
0
)
{
...
@@ -166,6 +168,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -166,6 +168,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
label_tip_wait
.
active
=
false
this
.
label_tip_wait
.
active
=
false
this
.
label_tip_ing
.
active
=
false
;
this
.
label_tip_ing
.
active
=
false
;
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
.
btn_vioce
,
'
img_ing
'
),
false
)
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
.
btn_vioce
,
'
img_ing
'
),
false
)
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
.
btn_vioce
,
'
img_stop
'
),
false
)
}
}
async
onTouchRecord
()
{
async
onTouchRecord
()
{
if
(
!
this
.
_cantouch
)
return
;
if
(
!
this
.
_cantouch
)
return
;
...
@@ -280,6 +283,24 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -280,6 +283,24 @@ export default class SceneComponent extends MyCocosSceneComponent {
@
property
(
cc
.
Label
)
currentTimeLabel
:
cc
.
Label
=
null
;
@
property
(
cc
.
Label
)
currentTimeLabel
:
cc
.
Label
=
null
;
private
_isReadyToPlay
:
boolean
;
private
_isReadyToPlay
:
boolean
;
showUI
()
{
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
,
'
bg
'
),
true
)
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
,
'
question_img
'
),
true
)
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
,
'
img_kuang
'
),
true
)
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
,
'
label_title
'
),
true
)
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
,
'
layout_record
'
),
true
)
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
,
'
layout_xiaodi
'
),
true
)
}
hideUI
()
{
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
,
'
bg
'
),
false
)
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
,
'
question_img
'
),
false
)
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
,
'
img_kuang
'
),
false
)
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
,
'
label_title
'
),
false
)
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
,
'
layout_record
'
),
false
)
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
,
'
layout_xiaodi
'
),
false
)
}
showVideoPlayer
()
{
showVideoPlayer
()
{
// this.videoPlayer.stayOnBottom = true;
// this.videoPlayer.stayOnBottom = true;
...
@@ -288,7 +309,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -288,7 +309,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
// this.videoPlayer.node.y = -5000;
// this.videoPlayer.node.y = -5000;
this
.
videoPlayer
.
remoteURL
=
this
.
data
.
video
;
this
.
videoPlayer
.
remoteURL
=
this
.
data
.
video
;
// this.play();
// this.play();
this
.
hideUI
();
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
videoPlayer
.
node
.
x
=
0
;
this
.
videoPlayer
.
node
.
x
=
0
;
...
...
assets/dg18_tianci/textures/icon_stop.png
0 → 100644
View file @
e9eddc50
6.47 KB
assets/dg18_tianci/textures/icon_stop.png.meta
0 → 100644
View file @
e9eddc50
{
"ver": "2.3.5",
"uuid": "144cd028-ae80-473d-b099-3c7fee692fa9",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 158,
"height": 158,
"platformSettings": {},
"subMetas": {
"icon_stop": {
"ver": "1.0.4",
"uuid": "ea97ca79-6d89-4d8c-9429-98e79cc60cb8",
"rawTextureUuid": "144cd028-ae80-473d-b099-3c7fee692fa9",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 158,
"height": 158,
"rawWidth": 158,
"rawHeight": 158,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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