Commit 6f2f7ef9 authored by wildfirecode13's avatar wildfirecode13

update

parent 17e83070
...@@ -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" }
} }
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment