Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hy04_pinci
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
hy04_pinci
Commits
ca481740
Commit
ca481740
authored
Jul 11, 2023
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
卡死修复
parent
06634746
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
1 deletion
+16
-1
LayerBack_hy04_pinci.ts
assets/hy04_pinci/common/layer_back/LayerBack_hy04_pinci.ts
+4
-1
ImgVoice_hy04_pinci.ts
assets/hy04_pinci/common/script/ImgVoice_hy04_pinci.ts
+4
-0
LayerRecord_hy04_pinci.ts
assets/hy04_pinci/common/script/LayerRecord_hy04_pinci.ts
+4
-0
hy04_pinci.ts
assets/hy04_pinci/scene/hy04_pinci.ts
+3
-0
pg_hy04_pinci.ts
assets/hy04_pinci/scene/pg_hy04_pinci.ts
+1
-0
No files found.
assets/hy04_pinci/common/layer_back/LayerBack_hy04_pinci.ts
View file @
ca481740
...
...
@@ -17,7 +17,9 @@ export default class LayerBack extends cc.Component {
this
.
initEvent
();
}
private
label_title
:
cc
.
Node
;
protected
onDestroy
():
void
{
this
.
unscheduleAllCallbacks
();
}
initView
()
{
this
.
bg_forbid
=
pg
.
view
.
find
(
this
,
'
bg_forbid
'
)
...
...
@@ -65,6 +67,7 @@ export default class LayerBack extends cc.Component {
});
}
playVoiceRunning
()
{
if
(
!
this
.
img_npc_voice
)
return
;
this
.
playVoiceCount
++
;
let
p1
=
this
.
img_npc_voice
.
getChildByName
(
'
p1
'
)
let
p2
=
this
.
img_npc_voice
.
getChildByName
(
'
p2
'
)
...
...
assets/hy04_pinci/common/script/ImgVoice_hy04_pinci.ts
View file @
ca481740
...
...
@@ -13,6 +13,9 @@ export default class ImgVoice extends cc.Component {
this
.
initView
();
this
.
initEvent
();
}
protected
onDestroy
():
void
{
this
.
unscheduleAllCallbacks
();
}
initView
()
{
this
.
img_npc_voice
=
this
.
node
;
}
...
...
@@ -31,6 +34,7 @@ export default class ImgVoice extends cc.Component {
this
.
schedule
(
this
.
playVoiceRunning
,
0.3
)
}
playVoiceRunning
()
{
if
(
!
this
.
img_npc_voice
)
return
;
this
.
playVoiceCount
++
;
let
p1
=
this
.
img_npc_voice
.
getChildByName
(
'
p1
'
)
let
p2
=
this
.
img_npc_voice
.
getChildByName
(
'
p2
'
)
...
...
assets/hy04_pinci/common/script/LayerRecord_hy04_pinci.ts
View file @
ca481740
...
...
@@ -25,6 +25,9 @@ export default class LayerRecord extends cc.Component {
this
.
initEvent
();
this
.
showVoiceWhite
();
}
protected
onDestroy
():
void
{
this
.
unscheduleAllCallbacks
();
}
private
letter
:
string
;
private
targetTime
:
number
;
private
recordAudio
:
string
;
...
...
@@ -115,6 +118,7 @@ export default class LayerRecord extends cc.Component {
playVoiceRunning
()
{
this
.
playVoiceCount
++
;
let
btn_play
=
pg
.
view
.
find
(
this
.
layout_record
,
'
btn_play
'
);
if
(
!
btn_play
)
return
;
let
p0
=
btn_play
.
getChildByName
(
'
p0
'
)
let
p1
=
btn_play
.
getChildByName
(
'
p1
'
)
let
p2
=
btn_play
.
getChildByName
(
'
p2
'
)
...
...
assets/hy04_pinci/scene/hy04_pinci.ts
View file @
ca481740
...
...
@@ -44,6 +44,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg
.
event
.
emit
(
'
npc_layer_back_init
'
,
this
.
data
)
}
protected
onDestroy
():
void
{
pg
.
event
.
clear
();
}
// 一轮单词数量
private
word_area
:
cc
.
Node
;
private
upper_shadow
:
cc
.
Node
;
...
...
assets/hy04_pinci/scene/pg_hy04_pinci.ts
View file @
ca481740
...
...
@@ -351,6 +351,7 @@ let pg = {
if
(
!
node
)
return
;
let
component
=
node
.
getComponent
(
cc
.
Label
);
//组件功能 非node的功能
component
.
string
=
text
;
component
.
cacheMode
=
cc
.
Label
.
CacheMode
.
CHAR
;
return
true
;
},
//更变颜色
...
...
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