Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
SSAPP2502
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
SSAPP2502
Commits
a2c6ddeb
Commit
a2c6ddeb
authored
Sep 11, 2025
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 调整模板分辨率
parent
59681740
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
178 additions
and
178 deletions
+178
-178
SSAPP2502.fire
assets/SSAPP2502/scene/SSAPP2502.fire
+172
-172
SSAPP2502.ts
assets/SSAPP2502/scene/SSAPP2502.ts
+6
-6
No files found.
assets/SSAPP2502/scene/SSAPP2502.fire
View file @
a2c6ddeb
This diff is collapsed.
Click to expand it.
assets/SSAPP2502/scene/SSAPP2502.ts
View file @
a2c6ddeb
...
...
@@ -355,7 +355,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
unansweredQuestions
.
forEach
((
data
,
index
)
=>
{
const
candyNode
=
cc
.
instantiate
(
this
.
item
)
as
CandyNode
;
this
.
layout
.
addChild
(
candyNode
);
this
.
updateItem
(
candyNode
,
data
,
index
*
320
+
150
);
this
.
updateItem
(
candyNode
,
data
,
(
index
*
320
+
150
)
/
1.5
);
if
(
index
===
0
)
{
this
.
candyNodeWidth
=
candyNode
.
width
;
}
...
...
@@ -748,7 +748,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg
.
view
.
visible
(
word
,
false
);
// 设置图片内容
if
(
currentData
.
picUrl
)
{
pg
.
view
.
setNetImg
(
icon
,
currentData
.
picUrl
,
{
w
:
945
,
h
:
500
});
pg
.
view
.
setNetImg
(
icon
,
currentData
.
picUrl
,
{
w
:
945
/
1.5
,
h
:
500
/
1.5
});
}
}
else
{
// 否则显示文字,隐藏图片
...
...
@@ -758,9 +758,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
currentData
.
txt
)
{
pg
.
view
.
setString
(
word
,
currentData
.
txt
);
if
(
currentData
.
txt
>
6
)
{
word
.
getComponent
(
cc
.
Label
).
fontSize
=
250
;
word
.
getComponent
(
cc
.
Label
).
fontSize
=
250
/
1.5
;
}
else
{
word
.
getComponent
(
cc
.
Label
).
fontSize
=
350
;
word
.
getComponent
(
cc
.
Label
).
fontSize
=
350
/
1.5
;
}
}
}
...
...
@@ -910,7 +910,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
layout
.
x
-=
frameScrollDistance
;
// 累计滚动距离
this
.
scrollDistance
=
Math
.
abs
(
this
.
layout
.
x
)
-
this
.
addCount
*
100
;
this
.
scrollDistance
=
Math
.
abs
(
this
.
layout
.
x
)
-
this
.
addCount
*
100
/
1.5
;
if
(
!
this
.
addCount
)
{
this
.
addCount
=
1
;
}
...
...
@@ -929,7 +929,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
firstCandy
&&
firstCandy
.
x
+
this
.
layout
.
x
+
firstCandy
.
width
/
2
<
0
)
{
// 如果移出的节点对应的题目还未回答,将其重新添加到待添加队列
if
(
firstCandy
)
{
const
x
=
children
[
children
.
length
-
1
].
x
+
320
;
const
x
=
children
[
children
.
length
-
1
].
x
+
320
/
1.5
;
firstCandy
.
x
=
x
;
}
}
...
...
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