Commit 1774e2bb authored by wildfirecode's avatar wildfirecode

1

parent 3275d414
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<script src="libs/pad-zeropadding.js"></script> <script src="libs/pad-zeropadding.js"></script>
<img id="pic" style="width:100%;position: absolute;z-index: 999;display: none;" /> <img id="pic" style="width:100%;position: absolute;z-index: 999;display: none;" />
<script> <script>
localStorage.clear(); // localStorage.clear();
window['total_level'] = 18 + 13 * 4; window['total_level'] = 18 + 13 * 4;
window['last_level'] = 69;//必须大于等于total_level window['last_level'] = 69;//必须大于等于total_level
......
...@@ -83,6 +83,10 @@ ...@@ -83,6 +83,10 @@
{ {
"keys": "signitem_png,signicon5_png,signicon4_png,signicon3_png,signicon2_png,signbtn4_png,signbtn3_png,signbtn2_png,signbtn1_png,signbg_png,sign_line2_png,sign_line_png,sign_light_png,sign_icon1_png", "keys": "signitem_png,signicon5_png,signicon4_png,signicon3_png,signicon2_png,signbtn4_png,signbtn3_png,signbtn2_png,signbtn1_png,signbg_png,sign_line2_png,sign_line_png,sign_light_png,sign_icon1_png",
"name": "sign" "name": "sign"
},
{
"name": "preload",
"keys": "signicon_blood_png,signprize_numsbg_png,singprize体力_png,signprize元宝_png"
} }
], ],
"resources": [ "resources": [
...@@ -1830,6 +1834,26 @@ ...@@ -1830,6 +1834,26 @@
"url": "assets/sign/sign_light.png", "url": "assets/sign/sign_light.png",
"type": "image", "type": "image",
"name": "sign_light_png" "name": "sign_light_png"
},
{
"name": "signicon_blood_png",
"type": "image",
"url": "assets/sign/signicon_blood.png"
},
{
"name": "signprize_numsbg_png",
"type": "image",
"url": "assets/signprize/signprize_numsbg.png"
},
{
"name": "singprize体力_png",
"type": "image",
"url": "assets/signprize/singprize体力.png"
},
{
"name": "signprize元宝_png",
"type": "image",
"url": "assets/signprize/signprize元宝.png"
} }
] ]
} }
\ No newline at end of file
...@@ -10,7 +10,9 @@ ...@@ -10,7 +10,9 @@
<e:Image id="money" source="signicon2_png" x="90" y="67.5" visible="false"/> <e:Image id="money" source="signicon2_png" x="90" y="67.5" visible="false"/>
<e:Image id="hammer" source="signicon3_png" x="96" y="53.23" visible="false"/> <e:Image id="hammer" source="signicon3_png" x="96" y="53.23" visible="false"/>
<e:Image id="boom" source="signicon4_png" x="103" y="55" visible="false"/> <e:Image id="boom" source="signicon4_png" x="103" y="55" visible="false"/>
<e:Image id="steps" source="signicon5_png" x="104" y="57"/> <e:Image id="steps" source="signicon5_png" x="104" y="57" visible="false"/>
<e:Image id="blood" x="98.04" y="60.35" source="signicon_blood_png"/>
<e:Image id="random" x="98.73" y="58.38" source="signicon_blood_png"/>
<e:Button id="btn1" label="" x="364" y="65" visible="false"> <e:Button id="btn1" label="" x="364" y="65" visible="false">
<e:skinName> <e:skinName>
<e:Skin states="up,down,disabled"> <e:Skin states="up,down,disabled">
......
...@@ -2,7 +2,14 @@ ...@@ -2,7 +2,14 @@
<e:Skin class="SignPrizeSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing"> <e:Skin class="SignPrizeSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<w:Config id="16d5c2563cb"/> <w:Config id="16d5c2563cb"/>
<e:Image source="singprizebg_png" y="20" horizontalCenter="0"/> <e:Image source="singprizebg_png" y="20" horizontalCenter="0"/>
<e:Button id="closeBtn" label="" x="604" y="164"> <e:Image id="img0" y="297" touchEnabled="true" source="{data.img}" width="512" height="240" scaleX="1" scaleY="1" horizontalCenter="0" visible="false"/>
<e:Image id="money" source="signprize元宝_png" y="234.88" horizontalCenter="0" visible="false"/>
<e:Image id="blood" source="singprize体力_png" y="233.8" horizontalCenter="0"/>
<e:Group id="numsgroup" x="400.38" y="282.24" visible="false">
<e:Image id="numsbg" source="signprize_numsbg_png" x="0" y="0"/>
<e:Label id="nums" text="X8" size="22" horizontalCenter="0" verticalCenter="0" verticalAlign="middle" textAlign="center"/>
</e:Group>
<e:Button id="closeBtn" label="" x="613.12" y="160.96" locked="true">
<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"/>
...@@ -10,7 +17,7 @@ ...@@ -10,7 +17,7 @@
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </e:Button>
<e:Button id="close2Btn" label="" y="564" horizontalCenter="0"> <e:Button id="close2Btn" label="" y="564" horizontalCenter="0" locked="true">
<e:skinName> <e:skinName>
<e:Skin states="up,down,disabled"> <e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="signprize_btn_png" source.down="signprize_btn_png" source.disabled="signprize_btn_png"/> <e:Image width="100%" height="100%" source="signprize_btn_png" source.down="signprize_btn_png" source.disabled="signprize_btn_png"/>
...@@ -18,5 +25,4 @@ ...@@ -18,5 +25,4 @@
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </e:Button>
<e:Image id="img" y="297" touchEnabled="true" source="{data.img}" width="512" height="240" scaleX="1" scaleY="1" horizontalCenter="0"/>
</e:Skin> </e:Skin>
\ No newline at end of file
...@@ -49,14 +49,14 @@ export default class SignPanel extends Panel { ...@@ -49,14 +49,14 @@ export default class SignPanel extends Panel {
this.list.itemRenderer = SignItem; this.list.itemRenderer = SignItem;
const configs = [ const configs = [
{ nums: 1, type: 'object' }, { nums: 1, type: 'object' },//券
{ nums: 2, type: 'money' }, { nums: 2, type: 'money' },//元宝
{ nums: 3, type: 'hammer' }, { nums: 3, type: 'hammer' },
{ nums: 4, type: 'boom' }, { nums: 4, type: 'boom' },
{ nums: 5, type: 'steps' }, { nums: 5, type: 'steps' },
{ nums: 6, type: 'object' }, { nums: 6, type: 'blood' }, //体力
{ nums: 7, type: 'money' } { nums: 7, type: 'random' } //随机
] ];
const func = (data,item:SignItem) => { const func = (data,item:SignItem) => {
NetManager.ins.doSign((s)=>{ NetManager.ins.doSign((s)=>{
if(s) { if(s) {
...@@ -72,8 +72,7 @@ export default class SignPanel extends Panel { ...@@ -72,8 +72,7 @@ export default class SignPanel extends Panel {
} }
}, window['signActivityId']) }, window['signActivityId'])
console.log(data); console.log(data);
};
}
const list: any[] = [{}, {}, {}, {}, {}, {}, {}]; const list: any[] = [{}, {}, {}, {}, {}, {}, {}];
list.forEach((ele, index) => { list.forEach((ele, index) => {
ele.index = index; ele.index = index;
......
...@@ -11,9 +11,11 @@ import { changeMapScene } from "../startScene/StartScene"; ...@@ -11,9 +11,11 @@ import { changeMapScene } from "../startScene/StartScene";
export default class SignPrizePanel extends Panel { export default class SignPrizePanel extends Panel {
_level; _level;
start(data) { start(data) {
super.start(); super.start();
//体力,元宝,道具,大牌券
setGray(this['pica']); setGray(this['pica']);
setGray(this['picb']); setGray(this['picb']);
setGray(this['picc']); setGray(this['picc']);
...@@ -48,6 +50,7 @@ export default class SignPrizePanel extends Panel { ...@@ -48,6 +50,7 @@ export default class SignPrizePanel extends Panel {
showlog() { showlog() {
NetManager.ins.showLog(getlogItem(15)); NetManager.ins.showLog(getlogItem(15));
} }
async setStar(nums: number) { async setStar(nums: number) {
this['pic1'].visible = this['pic2'].visible = this['pic3'].visible = false; this['pic1'].visible = this['pic2'].visible = this['pic3'].visible = false;
this['light'].visible = false; this['light'].visible = false;
......
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