Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP_18
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
OP_18
Commits
b9c88b34
Commit
b9c88b34
authored
Jan 13, 2023
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
51f89e74
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
6 deletions
+47
-6
OP_18.meta
assets/OP_18.meta
+15
-1
OP_18.js
assets/OP_18/scene/OP_18.js
+21
-5
form.component.html
form/src/app/form/form.component.html
+7
-0
form.component.ts
form/src/app/form/form.component.ts
+4
-0
No files found.
assets/OP_18.meta
View file @
b9c88b34
{"ver":"1.1.2","uuid":"e9f579c0-59b7-4567-93ad-5b17f799e827","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "e9f579c0-59b7-4567-93ad-5b17f799e827",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
assets/OP_18/scene/OP_18.js
View file @
b9c88b34
...
...
@@ -500,13 +500,17 @@ cc.Class({
console
.
log
(
"
in showHelper
"
);
playAudio
(
this
.
helpClip
,
()
=>
{
this
.
helpAudioId
=
playAudio
(
this
.
helpClip
,
()
=>
{
this
.
helpAudioId
=
null
;
this
.
showHelperWrite
();
})
},
pauseHelper
()
{
if
(
this
.
helpAudioId
)
{
cc
.
audioEngine
.
stopEffect
(
this
.
helpAudioId
);
this
.
helpAudioId
=
null
;
}
},
showHelperSign
()
{
...
...
@@ -598,8 +602,18 @@ cc.Class({
return
;
}
let
disTime
=
10
;
if
(
this
.
data
.
helpTime
)
{
if
(
this
.
data
.
helpTime
<=
0
)
{
return
;
}
disTime
=
this
.
data
.
helpTime
;
}
const
curTime
=
new
Date
().
getTime
();
if
(
curTime
-
this
.
helperTime
>
10
*
1000
)
{
if
(
curTime
-
this
.
helperTime
>
disTime
*
1000
)
{
this
.
showHelper
();
this
.
resetHelperTime
();
}
...
...
@@ -1617,6 +1631,8 @@ cc.Class({
checkGameEnd
()
{
this
.
pauseHelper
();
const
writeNodeArr
=
this
.
writeNodeArr1
.
concat
(
this
.
writeNodeArr2
);
const
isEnd
=
writeNodeArr
.
every
(
node
=>
{
return
node
.
isShowEnd
;
...
...
form/src/app/form/form.component.html
View file @
b9c88b34
...
...
@@ -153,6 +153,13 @@
>
</app-custom-hot-zone>
<div
style=
"margin-top: 30px; width: 300px; border: 1px solid #ccc ; border-radius: 5px;"
>
<div
style=
"display: flex; justify-content: center; align-items: center; height: 50px"
>
<span
style=
"width: 120px; margin-right: 10px;"
align=
"right"
>
帮助提示间隔(秒):
</span>
<input
type=
"text"
nz-input
[(
ngModel
)]="
item
.
helpTime
"
(
blur
)="
save
()"
style=
"margin-right: 15px; width: 100px "
>
</div>
</div>
<div
style=
"margin-top: 30px; width: 200px; height: 50px; border: 1px solid #ccc ; border-radius: 5px; display: flex; align-items: center; justify-content: center;"
>
<label
nz-checkbox
[(
ngModel
)]="
item
.
isDebug
"
(
ngModelChange
)="
save
()"
>
调试模式
</label>
...
...
form/src/app/form/form.component.ts
View file @
b9c88b34
...
...
@@ -116,6 +116,10 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
if
(
!
this
.
item
.
animArr
)
{
this
.
item
.
animArr
=
this
.
animArr
;
}
if
(
this
.
item
.
helpTime
==
null
)
{
this
.
item
.
helpTime
=
10
;
}
}
saveHotZone2
(
group
,
e
)
{
...
...
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