Commit d53c65b4 authored by wildfirecode's avatar wildfirecode

1

parent dbd89a79
......@@ -2,11 +2,11 @@
<e:Skin class="Start1Skin" width="750" height="1624" xmlns:e="http://ns.egret.com/eui"
xmlns:w="http://ns.egret.com/wing">
<w:Config id="16d391cc18c" />
<e:Scroller id="scroll" width="750" height="1206">
<e:Scroller id="scroll" width="750" height="1624">
<e:Group>
<e:Group x="0" y="0" height="1539" width="750" scaleX="1" scaleY="1">
<e:Image source="startscenebg_jpg" x="0" y="0"/>
<e:Button id="btn0" label="" x="93.95" y="417.06">
<e:Button id="btn0" label="" x="209.95" y="441.06" anchorOffsetX="116" anchorOffsetY="24">
<e:skinName>
<e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="btn_png" source.down="btn_png" source.disabled="btn_png"/>
......@@ -14,7 +14,7 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Button id="btn1" label="" x="424.78" y="730.42">
<e:Button id="btn1" label="" x="536.78" y="758.42" anchorOffsetX="112" anchorOffsetY="28">
<e:skinName>
<e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="btn_png" source.down="btn_png" source.disabled="btn_png"/>
......@@ -22,7 +22,7 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Button id="btn2" label="" x="93.95" y="1055.23">
<e:Button id="btn2" label="" x="207.95" y="1087.23" anchorOffsetX="114" anchorOffsetY="32">
<e:skinName>
<e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="btn_png" source.down="btn_png" source.disabled="btn_png"/>
......@@ -30,7 +30,7 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Button id="btn3" label="" x="430.22" y="1368.29">
<e:Button id="btn3" label="" x="538.22" y="1394.29" anchorOffsetX="108" anchorOffsetY="26">
<e:skinName>
<e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="btn2_png" source.down="btn2_png" source.disabled="btn2_png"/>
......
......@@ -12,6 +12,15 @@ export default class Start1Scene extends Scene {
this['btn1'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap1, this);
this['btn2'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap2, this);
this['btn3'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap3, this);
[this['btn0'],this['btn1'],this['btn2'],this['btn3']].forEach(btn=>{
egret.Tween.get(btn,{loop:true})
.to({scaleX:1.1,scaleY:1.1},200)
.to({scaleX:1,scaleY:1},200)
.to({scaleX:1.1,scaleY:1.1},200)
.to({scaleX:1,scaleY:1},200)
.wait(1000);
});
}
onTap0(){
......
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