Commit 6f2f7ef9 authored by wildfirecode13's avatar wildfirecode13

update

parent 17e83070
......@@ -3,11 +3,14 @@ import { closeCurrentPanel, showPanel } from "../../module/ctrls";
import PanelCtrl from '../../module/ctrls/panelCtrl';
import { Scene } from "../../module/views/Scene";
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 { DrawPanel } from '../panels/draw';
import { ShareFailPanel } from '../panels/share_fail';
import { ShareSuccessPanel } from '../panels/share_success';
import { getStageHeight, getStageOffset } from '../stage';
import updateShare from '../updateShare';
import { sendWebNet, WebNetName } from '../WebNet';
......@@ -21,11 +24,17 @@ const checkUpdateShare = () => {
}
export class IndexScene extends Scene {
get groupNames() { return ["index3"] }
get skinName() { return "index3" }
page:FYGE.ScrollPage;
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) {
......@@ -97,4 +106,7 @@ export class IndexScene extends Scene {
super.removeEvents();
unwatchPageVisibility(this.onPageVisibilityChange)
}
get groupNames() { return ["index3"] }
get skinName() { return "index3" }
}
import { layers } from "../module/views/layers"
export const getStageWidth = ()=>{return layers.stage.viewRect.width}
export const getStageHeight = ()=>{return layers.stage.viewRect.height}
\ No newline at end of file
export const getStageWidth = () => { return layers.stage.viewRect.width }
export const getStageHeight = () => { return layers.stage.viewRect.height }
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