Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TNGD_CaveCruiser
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
TNGD_CaveCruiser
Commits
049ec9d0
Commit
049ec9d0
authored
Aug 23, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GuideLayer
parent
1bf17e53
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
8 deletions
+1
-8
RulePanel.ts
assets/Scripts/Panels/RulePanel.ts
+1
-6
store.ts
assets/Scripts/store/store.ts
+0
-2
No files found.
assets/Scripts/Panels/RulePanel.ts
View file @
049ec9d0
...
...
@@ -22,8 +22,7 @@ export default class RulePanel extends Panel {
}
async
start
()
{
await
store
.
updateRule
();
this
.
setRuleTxt
(
store
.
ruleInfo
);
this
.
setRuleTxt
(
store
.
homeInfo
.
activityRule
);
}
clickClose
=
()
=>
{
...
...
@@ -44,14 +43,10 @@ export default class RulePanel extends Panel {
const
{
width
:
pw
,
height
:
ph
}
=
this
.
spNode
.
getComponent
(
UITransform
);
console
.
log
(
pw
,
ph
);
const
width
=
this
.
spNode
.
parent
.
getComponent
(
UITransform
).
width
;
const
height
=
ph
*
width
/
pw
;
console
.
log
(
width
,
height
)
this
.
spNode
.
getComponent
(
UITransform
).
setContentSize
(
width
,
height
);
});
...
...
assets/Scripts/store/store.ts
View file @
049ec9d0
...
...
@@ -33,12 +33,10 @@ class Store {
WebNetName
.
index
,
{
gameType
:
2
}
);
console
.
log
(
success
)
if
(
!
success
)
{
return
;
}
console
.
log
(
data
);
this
.
homeInfo
=
data
;
}
...
...
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