Commit 8fc94add authored by wildfirecode's avatar wildfirecode

1

parent f24b5146
......@@ -220,5 +220,13 @@
},
"16dd8f58b77": {
"bindingDataTestObj": []
},
"16e01911ccd": {
"bindingDataTestObj": [
{
"key": "data.url",
"value": "http://yun.duiba.com.cn/db_games/1022/111.png"
}
]
}
}
\ No newline at end of file
egret/resource/assets/bag/bag_icon3.png

18.5 KB | W: | H:

egret/resource/assets/bag/bag_icon3.png

18.2 KB | W: | H:

egret/resource/assets/bag/bag_icon3.png
egret/resource/assets/bag/bag_icon3.png
egret/resource/assets/bag/bag_icon3.png
egret/resource/assets/bag/bag_icon3.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -147,6 +147,10 @@
{
"keys": "bag退出弹窗_png,bag退出按钮_png,bag继续按钮_png",
"name": "bagquit"
},
{
"name": "preload",
"keys": "bagbg_png"
}
],
"resources": [
......@@ -2559,6 +2563,11 @@
"url": "assets/bag/bag按钮 副本 10.png",
"type": "image",
"name": "bag按钮 副本 10_png"
},
{
"name": "bagbg_png",
"type": "image",
"url": "assets/bag/bagbg.png"
}
]
}
\ No newline at end of file
......@@ -9,6 +9,8 @@
"resource/skins/BackSkin.exml",
"resource/skins/BagSkin.exml",
"resource/skins/BagItemSkin.exml",
"resource/skins/BagItem2Skin.exml",
"resource/skins/BagItemSkin.exml",
"resource/skins/BagSkin.exml",
"resource/skins/Blood2Skin.exml",
"resource/skins/BloodSkin.exml",
......
<?xml version="1.0" encoding="utf-8"?>
<e:Skin class="BagItem2Skin" width="508" height="225" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<w:Config id="16e01911ccd"/>
<e:Image width="508" height="225" source="{data.url}"/>
</e:Skin>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<e:Skin class="BagItemSkin" width="400" height="300" xmlns:e="http://ns.egret.com/eui">
<e:Skin class="BagItemSkin" width="153" height="152" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Image source="bag_item_bg_png"/>
<e:Image id="hammer" source="bag_icon2_png" horizontalCenter="-6" verticalCenter="0.5" visible="false"/>
<e:Image id="boom" source="bag_icon1_png" horizontalCenter="0" verticalCenter="0" visible="false"/>
<e:Image id="change" source="bag_icon3_png" horizontalCenter="0" verticalCenter="0" visible="false"/>
<e:Label id="nums" text="15" textColor="0xc33700" right="10" bottom="10"/>
</e:Skin>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<e:Skin class="BagQuitSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui">
<e:Image source="bag退出弹窗_png" y="211" horizontalCenter="0"/>
<e:Button id="closeBtn" label="" x="611.94" y="201.92">
<e:skinName>
<e:Skin states="up,down,disabled" xmlns:w="http://ns.egret.com/wing">
<e:Image width="100%" height="100%" source="closeCommonBtn_png" source.down="closeCommonBtn_png" source.disabled="closeCommonBtn_png"/>
<e:Label id="labelDisplay" horizontalCenter="0" verticalCenter="0"/>
</e:Skin>
</e:skinName>
</e:Button>
<e:Button label="" x="158" y="476">
<e:skinName>
<e:Skin states="up,down,disabled">
......@@ -25,4 +17,12 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Button id="closeBtn" label="" x="611.94" y="201.92">
<e:skinName>
<e:Skin states="up,down,disabled" xmlns:w="http://ns.egret.com/wing">
<e:Image width="100%" height="100%" source="closeCommonBtn_png" source.down="closeCommonBtn_png" source.disabled="closeCommonBtn_png"/>
<e:Label id="labelDisplay" horizontalCenter="0" verticalCenter="0"/>
</e:Skin>
</e:skinName>
</e:Button>
</e:Skin>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<e:Skin class="BagSkin" width="400" height="300" xmlns:e="http://ns.egret.com/eui">
<e:Skin class="BagSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Image source="bagbg_png" y="23.15" horizontalCenter="0"/>
<e:Group id="group1" x="94" y="269" visible="false">
<e:Image source="bag我的道具_png" y="0" x="0"/>
<e:Image id="btn1" source="bagbtn我的奖券_png" x="49.44" y="6"/>
<e:Image id="shopbtn" source="bag按钮 副本 9_png" x="132" y="644"/>
<e:List id="list" x="24" y="93.97" itemRendererSkinName="BagItemSkin">
<e:ArrayCollection>
<e:Array>
<e:Object a="null"/>
<e:Object a="null"/>
<e:Object a="null"/>
</e:Array>
</e:ArrayCollection>
<e:layout>
<e:HorizontalLayout gap="30"/>
</e:layout>
</e:List>
</e:Group>
<e:Group id="group2" x="94" y="269">
<e:Image y="0" x="0" source="bag我的奖券_png"/>
<e:Image id="btn2" x="297.41" y="6" source="bagbtn我的道具_png"/>
<e:Image id="recordbtn" source="bag按钮 副本 10_png" y="644" x="132"/>
<e:Scroller width="508" y="102" horizontalCenter="0" height="487">
<e:Group>
<e:List id="list2" itemRendererSkinName="BagItem2Skin" scaleX="1" scaleY="1">
<e:ArrayCollection>
<e:Array>
<e:Object a="null" url="http://yun.duiba.com.cn/db_games/1022/111.png"/>
<e:Object a="null" url="http://yun.duiba.com.cn/db_games/1022/111.png"/>
<e:Object a="null" url="http://yun.duiba.com.cn/db_games/1022/111.png"/>
</e:Array>
</e:ArrayCollection>
<e:layout>
<e:VerticalLayout gap="20"/>
</e:layout>
</e:List>
</e:Group>
</e:Scroller>
</e:Group>
<e:Button id="closeBtn" label="" x="601.94" y="223.92">
<e:skinName>
<e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="closeCommonBtn_png" source.down="closeCommonBtn_png" source.disabled="closeCommonBtn_png"/>
<e:Label id="labelDisplay" horizontalCenter="0" verticalCenter="0"/>
</e:Skin>
</e:skinName>
</e:Button>
</e:Skin>
\ No newline at end of file
......@@ -665,7 +665,7 @@ export default class MapScene extends Scene {
this['musicOffBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_music, this);
this['musicBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_music, this);
this['recordBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
window.location.href = window['__link__']
PanelCtrl.instance.show('bag');
}, this);
// 消消乐查询信息
......
import Panel from "../../libs/new_wx/components/Panel";
import PanelCtrl from "../../libs/new_wx/ctrls/panelCtrl";
import BagItemRenderer from "./bag/BagItemRenderer";
import BagIte2mRenderer from "./bag/BagItemRenderer2";
export default class BagPanel extends Panel {
list:eui.List;
list2:eui.List;
start(data) {
super.start();
this.showlog();
this['group1'].visible = false;
this['group2'].visible = true;
this['btn1'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
this['group1'].visible = false;
this['group2'].visible = true;
}, this);
this['btn2'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
this['group1'].visible = true;
this['group2'].visible = false;
}, this);
this['recordbtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
window.location.href = window['__link__'];
}, this);
this['shopbtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
PanelCtrl.instance.show('Shop')
}, this);
this.list.itemRenderer=BagItemRenderer;
this.list.dataProvider = new eui.ArrayCollection([
{
type:'hammer',
nums:"1"
},
{
type:'boom',
nums:"1"
},
{
type:'change',
nums:"1"
}
]);
this.list2.itemRenderer=BagIte2mRenderer;
this.list2.dataProvider = new eui.ArrayCollection([
{
url:"http://yun.duiba.com.cn/db_games/1022/111.png"
},
{
url:"http://yun.duiba.com.cn/db_games/1022/111.png"
},
{
url:"http://yun.duiba.com.cn/db_games/1022/111.png"
},
{
url:"http://yun.duiba.com.cn/db_games/1022/111.png"
}
]);
}
showlog(){
showlog() {
// NetManager.ins.showLog(getlogItem(3));
// NetManager.ins.showLog(getlogItem(4));
}
......@@ -18,9 +69,9 @@ export default class BagPanel extends Panel {
}
onTapInvite() {
}
protected get closeBtns(): eui.Button[] { return [this['closeBtn'],this['closeBtn2']] }
protected get closeBtns(): eui.Button[] { return [this['closeBtn'], this['closeBtn2']] }
get skinKey() { return 'Bag' }
}
\ No newline at end of file
import getSkinPath from "../../../libs/new_wx/utils/getSkinPath";
export default class BagItemRenderer extends eui.ItemRenderer {
constructor() {
super();
this.skinName = getSkinPath('BagItem');
}
dataChanged() {
this['hammer'].visible=false;
this['boom'].visible=false;
this['change'].visible=false;
this[this.data.type].visible=true;
this['nums'].text = this.data.nums;
}
}
\ No newline at end of file
import getSkinPath from "../../../libs/new_wx/utils/getSkinPath";
export default class BagIte2mRenderer extends eui.ItemRenderer {
constructor() {
super();
this.skinName = getSkinPath('BagItem2');
}
dataChanged() {
}
}
\ No newline at end of file
This diff is collapsed.
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