Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dg18_tianci
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
dg18_tianci
Commits
7fc7c516
Commit
7fc7c516
authored
Dec 20, 2023
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug
parent
abf65db8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
18 deletions
+17
-18
dg18_tianci.fire
assets/dg18_tianci/scene/dg18_tianci.fire
+6
-6
dg18_tianci.ts
assets/dg18_tianci/scene/dg18_tianci.ts
+11
-12
No files found.
assets/dg18_tianci/scene/dg18_tianci.fire
View file @
7fc7c516
...
...
@@ -3038,8 +3038,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 2
86
,
"height":
232
"width": 2
32
,
"height":
189
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -3198,8 +3198,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 2
7
0,
"height": 1
8
0
"width": 2
1
0,
"height": 1
4
0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -3211,7 +3211,7 @@
"ctor": "Float64Array",
"array": [
0,
0
,
5
,
0,
0,
0,
...
...
@@ -5017,7 +5017,7 @@
"ctor": "Float64Array",
"array": [
823.5,
-16.021
,
54.695
,
0,
0,
0,
...
...
assets/dg18_tianci/scene/dg18_tianci.ts
View file @
7fc7c516
...
...
@@ -95,7 +95,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
img_dengpao
.
opacity
=
100
;
let
img
=
pg
.
view
.
find
(
this
.
layout_canvas
,
'
img
'
);
pg
.
view
.
setNetImg
(
img
,
this
.
currentQuestion
.
bgItem
.
url
,
{
w
:
1220
,
h
:
790
},
fals
e
)
pg
.
view
.
setNetImg
(
img
,
this
.
currentQuestion
.
bgItem
.
url
,
{
w
:
1220
,
h
:
790
},
tru
e
)
if
(
this
.
current
==
0
)
{
this
.
playLocalAudio
(
'
opendoor
'
)
...
...
@@ -203,7 +203,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
else
if
(
data
.
itemType
==
'
pic
'
)
{
let
item
=
pg
.
view
.
clone
(
this
.
item_battery_img
)
let
item_img
=
pg
.
view
.
find
(
item
,
'
item_img
'
);
pg
.
view
.
setNetImg
(
pg
.
view
.
find
(
item_img
,
'
img
'
),
data
.
pic_url
,
{
w
:
2
70
,
h
:
18
0
},
true
)
pg
.
view
.
setNetImg
(
pg
.
view
.
find
(
item_img
,
'
img
'
),
data
.
pic_url
,
{
w
:
2
10
,
h
:
14
0
},
true
)
item
.
active
=
true
;
item
.
x
=
0
;
if
(
!
lastY
&&
lastY
!=
0
)
lastY
=
orgPosY
;
...
...
@@ -299,18 +299,17 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
private
changepoints
(
data
)
{
let
scX
=
1220
/
data
.
bgItem
.
rect
.
width
;
let
scY
=
790
/
data
.
bgItem
.
rect
.
height
;
let
px
=
data
.
bgItem
.
rect
.
x
;
let
py
=
data
.
bgItem
.
rect
.
y
;
let
scaleX
=
1220
/
data
.
bgItem
.
rect
.
width
;
let
scaleY
=
790
/
data
.
bgItem
.
rect
.
height
;
let
scale
=
scaleX
<=
scaleY
?
scaleX
:
scaleY
;
return
data
.
hotZoneItemArr
.
map
((
item
,
idx
)
=>
{
let
rect
=
item
.
rect
;
item
.
pos
=
{
x
:
(
rect
.
x
+
(
rect
.
width
/
2
))
*
sc
X
,
y
:
-
((
rect
.
y
+
(
rect
.
height
/
2
))
*
sc
Y
)
x
:
(
rect
.
x
+
(
rect
.
width
/
2
))
*
sc
ale
,
y
:
-
((
rect
.
y
+
(
rect
.
height
/
2
))
*
sc
ale
)
}
item
.
width
=
rect
.
width
*
sc
X
;
item
.
height
=
rect
.
height
*
sc
Y
;
item
.
width
=
rect
.
width
*
sc
ale
;
item
.
height
=
rect
.
height
*
sc
ale
;
return
item
;
})
}
...
...
@@ -400,13 +399,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
showXiaodi
()
{
if
(
!
this
.
data
.
npcAudioEnd
)
return
;
pg
.
view
.
find
(
this
,
'
layout_xiaodi/btn_go
'
).
active
=
false
;
if
(
this
.
data
.
npc
AudioText
)
{
if
(
this
.
data
.
npc
Title
)
{
this
.
scheduleOnce
(()
=>
{
pg
.
view
.
find
(
this
,
'
layout_xiaodi/btn_go
'
).
active
=
true
;
},
0.5
)
}
pg
.
view
.
touchOn
(
pg
.
view
.
find
(
this
,
'
layout_xiaodi/btn_go
'
),
this
.
onTouchExit
,
this
);
pg
.
view
.
setString
(
pg
.
view
.
find
(
this
,
'
layout_xiaodi/btn_go/txt
'
),
this
.
data
.
npcTitle
)
pg
.
view
.
setString
(
pg
.
view
.
find
(
this
,
'
layout_xiaodi/btn_go/t
e
xt
'
),
this
.
data
.
npcTitle
)
pg
.
view
.
find
(
this
,
'
layout_xiaodi
'
).
active
=
true
;
pg
.
view
.
find
(
this
,
'
layout_xiaodi
'
).
getComponent
(
dg_xiaodi
).
playOver
(
this
.
data
.
npcAudioEnd
)
}
...
...
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