Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NGT_02
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
NGT_02
Commits
983f6bec
Commit
983f6bec
authored
Mar 03, 2022
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test:
parent
f8e2c066
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
17 deletions
+5
-17
NGT_02.meta
assets/NGT_02.meta
+1
-15
view.js
assets/NGT_02/script/common/view.js
+4
-2
No files found.
assets/NGT_02.meta
View file @
983f6bec
{
{"ver":"1.1.2","uuid":"d3ad24ed-9c8b-421d-934f-f93f1acf3060","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
"ver": "1.1.2",
\ No newline at end of file
"uuid": "d3ad24ed-9c8b-421d-934f-f93f1acf3060",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
assets/NGT_02/script/common/view.js
View file @
983f6bec
...
@@ -39,7 +39,7 @@ cc.Class({
...
@@ -39,7 +39,7 @@ cc.Class({
},
},
onLoad
:
function
()
{
onLoad
:
function
()
{
initGlobal_NGT_02
();
initGlobal_NGT_02
();
//开启适配
//开启适配
this
.
widgetList
=
[];
this
.
widgetList
=
[];
...
@@ -61,7 +61,9 @@ cc.Class({
...
@@ -61,7 +61,9 @@ cc.Class({
var
list
=
scene
.
getComponentsInChildren
(
cc
.
Widget
);
var
list
=
scene
.
getComponentsInChildren
(
cc
.
Widget
);
for
(
var
i
in
list
)
{
for
(
var
i
in
list
)
{
list
[
i
].
updateAlignment
();
if
(
!
list
[
i
].
name
.
includes
(
"
middlelayer
"
))
{
list
[
i
].
updateAlignment
();
}
}
}
}
}
},
0
);
},
0
);
...
...
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