Commit c587e4d8 authored by zhangjinzhou's avatar zhangjinzhou

换用信徒

parent 18109b74
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
}, },
{ {
"name": "preload", "name": "preload",
"keys": "option_left_png,option_right_png,option_scrollbar_png,ex_panda_png,ex_buybtn_png,ex_close_png,hotballoon_png,道具数量框_png,光线_png,水_半_png,水_空_png,水_满_png,饲料_半_png,饲料_空_png,饲料_满_png,roalightimg_png,closebtn_png,exd_fail_bg_png,iknowbtn_png,lightdotimg_png,roalightbg_png,奖品1_png,我要兑换按钮_png" "keys": "option_left_png,option_right_png,option_scrollbar_png,ex_panda_png,ex_buybtn_png,ex_close_png,hotballoon_png,道具数量框_png,光线_png,水_半_png,水_空_png,水_满_png,饲料_半_png,饲料_空_png,饲料_满_png,roalightimg_png,closebtn_png,exd_fail_bg_png,iknowbtn_png,lightdotimg_png,roalightbg_png,奖品1_png,我要兑换按钮_png,option_apple_png,option_papaya_png"
} }
], ],
"resources": [ "resources": [
...@@ -1370,6 +1370,16 @@ ...@@ -1370,6 +1370,16 @@
"name": "我要兑换按钮_png", "name": "我要兑换按钮_png",
"type": "image", "type": "image",
"url": "assets/exchange/我要兑换按钮.png" "url": "assets/exchange/我要兑换按钮.png"
},
{
"name": "option_apple_png",
"type": "image",
"url": "assets/index_scene/planting/option/option_apple.png"
},
{
"name": "option_papaya_png",
"type": "image",
"url": "assets/index_scene/planting/option/option_papaya.png"
} }
] ]
} }
\ No newline at end of file
...@@ -3,25 +3,37 @@ ...@@ -3,25 +3,37 @@
<e:Image source="option_panel_png" verticalCenter="0" alpha="1" top="0" bottom="0" width="581" horizontalCenter="0" locked="true"/> <e:Image source="option_panel_png" verticalCenter="0" alpha="1" top="0" bottom="0" width="581" horizontalCenter="0" locked="true"/>
<e:Scroller id="petScroll" width="531" height="148" y="20.5" anchorOffsetX="0" anchorOffsetY="0" horizontalCenter="0"> <e:Scroller id="petScroll" width="531" height="148" y="20.5" anchorOffsetX="0" anchorOffsetY="0" horizontalCenter="0">
<e:Group x="-178" y="-26" height="148" width="531"> <e:Group x="-178" y="-26" height="148" width="531">
<e:Group id="chickBtn" width="143" height="141" x="77" y="17"> <e:Group id="chickBtn" width="130" height="140" x="77" y="17">
<e:Image source="免费邮寄到家_png" scaleX="1" scaleY="1"/> <e:Image source="option_chicken_png" anchorOffsetX="41" anchorOffsetY="56" horizontalCenter="0" verticalCenter="-10"/>
<e:Image source="option_chicken_png" x="92" anchorOffsetX="41" anchorOffsetY="56" y="74"/> <e:Label text="鸡" y="114" textColor="0x333333" width="130" textAlign="center" size="22" bold="true"/>
</e:Group> </e:Group>
<e:Group width="143" height="141" x="87" y="27"> <e:Group id="cattleBtn" width="130" height="140" x="87" y="27">
<e:Image id="cattleBtn" source="option_cattle_png" anchorOffsetX="48.5" anchorOffsetY="58.5" x="92" scaleX="1" scaleY="1" y="74"/> <e:Image source="option_cattle_png" anchorOffsetX="48.5" anchorOffsetY="58.5" scaleX="1" scaleY="1" horizontalCenter="0" verticalCenter="-10"/>
<e:Label text="牛" y="114" textColor="0x333333" width="130" textAlign="center" size="22" bold="true"/>
</e:Group> </e:Group>
<e:Group width="143" height="141" x="97" y="37"> <e:Group id="cornBtn" width="130" height="140" x="97" y="37">
<e:Image id="cornBtn" source="option_corn_png" x="92" anchorOffsetX="47.5" anchorOffsetY="65" scaleX="1" scaleY="1" y="74"/> <e:Image source="option_corn_png" anchorOffsetX="47.5" anchorOffsetY="65" scaleX="1" scaleY="1" horizontalCenter="0" verticalCenter="-10"/>
<e:Label text="玉米" y="114" textColor="0x333333" width="130" textAlign="center" size="22" bold="true"/>
</e:Group> </e:Group>
<e:Group id="wheatBtn" width="143" height="141" x="107" y="47"> <e:Group id="wheatBtn" width="130" height="140" x="107" y="47">
<e:Image source="免费邮寄到家_png" scaleX="1" scaleY="1" visible="false"/> <e:Image source="option_wheat_png" anchorOffsetX="43" anchorOffsetY="59" horizontalCenter="0" verticalCenter="-10"/>
<e:Image source="option_wheat_png" anchorOffsetX="43" anchorOffsetY="59" x="92" y="74"/> <e:Label text="麦子" y="114" textColor="0x333333" width="130" textAlign="center" size="22" bold="true"/>
</e:Group> </e:Group>
<e:Group width="143" height="141" x="117" y="57"> <e:Group id="walnutBtn" width="130" height="140" x="117" y="57">
<e:Image id="walnutBtn" anchorOffsetX="43" anchorOffsetY="59" source="option_walnut_png" x="92" scaleX="1" scaleY="1" y="74"/> <e:Image anchorOffsetX="43" anchorOffsetY="59" source="option_walnut_png" scaleX="1" scaleY="1" horizontalCenter="0" verticalCenter="-10"/>
<e:Label text="核桃" y="114" textColor="0x333333" width="130" textAlign="center" size="22" bold="true"/>
</e:Group> </e:Group>
<e:Group width="143" height="141" x="127" y="67"> <e:Group id="potatoBtn" width="130" height="140" x="127" y="67">
<e:Image id="potatoBtn" anchorOffsetX="43" anchorOffsetY="59" source="option_potato_png" x="92" scaleX="1" scaleY="1" y="74"/> <e:Image anchorOffsetX="43" anchorOffsetY="59" source="option_potato_png" scaleX="1" scaleY="1" horizontalCenter="0" verticalCenter="-10"/>
<e:Label text="土豆" y="114" textColor="0x333333" width="130" textAlign="center" size="22" bold="true"/>
</e:Group>
<e:Group id="appleBtn" width="130" height="140" x="137" y="77">
<e:Image anchorOffsetX="43" anchorOffsetY="59" scaleX="1" scaleY="1" horizontalCenter="0" verticalCenter="-10" source="option_apple_png"/>
<e:Label text="苹果" y="114" textColor="0x333333" width="130" textAlign="center" size="22" bold="true"/>
</e:Group>
<e:Group id="papayaBtn" width="130" height="140" x="147" y="87">
<e:Image anchorOffsetX="43" anchorOffsetY="59" scaleX="1" scaleY="1" horizontalCenter="0" verticalCenter="-10" source="option_papaya_png"/>
<e:Label text="木瓜" y="114" textColor="0x333333" width="130" textAlign="center" size="22" bold="true"/>
</e:Group> </e:Group>
<e:layout> <e:layout>
<e:HorizontalLayout horizontalAlign="left" verticalAlign="middle" gap="0"/> <e:HorizontalLayout horizontalAlign="left" verticalAlign="middle" gap="0"/>
......
...@@ -40,17 +40,19 @@ const seedKV = { ...@@ -40,17 +40,19 @@ const seedKV = {
*/ */
export default class OptionPanel extends Component { export default class OptionPanel extends Component {
public chickBtn: eui.Group; public chickBtn: eui.Group;
public cattleBtn: eui.Image; public cattleBtn: eui.Group;
public cornBtn: eui.Image; public cornBtn: eui.Group;
public wheatBtn: eui.Group; public wheatBtn: eui.Group;
public walnutBtn: eui.Image; public walnutBtn: eui.Group;
public potatoBtn: eui.Image; public potatoBtn: eui.Group;
public leftBtn:eui.Image; public leftBtn:eui.Image;
public rightBtn:eui.Image; public rightBtn:eui.Image;
public petScroll:eui.Scroller; public petScroll:eui.Scroller;
private data = null; private data = null;
public appleBtn: eui.Group;
public papayaBtn: eui.Group;
////////////////////// 单例 ////////////////////// ////////////////////// 单例 //////////////////////
private static _instance: OptionPanel = null; private static _instance: OptionPanel = null;
......
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