Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wfc13
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
wildfirecode13
wfc13
Commits
6f2f7ef9
Commit
6f2f7ef9
authored
Aug 05, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
17e83070
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
6 deletions
+19
-6
IndexScene.ts
project/src/scenes/IndexScene.ts
+16
-4
stage.ts
project/src/stage.ts
+3
-2
No files found.
project/src/scenes/IndexScene.ts
View file @
6f2f7ef9
...
@@ -3,11 +3,14 @@ import { closeCurrentPanel, showPanel } from "../../module/ctrls";
...
@@ -3,11 +3,14 @@ import { closeCurrentPanel, showPanel } from "../../module/ctrls";
import
PanelCtrl
from
'../../module/ctrls/panelCtrl'
;
import
PanelCtrl
from
'../../module/ctrls/panelCtrl'
;
import
{
Scene
}
from
"../../module/views/Scene"
;
import
{
Scene
}
from
"../../module/views/Scene"
;
import
Marquee
from
'../common/Marquee'
;
import
Marquee
from
'../common/Marquee'
;
import
{
hideShareMask
}
from
'../common/ShareMask'
;
import
ShareMask
,
{
hideShareMask
}
from
'../common/ShareMask'
;
import
TestButton
from
'../common/TestButton'
;
import
getObject
from
'../getObject'
;
import
getQueryParams
from
'../getQueryParams'
;
import
getQueryParams
from
'../getQueryParams'
;
import
{
DrawPanel
}
from
'../panels/draw'
;
import
{
DrawPanel
}
from
'../panels/draw'
;
import
{
ShareFailPanel
}
from
'../panels/share_fail'
;
import
{
ShareFailPanel
}
from
'../panels/share_fail'
;
import
{
ShareSuccessPanel
}
from
'../panels/share_success'
;
import
{
ShareSuccessPanel
}
from
'../panels/share_success'
;
import
{
getStageHeight
,
getStageOffset
}
from
'../stage'
;
import
updateShare
from
'../updateShare'
;
import
updateShare
from
'../updateShare'
;
import
{
sendWebNet
,
WebNetName
}
from
'../WebNet'
;
import
{
sendWebNet
,
WebNetName
}
from
'../WebNet'
;
...
@@ -21,11 +24,17 @@ const checkUpdateShare = () => {
...
@@ -21,11 +24,17 @@ const checkUpdateShare = () => {
}
}
export
class
IndexScene
extends
Scene
{
export
class
IndexScene
extends
Scene
{
get
groupNames
()
{
return
[
"index3"
]
}
page
:
FYGE
.
ScrollPage
;
get
skinName
()
{
return
"index3"
}
initUi
()
{
initUi
()
{
super
.
initUi
();
super
.
initUi
();
FYGE
.
ScrollPage
const
page
=
this
.
page
=
new
FYGE
.
ScrollPage
(
750
,
getStageHeight
(),
1624
,
true
,
true
);
page
.
isSpringBack
=
false
;
this
.
addChild
(
page
);
page
.
y
=
getStageOffset
();
this
.
page
.
view
.
addChild
(
getObject
(
this
,
'wrapper'
));
}
}
async
start
(
data
)
{
async
start
(
data
)
{
...
@@ -97,4 +106,7 @@ export class IndexScene extends Scene {
...
@@ -97,4 +106,7 @@ export class IndexScene extends Scene {
super
.
removeEvents
();
super
.
removeEvents
();
unwatchPageVisibility
(
this
.
onPageVisibilityChange
)
unwatchPageVisibility
(
this
.
onPageVisibilityChange
)
}
}
get
groupNames
()
{
return
[
"index3"
]
}
get
skinName
()
{
return
"index3"
}
}
}
project/src/stage.ts
View file @
6f2f7ef9
import
{
layers
}
from
"../module/views/layers"
import
{
layers
}
from
"../module/views/layers"
export
const
getStageWidth
=
()
=>
{
return
layers
.
stage
.
viewRect
.
width
}
export
const
getStageWidth
=
()
=>
{
return
layers
.
stage
.
viewRect
.
width
}
export
const
getStageHeight
=
()
=>
{
return
layers
.
stage
.
viewRect
.
height
}
export
const
getStageHeight
=
()
=>
{
return
layers
.
stage
.
viewRect
.
height
}
\ No newline at end of file
export
const
getStageOffset
=
()
=>
{
return
(
1624
-
getStageHeight
())
/
2
}
\ No newline at end of file
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