Commit a2f27a6e authored by zjz1994's avatar zjz1994

红包暂存

parent b3dfe265
<?xml version="1.0" encoding="utf-8"?> <?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: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:Rect left="0" top="0" bottom="0" right="0" fillAlpha="0.65"/>
<e:Image id="ruleBg" horizontalCenter="0" y="213.7" source="hbRule_bg_png"/> <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="337.2"> <e:Scroller id="scroller" width="545" x="103.76" height="507" y="461.2">
<e:Group id="group" width="100%"> <e:Group id="group" width="100%">
<e:Label id="labContent" width="100%" text="" lineSpacing="10" size="30" multiline="true" textColor="0xa54615"/> <e:Label id="labContent" width="100%" text="" lineSpacing="10" size="30" multiline="true" textColor="0xa54615"/>
<e:layout> <e:layout>
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</e:layout> </e:layout>
</e:Group> </e:Group>
</e:Scroller> </e:Scroller>
<e:Button id="closeBtn" label="" x="599" y="213.7"> <e:Button id="closeBtn" label="" x="599" y="337.7">
<e:skinName> <e:skinName>
<e:Skin states="up,down,disabled"> <e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="closeCommonBtn_png" source.down="closeCommonBtn_png" source.disabled="closeCommonBtn_png"/> <e:Image width="100%" height="100%" source="closeCommonBtn_png" source.down="closeCommonBtn_png" source.disabled="closeCommonBtn_png"/>
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<e:Skin class="RedBombTipsSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing"> <e:Skin class="RedBombTipsSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Group id="con1"/> <e:Group id="con1"/>
<e:Image id="rulebtn" source="redbagtips活动规则_png" y="1004" horizontalCenter="0"/> <e:Image id="rulebtn" source="redbagtips活动规则_png" y="1028" horizontalCenter="0.5"/>
<e:Image source="redbagtips_elexx_png" x="210" y="50" visible="false"/> <e:Image source="redbagtips_elexx_png" x="210" y="50" visible="false"/>
<e:Group id="btn" y="883.31" horizontalCenter="0"> <e:Group id="btn" y="883.31" horizontalCenter="0">
<e:Image source="redbagtips按钮_png" y="0" x="0"/> <e:Image source="redbagtips按钮_png" y="0" x="0"/>
<e:Label text="开启作战" verticalCenter="-3.5" horizontalCenter="0" size="38" strokeColor="0x0389ff" stroke="2" fontFamily="FZY3JW"/> <e:Label text="开启作战" verticalCenter="-3.5" horizontalCenter="0" size="38" strokeColor="0x0389ff" stroke="2" fontFamily="FZY3JW" visible="false"/>
</e:Group> </e:Group>
</e:Skin> </e:Skin>
\ No newline at end of file
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
<e:Image id="ele3" source="redbagtips_ele1_png" x="160" y="56"/> <e:Image id="ele3" source="redbagtips_ele1_png" x="160" y="56"/>
<e:Image id="ele4" source="redbagtips_ele_png" x="134" y="490"/> <e:Image id="ele4" source="redbagtips_ele_png" x="134" y="490"/>
<e:Image id="redbag" source="redbagtips_ele7_png" y="432" x="376" anchorOffsetX="192" anchorOffsetY="108"/> <e:Image id="redbag" source="redbagtips_ele7_png" y="432" x="376" anchorOffsetX="192" anchorOffsetY="108"/>
<e:Image id="rulebtn" source="redbagtips活动规则_png" y="814" horizontalCenter="0.5"/> <e:Image id="rulebtn" source="redbagtips活动规则_png" y="839.32" horizontalCenter="0.5"/>
<e:Group id="btn" y="693.31" horizontalCenter="0"> <e:Group id="btn" y="693.31" horizontalCenter="0">
<e:Image source="redbagtips按钮_png" y="0" x="0"/> <e:Image source="redbagtips按钮_png" y="0" x="0"/>
<e:Label text="找红包" verticalCenter="-10" horizontalCenter="0" size="38" strokeColor="0x0389FF" stroke="2" fontFamily="FZY3JW"/> <e:Label text="找红包" verticalCenter="-10" horizontalCenter="0" size="38" strokeColor="0x0389FF" stroke="2" fontFamily="FZY3JW" visible="false"/>
</e:Group> </e:Group>
</e:Skin> </e:Skin>
\ No newline at end of file
...@@ -57,6 +57,9 @@ export default class BombTips2Panel extends Panel { ...@@ -57,6 +57,9 @@ export default class BombTips2Panel extends Panel {
const rule = new RedBombRule(); const rule = new RedBombRule();
rule.loadSkin(); rule.loadSkin();
rule.start(); 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);
this.addChild(rule); this.addChild(rule);
} }
......
...@@ -44,6 +44,9 @@ export default class BombTipsPanel extends Panel { ...@@ -44,6 +44,9 @@ export default class BombTipsPanel extends Panel {
const rule = new RedBombRule(); const rule = new RedBombRule();
rule.loadSkin(); rule.loadSkin();
rule.start(); rule.start();
// rule.anchorOffsetY = rule.height/2;
rule.y = - this.y;
console.log("rule位置",this.stage.height,this.height,this.y,this.anchorOffsetY,rule.y,rule.anchorOffsetY);
this.addChild(rule); this.addChild(rule);
} }
......
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