Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
PU20
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
PU20
Commits
703bfb92
Commit
703bfb92
authored
May 12, 2021
by
jeff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug
parent
52ebafda
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
18 deletions
+20
-18
custom-hot-zone-mini.component.ts
...on/custom-hot-zone-mini/custom-hot-zone-mini.component.ts
+5
-5
hitItem.prefab
play/assets/scene/prefab/hitItem.prefab
+9
-6
hitItem.js
play/assets/scene/scene/hitItem.js
+3
-3
scene.js
play/assets/scene/scene/scene.js
+3
-4
No files found.
form/src/app/common/custom-hot-zone-mini/custom-hot-zone-mini.component.ts
View file @
703bfb92
...
...
@@ -304,12 +304,12 @@ export class CustomHotZoneComponent1 implements OnInit, OnDestroy, OnChanges {
item
.
y
=
this
.
canvasHeight
/
2
;
item
.
itemType
=
this
.
getDefaultItemType
();
item
.
gIdx
=
0
item
.
gIdx
=
'
0
'
item
[
'
id
'
]
=
new
Date
().
getTime
().
toString
();
item
[
'
data
'
]
=
saveData
;
item
[
'
useHand
'
]
=
true
item
[
'
useBorder
'
]
=
true
item
[
'
useBorder
'
]
=
true
console
.
log
(
'
item.x:
'
,
item
.
x
);
if
(
saveData
)
{
...
...
@@ -323,7 +323,7 @@ export class CustomHotZoneComponent1 implements OnInit, OnDestroy, OnChanges {
item
[
'
id
'
]
=
saveData
.
id
;
item
[
'
pic
'
]
=
saveData
.
pic_url
// item['skeJsonData'] = saveData.skeJsonData;
// item['texJsonData'] = saveData.texJsonData;
// item['texPngData'] = saveData.texPngData;
...
...
@@ -1087,8 +1087,8 @@ export class CustomHotZoneComponent1 implements OnInit, OnDestroy, OnChanges {
}
/** 改变内容 */
onChangeSwitch
(
data
,
name
:
string
)
{
data
[
name
]
=!
data
[
name
]
onChangeSwitch
(
data
,
name
:
string
)
{
data
[
name
]
=
!
data
[
name
]
}
getSendData
()
{
...
...
play/assets/scene/prefab/hitItem.prefab
View file @
703bfb92
...
...
@@ -275,8 +275,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 39
1
,
"height": 13
3
"width": 39
7
,
"height": 13
9
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -355,10 +355,10 @@
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": -2
0
,
"_right": -2
0
,
"_top": -2
0
,
"_bottom": -2
0
,
"_left": -2
3
,
"_right": -2
3
,
"_top": -2
3
,
"_bottom": -2
3
,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
...
...
@@ -854,6 +854,9 @@
"sprite": {
"__id__": 12
},
"tipClip": {
"__uuid__": "e0bcf4cc-35a7-4d61-b202-8dd49299c2c0"
},
"_id": ""
},
{
...
...
play/assets/scene/scene/hitItem.js
View file @
703bfb92
...
...
@@ -8,7 +8,8 @@ cc.Class({
quan
:
cc
.
Node
,
tipsAnim
:
cc
.
Animation
,
handAnim
:
cc
.
Animation
,
sprite
:
cc
.
Sprite
sprite
:
cc
.
Sprite
,
tipClip
:
cc
.
AudioClip
},
data
:
null
,
...
...
@@ -70,7 +71,7 @@ cc.Class({
}
this
.
handAnim
.
stop
()
this
.
handAnim
.
node
.
active
=
false
cc
.
audioEngine
.
play
(
this
.
tipClip
)
}
},
...
...
@@ -91,7 +92,6 @@ cc.Class({
this
.
quan
.
active
=
false
this
.
tipsAnim
.
stop
()
this
.
tipsAnim
.
node
.
active
=
false
this
.
sprite
.
node
.
active
=
false
if
(
this
.
data
.
useHand
)
{
this
.
handAnim
.
node
.
active
=
true
this
.
handAnim
.
play
()
...
...
play/assets/scene/scene/scene.js
View file @
703bfb92
...
...
@@ -20,8 +20,7 @@ cc.Class({
type
:
cc
.
Node
,
default
:
null
},
btnClip
:
cc
.
AudioClip
,
tipClip
:
cc
.
AudioClip
,
btnClip
:
cc
.
AudioClip
},
// 生命周期 onLoad
...
...
@@ -193,7 +192,7 @@ cc.Class({
this
.
leftMove
()
cc
.
audioEngine
.
play
(
this
.
click
Clip
,
false
,
0.5
)
cc
.
audioEngine
.
play
(
this
.
btn
Clip
,
false
,
0.5
)
},
onClickLeft
()
{
...
...
@@ -211,7 +210,7 @@ cc.Class({
}
this
.
rightMove
()
cc
.
audioEngine
.
play
(
this
.
click
Clip
,
false
,
0.8
)
cc
.
audioEngine
.
play
(
this
.
btn
Clip
,
false
,
0.8
)
},
...
...
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