Commit 0113667d authored by zjz1994's avatar zjz1994

红包大作战暂存

parent 9446ee6e
<?xml version="1.0" encoding="utf-8"?>
<e:Skin class="RedBombRuleSkin" width="750" height="1624" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Rect left="0" top="0" bottom="0" right="0" fillAlpha="0.65"/>
<e:Image id="ruleBg" horizontalCenter="0" y="337.7" source="hbRule_bg_png"/>
<e:Scroller id="scroller" width="545" x="103.76" height="507" y="461.2">
<e:Rect id="rectbg" left="0" right="0" fillAlpha="0.65" height="1624" y="0"/>
<e:Image id="ruleBg" horizontalCenter="0" y="305.7" source="hbRule_bg_png"/>
<e:Scroller id="scroller" width="545" x="103.76" height="547" y="401.2" anchorOffsetY="0">
<e:Group id="group" width="100%">
<e:Label id="labContent" width="100%" text="" lineSpacing="10" size="30" multiline="true" textColor="0xa54615"/>
<e:layout>
......
......@@ -57,10 +57,13 @@ export default class BombTips2Panel extends Panel {
const rule = new RedBombRule();
rule.loadSkin();
rule.start();
// rule.y = this.stage.stageHeight/2 - rule.height/2;
rule.y = -this.y;
console.log("rule位置",this.stage.stageHeight,this.height,this.y,this.anchorOffsetY,rule.y,rule.anchorOffsetY);
rule.y = this.stage.stageHeight/2 - rule.height/2;
// rule.y = -this.y;
// console.log('位置调整',this.y,rule.y,rule['rectbg'].y);
// console.log("rule位置",this.stage.stageHeight,this.height,this.y,this.anchorOffsetY,rule.y,rule.anchorOffsetY);
this.addChild(rule);
rule['rectbg'].y = (-rule.y-this.y);
}
onTapInvite() {
......
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