Commit e1f8d251 authored by zjz1994's avatar zjz1994

Merge branch 'dev' of http://gitlab2.dui88.com/wanghongyuan/xiaoxiaole into dev

# Conflicts:
#	egret/resource/default.res.json
parents e1b36368 28423b55
......@@ -127,8 +127,8 @@
// localStorage.clear();
window['imgver'] = '11112';
//top 8 ,repeat 22 , bottom 3
window['total_level'] = 8 + 3 + 22 * 25;
window['last_level'] = 550;
window['total_level'] = 8 + 3 + 22 * 26;
window['last_level'] = 575;
var sharePic = document.getElementById('pic');
sharePic.onclick = function () {
......
......@@ -403,6 +403,7 @@ export default class MainBase extends eui.UILayer {
"lionMsgBg",
"guideBox",
"msgTri",
"arrow",
"guideOver",
"guideLove",
"guideLevel",
......
egret/resource/assets/map/guideOver.png

34.8 KB | W: | H:

egret/resource/assets/map/guideOver.png

15.4 KB | W: | H:

egret/resource/assets/map/guideOver.png
egret/resource/assets/map/guideOver.png
egret/resource/assets/map/guideOver.png
egret/resource/assets/map/guideOver.png
  • 2-up
  • Swipe
  • Onion skin
egret/resource/assets/map/msgTri.png

919 Bytes | W: | H:

egret/resource/assets/map/msgTri.png

2.99 KB | W: | H:

egret/resource/assets/map/msgTri.png
egret/resource/assets/map/msgTri.png
egret/resource/assets/map/msgTri.png
egret/resource/assets/map/msgTri.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -21,7 +21,7 @@
"name": "buy3"
},
{
"keys": "宝箱_png,宝箱1_png,宝箱2_png,宝箱3_png,宝箱bg_png,宝箱btn_png,道具_png,关闭 拷贝_png,光 副本 4_png,设置_png,设置bg_png,声音_png,声音关闭_png,狮子_png,退出_png,问题_png,无星星_png,星星_png,星星bg_png,音乐_png,音乐关闭_png,有星星_png,有星星2_png,有星星3_png,元宝bg_png,ad_icon_png,animal1_png,avatar_png,friend_avatar_png,guideBox_png,guideLevel_png,guideLove_png,guideMoney_png,guideOver_png,icon_png,iconbg_png,icongray_png,invite_icon_png,invite_txtbg_png,lionMsgBg_png,map_signicon_png,map1_jpg,map2_jpg,map2+_png,map2+bg_png,map2红包大作战_png,map2热门引导_png,map2周一红包雨_png,map3_jpg,map大转盘_png,map刮现金红包_png,map今日可领_png,map明日可领_png,maphot_png,msgTri_png,namebg_png,progress1_png,progress2_png,recordbtn_png,taskicon_png,map2+bg2_png,mapredbagicom_png,maplight2_png,taskBtn_png,txtbg_blue_png,txtbg_orange_png,txtbg_purple_png,mapredbagicom2_png,iconnow_png",
"keys": "宝箱_png,宝箱1_png,宝箱2_png,宝箱3_png,宝箱bg_png,宝箱btn_png,道具_png,关闭 拷贝_png,光 副本 4_png,设置_png,设置bg_png,声音_png,声音关闭_png,狮子_png,退出_png,问题_png,无星星_png,星星_png,星星bg_png,音乐_png,音乐关闭_png,有星星_png,有星星2_png,有星星3_png,元宝bg_png,ad_icon_png,animal1_png,avatar_png,friend_avatar_png,guideBox_png,guideLevel_png,guideLove_png,guideMoney_png,guideOver_png,icon_png,iconbg_png,icongray_png,invite_icon_png,invite_txtbg_png,lionMsgBg_png,map_signicon_png,map1_jpg,map2_jpg,map2+_png,map2+bg_png,map2红包大作战_png,map2热门引导_png,map2周一红包雨_png,map3_jpg,map大转盘_png,map刮现金红包_png,map今日可领_png,map明日可领_png,maphot_png,msgTri_png,namebg_png,progress1_png,progress2_png,recordbtn_png,taskicon_png,map2+bg2_png,mapredbagicom_png,maplight2_png,taskBtn_png,txtbg_blue_png,txtbg_orange_png,txtbg_purple_png,mapredbagicom2_png,iconnow_png,arrow_png",
"name": "map"
},
{
......@@ -89,7 +89,7 @@
"name": "friend"
},
{
"keys": "invite_invite_png,invite_help_png,invite_btn_png,invite_bg_png,invitePrize_btn_png,invitePrize_bg_png,invitePrize_game_btn_png,invateCut_bg_png,invateCut_btn_png,invite_wx_tip_png,invite_rule_bg_png,invitebg2_png",
"keys": "invite_invite_png,invite_help_png,invite_btn_png,invite_bg_png,invitePrize_btn_png,invitePrize_bg_png,invitePrize_game_btn_png,invateCut_btn_png,invite_wx_tip_png,invitebg2_png,invateCut_bg_png,invite_rule_bg_png",
"name": "invite"
},
{
......@@ -113,11 +113,7 @@
"name": "inviteprizepanel"
},
{
"keys": "invite_rule_bg_png",
"name": "inviterulepanel"
},
{
"keys": "invateCut_btn_png,invateCut_bg_png",
"keys": "invateCut_btn_png",
"name": "invitecuttimepanel"
},
{
......@@ -181,7 +177,7 @@
"name": "hbcuttime"
},
{
"keys": "hbPrize_bg_png,hbPrize_btn_png",
"keys": "hbPrize_bg_png,hbPrize_btn_png,hbPrize_money_png,hbPrize_blood_png,hbPrize_icon1_png,hbPrize_icon3_png,hbPrize_icon2_png",
"name": "hbprize"
},
{
......@@ -1155,11 +1151,6 @@
"type": "image",
"name": "startpanel通关条件_png"
},
{
"url": "assets/invite/rule/invite_rule_bg.png",
"type": "image",
"name": "invite_rule_bg_png"
},
{
"url": "assets/invite/prize/invitePrize_btn.png",
"type": "image",
......@@ -1175,11 +1166,6 @@
"type": "image",
"name": "invitePrize_game_btn_png"
},
{
"url": "assets/invite/cutTime/invateCut_bg.png",
"type": "image",
"name": "invateCut_bg_png"
},
{
"url": "assets/invite/cutTime/invateCut_btn.png",
"type": "image",
......@@ -5200,6 +5186,46 @@
"name": "blooduanm_png",
"type": "image",
"url": "assets/blood/blooduanm.png"
},
{
"url": "assets/invite/cutTime/invateCut_bg.png",
"type": "image",
"name": "invateCut_bg_png"
},
{
"url": "assets/invite/rule/invite_rule_bg.png",
"type": "image",
"name": "invite_rule_bg_png"
},
{
"url": "assets/map/arrow.png",
"type": "image",
"name": "arrow_png"
},
{
"url": "assets/hbPrize/hbPrize_money.png",
"type": "image",
"name": "hbPrize_money_png"
},
{
"url": "assets/hbPrize/hbPrize_blood.png",
"type": "image",
"name": "hbPrize_blood_png"
},
{
"url": "assets/hbPrize/hbPrize_icon1.png",
"type": "image",
"name": "hbPrize_icon1_png"
},
{
"url": "assets/hbPrize/hbPrize_icon3.png",
"type": "image",
"name": "hbPrize_icon3_png"
},
{
"url": "assets/hbPrize/hbPrize_icon2.png",
"type": "image",
"name": "hbPrize_icon2_png"
}
]
}
\ No newline at end of file
......@@ -3,13 +3,17 @@
xmlns:w="http://ns.egret.com/wing">
<e:Image y="-145.5" source="hbPrize_bg_png" horizontalCenter="1"/>
<e:Image id="img" width="508" height="225" source="{data.url}" y="518.96" horizontalCenter="0"/>
<e:Image id="prop" scaleX="1" scaleY="1" horizontalCenter="-70.5" source="taskPrize_money_png" verticalCenter="0.5"/>
<e:Group id="numsgroup" x="376.42" anchorOffsetX="0" width="188" anchorOffsetY="0" height="62" verticalCenter="0">
<e:Label id="nums" text="×8" size="48" verticalCenter="0" verticalAlign="middle" textAlign="center" fontFamily="FZY3JW" textColor="0xC17343" left="0" bold="true"/>
</e:Group>
<e:Image id="money" source="signprize元宝_png" y="491.4" scaleX="0.8" scaleY="0.8" horizontalCenter="-3" visible="false"/>
<e:Image id="blood" source="singprize体力_png" y="462" horizontalCenter="0" visible="false"/>
<e:Group id="numsgroup" x="411.02" y="501.56" scaleX="1.5" scaleY="1.5" visible="false">
<e:Group id="numsgroup111" x="411.02" y="501.56" scaleX="1.5" scaleY="1.5" visible="false">
<e:Image id="numsbg" source="signprize_numsbg_png" x="0" y="0" scaleX="1" scaleY="1"/>
<e:Label id="propnums" text="X8" size="22" horizontalCenter="0" verticalCenter="0" verticalAlign="middle" textAlign="center"/>
</e:Group>
<e:Button id="ok_btn" label="" y="834" anchorOffsetX="187" anchorOffsetY="63" horizontalCenter="0">
<e:Button id="ok_btn" label="" y="821.84" anchorOffsetX="187" anchorOffsetY="63" horizontalCenter="0">
<e:skinName>
<e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="hbPrize_btn_png" source.down="hbPrize_btn_png" source.disabled="hbPrize_btn_png"/>
......@@ -17,7 +21,7 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Button id="closeBtn" label="" x="597" y="282.33">
<e:Button id="closeBtn" label="" x="597" y="277.33">
<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"/>
......@@ -25,6 +29,6 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Label text="不愧是卓越的手速达人!" y="448" textColor="0xf54500" fontFamily="FZY3JW" size="36" horizontalCenter="0"/>
<e:Label id="tipLabel" text="一共抢到18个红包" y="398" textColor="0xF54500" fontFamily="FZY3JW" size="36" horizontalCenter="0"/>
<e:Label text="不愧是卓越的手速达人!" y="448" fontFamily="FZY3JW" size="36" horizontalCenter="0" textColor="0xc17343"/>
<e:Label id="tipLabel" text="一共抢到18个红包" y="398" fontFamily="FZY3JW" size="36" horizontalCenter="0" textColor="0xc17343"/>
</e:Skin>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<e:Skin class="InviteSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui"
xmlns:w="http://ns.egret.com/wing">
<e:Image y="216.33" source="invateCut_bg_png" horizontalCenter="0"/>
<e:BitmapLabel id="cutTimeLabel" y="396.33" font="cutTimeFont_fnt" text="00:00:00" letterSpacing="10" horizontalCenter="0"/>
<e:Button id="closeBtn" label="" x="615" y="208.33">
<e:Image y="239.33" source="invateCut_bg_png" horizontalCenter="0"/>
<e:BitmapLabel id="cutTimeLabel" y="408.33" text="00时00分00" letterSpacing="10" horizontalCenter="0" font="hbCutTimeFont_fnt"/>
<e:Button id="closeBtn" label="" x="600" y="239.33">
<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"
......@@ -12,7 +12,7 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Button id="ok_btn" label="" y="596" anchorOffsetX="150" anchorOffsetY="48" horizontalCenter="0">
<e:Button id="ok_btn" label="" y="595" anchorOffsetX="150" anchorOffsetY="48" horizontalCenter="0">
<e:skinName>
<e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="invateCut_btn_png"/>
......@@ -20,4 +20,5 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Component y="695" skinName="ADSmallSkin" anchorOffsetX="0" anchorOffsetY="0" horizontalCenter="0" visible="false"/>
</e:Skin>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<e:Skin class="InviteSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui"
xmlns:w="http://ns.egret.com/wing">
<e:Image y="45.33" horizontalCenter="0" source="invitePrize_bg_png"/>
<e:Image id="prizeImg" y="426.77" source="" horizontalCenter="0" width="510" height="228"/>
<e:Button id="closeBtn" label="" x="624" y="313.33">
xmlns:w="http://ns.egret.com/wing" xmlns:ns1="*">
<e:Component y="910" skinName="ADSmallSkin" anchorOffsetX="0" anchorOffsetY="0" horizontalCenter="0" visible="false"/>
<e:Image y="-108.73" source="invitePrize_bg_png" horizontalCenter="0"/>
<e:Image id="prizeImg" y="455.77" source="" horizontalCenter="0" width="510" height="228"/>
<e:Button id="closeBtn" label="" x="612" y="311.77">
<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"
......@@ -12,7 +13,7 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Button id="ok_btn" label="" y="760" anchorOffsetX="138.5" anchorOffsetY="56.5" x="236.5">
<e:Button id="ok_btn" label="" y="790" anchorOffsetX="138.5" anchorOffsetY="56.5" x="236.5">
<e:skinName>
<e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="invitePrize_btn_png"/>
......@@ -20,7 +21,7 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Button id="game_btn" label="" y="760" anchorOffsetX="139" anchorOffsetY="56.5" x="527">
<e:Button id="game_btn" label="" y="790" anchorOffsetX="139" anchorOffsetY="56.5" x="527">
<e:skinName>
<e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="invitePrize_game_btn_png"/>
......
<?xml version="1.0" encoding="utf-8"?>
<e:Skin class="RuleSkin" width="750" height="1624" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Rect left="0" bottom="0" top="0" right="0" fillColor="0x000000" fillAlpha="0.7"/>
<e:Image id="ruleBg" horizontalCenter="0.5" verticalCenter="-231" source="invite_rule_bg_png"/>
<e:Scroller id="scroller" width="545" height="527" y="398.2" horizontalCenter="0.5" anchorOffsetY="0">
<e:Group id="group" width="100%" x="-1.26" y="36" anchorOffsetY="0" height="515">
<e:Image id="ruleBg" horizontalCenter="0" verticalCenter="-177" source="invite_rule_bg_png"/>
<e:Scroller id="scroller" width="545" height="534" y="391.2" horizontalCenter="0.5" anchorOffsetY="0">
<e:Group id="group" width="100%" x="0" y="-8" anchorOffsetY="0" height="535">
<e:Label id="labContent" width="100%" text="" lineSpacing="10" size="30" multiline="true" textColor="0xa54615" fontFamily="FZY3JW"/>
<e:layout>
<e:VerticalLayout/>
</e:layout>
</e:Group>
</e:Scroller>
<e:Button id="closeBtn" label="" x="604" y="340">
<e:Button id="closeBtn" label="" x="604.5" y="276">
<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"/>
......
<?xml version="1.0" encoding="utf-8"?>
<e:Skin class="InviteRuleSkin" width="750" height="1624" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Image id="ruleBg" horizontalCenter="0.5" source="inviterulebg_png" y="152"/>
<e:Scroller id="scroller" width="545" x="104.76" height="507" y="377.2">
<e:Group id="group" width="100%">
<e:Image id="ruleBg" horizontalCenter="0" source="inviterulebg_png" y="117.2"/>
<e:Scroller id="scroller" width="545" height="497" y="365.2" anchorOffsetY="0" horizontalCenter="0.5">
<e:Group id="group" width="100%" y="2" x="1" anchorOffsetY="0" height="528">
<e:Label id="labContent" width="100%" text="" lineSpacing="10" size="30" multiline="true" textColor="0xa54615"/>
<e:layout>
<e:VerticalLayout/>
</e:layout>
</e:Group>
</e:Scroller>
<e:Button id="closeBtn" label="" x="614" y="301">
<e:Button id="closeBtn" label="" x="601" y="271.7">
<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"/>
......
......@@ -2,13 +2,13 @@
<e:Skin class="InviteSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui"
xmlns:w="http://ns.egret.com/wing">
<w:Config id="16dd8f58b77" visible="false"/>
<e:Image id="light2" source="invitebg2_png" x="376" y="317" anchorOffsetX="356" anchorOffsetY="296"/>
<e:Image id="light1" source="invitebg2_png" x="376" y="317" anchorOffsetX="356" anchorOffsetY="296"/>
<e:Image y="241.33" horizontalCenter="0" source="invite_bg_png"/>
<e:Group id="con" y="-67"/>
<e:Label text="邀请新玩家闯关可得现金券!" y="381.33" textColor="0xF54500" size="28" horizontalCenter="0" fontFamily="FZY3JW"/>
<e:Image id="prizeImg" y="439.33" horizontalCenter="0.5" source="" width="510" height="228"/>
<e:Button id="closeBtn" label="" x="605" y="227.33">
<e:Image id="light2" source="invitebg2_png" x="376" y="317" anchorOffsetX="356" anchorOffsetY="296" visible="false"/>
<e:Image id="light1" source="invitebg2_png" x="376" y="317" anchorOffsetX="356" anchorOffsetY="296" visible="false"/>
<e:Image y="-103.17" horizontalCenter="0" source="invite_bg_png"/>
<e:Group id="con" y="-67" visible="false"/>
<e:Label text="邀请新玩家闯关可得现金券!" y="381.33" size="28" horizontalCenter="0" fontFamily="FZY3JW" textColor="0xc17343"/>
<e:Image id="prizeImg" y="433.33" source="" width="510" height="228" horizontalCenter="0"/>
<e:Button id="closeBtn" label="" x="604.5" y="312.5">
<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"
......@@ -26,7 +26,7 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Label id="numLabel" text="仅差3人可获得" y="679.33" textColor="0xf54500" size="28" horizontalCenter="0" />
<e:Label id="numLabel" text="仅差3人可获得" y="682.33" size="28" horizontalCenter="0" textColor="0xc17343"/>
<e:Label id="cutTimeLabel" text="将在23:43:21后失效" y="883.33" size="28" textColor="0xffffff" horizontalCenter="0" fontFamily="FZY3JW"/>
<e:Scroller width="545" height="90" y="766.33" anchorOffsetX="0" anchorOffsetY="0" horizontalCenter="0">
<e:Group anchorOffsetX="0">
......
......@@ -10,7 +10,7 @@
<e:Label id="moneyCount" text="×999" x="37.7" size="28" fontFamily="FZY3JW" textColor="0xf25d45" bold="true" verticalCenter="0"/>
</e:Group>
<e:Group id="btnGroup" x="441" width="217" height="91" verticalCenter="0">
<e:Image id="btnImg" source="TaskCenter_doneBtn_png" horizontalCenter="0" verticalCenter="0"/>
<e:Image id="btnImg" horizontalCenter="0" verticalCenter="-1" source="TaskCenter_doneBtn_png"/>
<e:Label id="btnLabel" text="去完成" verticalAlign="middle" textAlign="center" horizontalCenter="0.5" verticalCenter="-4.5" strokeColor="0x7e7e7e" stroke="2" fontFamily="FZY3JW" size="30"/>
</e:Group>
</e:Skin>
\ No newline at end of file
......@@ -12,12 +12,12 @@
</e:skinName>
</e:Button>
<e:Image id="img" y="374.77" touchEnabled="true" width="518" height="243" scaleX="1" scaleY="1" source="{data.url}" horizontalCenter="2" anchorOffsetX="0" anchorOffsetY="0"/>
<e:Image id="money" y="470.02" scaleX="0.7" scaleY="0.7" horizontalCenter="-41.5" source="taskPrize_money_png"/>
<e:Image id="money" y="460.77" scaleX="1" scaleY="1" horizontalCenter="-58.5" source="taskPrize_money_png"/>
<e:Label id="propnums2" text="30" textColor="0x885037" bold="true" y="526.64" width="75" textAlign="right" x="287.6" fontFamily="FZY3JW" visible="false"/>
<e:Image id="blood" y="376.16" source="common_blood_png" scaleX="0.7" scaleY="0.7" horizontalCenter="0" visible="false"/>
<e:Group id="numsgroup" x="380.4" y="468.27" anchorOffsetX="0" width="188" anchorOffsetY="0" height="62">
<e:Group id="numsgroup" x="384.4" y="468.27" anchorOffsetX="0" width="188" anchorOffsetY="0" height="62">
<e:Image id="numsbg" source="signprize_numsbg_png" x="0" y="0" visible="false"/>
<e:Label id="nums" text="X8" size="48" verticalCenter="0" verticalAlign="middle" textAlign="center" fontFamily="FZY3JW" textColor="0xc17343" left="0" bold="true"/>
<e:Label id="nums" text="×8" size="48" verticalCenter="0" verticalAlign="middle" textAlign="center" fontFamily="FZY3JW" textColor="0xc17343" left="0" bold="true"/>
</e:Group>
<e:Label id="tipsLabel" text="继续完成任务可以获得更多元宝哦~" y="632.73" textColor="0xF54500" fontFamily="FZY3JW" size="26" horizontalCenter="0"/>
<e:Group id="btn" y="690" anchorOffsetX="0" width="332.33" anchorOffsetY="0" height="104.33" horizontalCenter="0">
......
......@@ -4,23 +4,25 @@ import { ShowWord } from "../something/uis/ShowWord";
let cacheKey = "happyClear" + window["CFG"].consumerId;
export const getCacheKey=()=>{
export const getCacheKey = () => {
return cacheKey
}
/**
* 读取缓存
*/
export function readCache(key: string = cacheKey, type: string = 'localStorage') {
if (!window[type]) {
if(!window[type]) {
return false;
}
return window[type].getItem(key);
}
/**
* 写缓存
*/
export function writeCache(key: string = cacheKey, value: any = 'true', type: string = 'localStorage') {
if (!window[type]) {
if(!window[type]) {
// trace(Func.replace(SysLang.lang_012, [type]));
return;
}
......@@ -30,10 +32,12 @@ export function writeCache(key: string = cacheKey, value: any = 'true', type: st
const resPath = getResPath();
const parser = new window["SVGA"].Parser();
/**
/**
* 箭头的svga,只加载一次
*/
let arrow: egret.DisplayObjectContainer;
// let arrow: egret.DisplayObjectContainer;
let arrow: eui.Group;
/**
* 地图页面的引导
* 进地图页面先判断缓存,显示界面
......@@ -45,13 +49,14 @@ export class GuideCon extends egret.DisplayObjectContainer {
groups: any[];
couldOver: boolean = false;
timeoutId: number;
tri: egret.Bitmap;
// tri: egret.Bitmap;
showWord: ShowWord;
callback;
constructor(callback) {
super();
this.callback=callback;
this.callback = callback;
var bg: egret.Shape = new egret.Shape();
bg.graphics.beginFill(0x000000, 0.7);
bg.graphics.drawRect(0, 0, 750, 1624);
......@@ -60,26 +65,26 @@ export class GuideCon extends egret.DisplayObjectContainer {
this.addChild(bg);
var board = new egret.Bitmap(RES.getRes("lionMsgBg_png"))
board.x = 30;
board.y = 620;
board.x = 143;
board.y = 737;
board.touchEnabled = true;
board.addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
if (this.couldOver) {
if(this.couldOver) {
clearTimeout(this.timeoutId);
this.couldOver = false;
this.goNext();
}
}, this)
this.addChild(board);
var tri = new egret.Bitmap(RES.getRes("msgTri_png"))
tri.x = 638;
tri.y = 804;
tri.visible = false;
this.tri = tri;
this.addChild(tri);
// var tri = new egret.Bitmap(RES.getRes("msgTri_png"))
// tri.x = 638;
// tri.y = 804;
// tri.visible = false;
// this.tri = tri;
// this.addChild(tri);
this.showWord = new ShowWord();
this.showWord.x = 315;
this.showWord.y = 742;
this.showWord.x = 165;
this.showWord.y = 818;
this.addChild(this.showWord);
this.groups = [];
......@@ -111,8 +116,8 @@ export class GuideCon extends egret.DisplayObjectContainer {
var gg = new egret.DisplayObjectContainer();
gg.addChild(new egret.Bitmap(RES.getRes("道具_png")));
var recordBtn = new egret.Bitmap(RES.getRes("recordbtn_png"));
recordBtn.x = 620.14-615.08;
recordBtn.y = 255.91-128.01;
recordBtn.x = 620.14 - 615.08;
recordBtn.y = 255.91 - 128.01;
gg.addChild(recordBtn);
this.addChild(gg);
this.groups.push(gg);
......@@ -125,38 +130,62 @@ export class GuideCon extends egret.DisplayObjectContainer {
guideOver.y = 1024;
guideOver.touchEnabled = true;
guideOver.addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
if (this.parent) this.parent.removeChild(this);
if(this.parent) this.parent.removeChild(this);
clearTimeout(this.timeoutId);
writeCache();
if(this.callback)this.callback();
if(this.callback) this.callback();
}, this)
this.addChild(guideOver);
//箭头
if (!arrow) {
arrow = new window["SVGA"].EgretMovieClip();
arrow["lockStep"] = true;
this.addChild(arrow);
parser.load(resPath + 'resource/assets/svgas/' + 'guideArrow.svga', (videoItem) => {
arrow["init"](videoItem)
}, function (error) {
// alert(error.message);
})
} else {
// if(!arrow) {
// arrow = new window["SVGA"].EgretMovieClip();
// arrow["lockStep"] = true;
// this.addChild(arrow);
// parser.load(resPath + 'resource/assets/svgas/' + 'guideArrow.svga', (videoItem) => {
// arrow["init"](videoItem)
// }, function(error) {
// // alert(error.message);
// })
// } else {
// this.addChild(arrow);
// }
if(!arrow) {
arrow = new eui.Group();
let arrowImg = new egret.Bitmap(RES.getRes("arrow_png"));
arrow.addChild(arrowImg);
this.addChild(arrow);
egret.Tween.get(arrowImg, {loop: true})
.set({x: 0, y: 0})
.to({x: 0, y: -40}, 350, egret.Ease.quadInOut)
.to({x: 0, y: 0}, 350, egret.Ease.quadInOut);
// this.groups.push(arrowImg);
}
//先都隐藏
for (var i = 0; i < this.groups.length; i++) {
for(var i = 0; i < this.groups.length; i++) {
this.groups[i].visible = false;
}
}
// positions: number[][] = [
// [338, 310, 180],
// [530, 310, 180],
// [369, 380, 0],
// [743, 310, 180],
// [440, 350, -90],
// ];
positions: number[][] = [
[338, 310, 180],
[530, 310, 180],
[369, 380, 0],
[743, 310, 180],
[283, 190, 180],
[473, 190, 180],
[445, 500, 0],
[675, 190, 180],
[440, 350, -90],
];
words: string[] = [
......@@ -166,9 +195,10 @@ export class GuideCon extends egret.DisplayObjectContainer {
"每个关卡收集的星星可用于\n开启宝箱,宝箱里还有更多\n无敌券、品牌券在等你!",
"进入道具商城去兑换道具为\n游戏加分吧~获得的奖励可\n在“我的奖励”中查看哦"
];
/**
* 1开始
* @param step
* @param step
*/
public play(step: number) {
this.curStep = step;
......@@ -182,11 +212,11 @@ export class GuideCon extends egret.DisplayObjectContainer {
this.showWord.play(this.words[step - 1], () => {
this.couldOver = true;
this.tri.visible = true;
egret.Tween.get(this.tri, { loop: true }, null, true)
.set({ y: 804 })
.to({ y: 814 }, 300)
.to({ y: 804 }, 300)
// this.tri.visible = true;
// egret.Tween.get(this.tri, { loop: true }, null, true)
// .set({ y: 804 })
// .to({ y: 814 }, 300)
// .to({ y: 804 }, 300)
this.timeoutId = setTimeout(() => {
clearTimeout(this.timeoutId);
this.couldOver = false;
......@@ -197,8 +227,8 @@ export class GuideCon extends egret.DisplayObjectContainer {
private toggleVisible(step: number) {
for (var i = 0; i < this.groups.length; i++) {
if (i + 1 == step) {
for(var i = 0; i < this.groups.length; i++) {
if(i + 1 == step) {
this.groups[i].visible = true;
} else {
this.groups[i].visible = false
......@@ -208,15 +238,15 @@ export class GuideCon extends egret.DisplayObjectContainer {
private goNext() {
this.curStep++;
if (this.curStep > this.steps) {
if (this.parent) this.parent.removeChild(this);
if(this.curStep > this.steps) {
if(this.parent) this.parent.removeChild(this);
writeCache();
if(this.callback)this.callback();
if(this.callback) this.callback();
} else {
this.play(this.curStep);
//隐藏三角形
this.tri.visible = false;
egret.Tween.removeTweens(this.tri)
// this.tri.visible = false;
// egret.Tween.removeTweens(this.tri)
}
}
......
......@@ -809,23 +809,25 @@ export default class MapScene extends Scene {
}
loadsvga(res) {
if (MapScene['svga']) {
const mv = MapScene['svga']
mv.gotoAndStop(1);
res.data.svga = mv;
PanelCtrl.instance.show('invite', res.data);
return;
}
Loading.instace.show();
loadSvga(getResPath() + 'resource/assets/svgas/invite.svga').then(async (mv: any) => {
console.log('svga', mv)
MapScene['svga'] = mv;
await wait(200);
Loading.instace.hide();
mv.gotoAndStop(1);
res.data.svga = mv;
PanelCtrl.instance.show('invite', res.data);
})
PanelCtrl.instance.show('invite', res.data);
// if (MapScene['svga']) {
// const mv = MapScene['svga']
// mv.gotoAndStop(1);
// res.data.svga = mv;
// PanelCtrl.instance.show('invite', res.data);
// return;
// }
// Loading.instace.show();
// loadSvga(getResPath() + 'resource/assets/svgas/invite.svga').then(async (mv: any) => {
// console.log('svga', mv)
// MapScene['svga'] = mv;
// await wait(200);
// Loading.instace.hide();
// mv.gotoAndStop(1);
// res.data.svga = mv;
// PanelCtrl.instance.show('invite', res.data);
// })
}
//1234变化的情况
updateIconLayout() {
......
......@@ -24,6 +24,7 @@ export default class ADPanel extends Panel {
this.data.img = result.img;
this['adBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
if(result.url=='0')return;
NetManager.ins.clickLog(getlogItem(25));
wait(100).then(()=>{
window.location.href = result.url;
......
......@@ -11,9 +11,18 @@ import { NetManager } from "../../../libs/tw/manager/NetManager";
* 红包雨奖励
*/
export default class HbPrize extends Panel {
public ok_btn: eui.Button;
public closeBtn: eui.Button;
public tipLabel: eui.Label;
public img:eui.Image;
public prop:eui.Image;
public numsgroup:eui.Group;
public nums:eui.Label;
public money:eui.Image;
public blood:eui.Image;
public numsgroup111:eui.Group;
public numsbg:eui.Image;
public propnums:eui.Label;
public ok_btn:eui.Button;
public closeBtn:eui.Button;
public tipLabel:eui.Label;
constructor(data) {
super();
......@@ -33,24 +42,26 @@ export default class HbPrize extends Panel {
updateOption(option: any) {
const { categoryType, img, num, propType, realValue } = option;// 2次数 3道具 4元宝 5实物 6优惠券 7虚拟商品
this['propnums'].text = 'x1';
this['propnums'].text = '×1';
if (num)
this['propnums'].text = 'x' + num;
this['propnums'].text = '×' + num;
switch (categoryType) {
case 2:
this['blood'].visible = true;
this.prop.source = 'hbPrize_blood_png';
this['numsgroup'].visible = true;
// this['blood'].visible = true;
break;
case 3:
this.prop.source = `hbPrize_icon${propType}_png`;
this['numsgroup'].visible = true;
this['img'].visible = true;
this.data.url = `turnprize_icon${propType}_png`;
// this['img'].visible = true;
break;
case 4:
this.prop.source = 'hbPrize_money_png';
this['numsgroup'].visible = true;
this['money'].visible = true;
this['propnums'].text = 'x' + realValue;
// this['money'].visible = true;
this['propnums'].text = '×' + realValue;
break;
default:
this['img'].visible = true;
......
......@@ -69,7 +69,7 @@ export default class InviteCutTimePanel extends Panel {
this.timer.addEventListener(egret.TimerEvent.TIMER, this.cutTimer, this);
this.timer.start();
this.cutTimer();
addAdComp(84, 726.33, this,38);
addAdComp(84, 695, this,38);
}
private cutTimer() {
......@@ -80,7 +80,7 @@ export default class InviteCutTimePanel extends Panel {
this.timer.stop();
this.hidePanel();
}
this.cutTimeLabel.text = `${timer.hour}:${timer.min}:${timer.sec}`;
this.cutTimeLabel.text = `${timer.hour}${timer.min}${timer.sec}`;
}
private convertTime(time: number) {
......
......@@ -5,7 +5,7 @@ import { NetManager } from "../../libs/tw/manager/NetManager";
import { iswx } from "../iswx";
import Utils from "../Utils";
import InviteRulePanel from "./InviteRulePanel";
import wait from "../../libs/new_tc/wait";
// import wait from "../../libs/new_tc/wait";
import { getlogItem } from "../Main";
import { showShareCodePanel, CodeChannels } from "./ShareCodePanel";
......@@ -30,17 +30,17 @@ export default class InvitePanel extends Panel {
async start(data) {
super.start();
this.showlog();
this['light1'].visible = this['light2'].visible = false;
this['con'].addChild(this.data.svga);
this.data.svga.gotoAndPlay(1, true);
this.data.svga.once(egret.Event.COMPLETE, () => {
this.data.svga.stop(1);
}, this);
setTimeout(() => {
this.playBgAni();
}, 500);
// this['light1'].visible = this['light2'].visible = false;
// this['con'].addChild(this.data.svga);
// this.data.svga.gotoAndPlay(1, true);
// this.data.svga.once(egret.Event.COMPLETE, () => {
// this.data.svga.stop(1);
// }, this);
//
// setTimeout(() => {
// this.playBgAni();
// }, 500);
// wait(500).then(()=>{
// loadSvga2(
// ,
......@@ -51,12 +51,12 @@ export default class InvitePanel extends Panel {
}
playBgAni() {
this['light1'].visible = this['light2'].visible = true;
const time = 7000;
egret.Tween.get(this['light1'], { loop: true }).to({ rotation: 360 }, time);
egret.Tween.get(this['light2'], { loop: true }).to({ rotation: -360 }, time);
}
// playBgAni() {
// this['light1'].visible = this['light2'].visible = true;
// const time = 7000;
// egret.Tween.get(this['light1'], { loop: true }).to({ rotation: 360 }, time);
// egret.Tween.get(this['light2'], { loop: true }).to({ rotation: -360 }, time);
// }
showlog() {
// NetManager.ins.showLog(getlogItem(3));
......
......@@ -66,7 +66,7 @@ export default class InvitePrizePanel extends Panel {
initUI() {
this.prizeImg.source = this.data.prizeImg;
addAdComp(84, 845.33, this,38);
addAdComp(84, 910, this,38);
}
protected get closeBtns(): eui.Button[] {
......
import { ChapterData } from "../interface/ChapterData";
//551-575
export const Chapters22: ChapterData[] = [
]
......@@ -23,6 +23,7 @@ import { Chapters18 } from "./Chapter18";
import { Chapters19 } from "./Chapter19";
import { Chapters20 } from "./Chapter20";
import { Chapters21 } from "./Chapter21";
import { Chapters22 } from "./Chapter22";
//所有的关卡
const chapters: ChapterData[] = [].concat(
......@@ -47,6 +48,7 @@ const chapters: ChapterData[] = [].concat(
Chapters19,
Chapters20,
Chapters21,
Chapters22,
)
// console.log(chapters)
chapters.forEach((chapter,index) => {
......
......@@ -6,9 +6,9 @@ export class ShowWord extends egret.DisplayObjectContainer {
constructor() {
super();
this.showText = new egret.TextField();
this.showText.size = 28;
this.showText.textColor = 0x000000;
this.showText.width = 410;
this.showText.size = 24;
this.showText.textColor = 0xc17343;
this.showText.width = 380;
this.showText.textAlign = egret.HorizontalAlign.LEFT;
this.showText.lineSpacing = 10;
this.addChild(this.showText);
......
......@@ -9,11 +9,11 @@
"advertList":[
{
"img":"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg",
"url":"Http://www.baidu.com"
"url":"0"
},
{
"img":"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg",
"url":"Http://www.baidu.com"
"url":"0"
}
]
},
......@@ -22,11 +22,11 @@
"advertList":[
{
"img":"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg",
"url":"Http://www.baidu.com"
"url":"0"
},
{
"img":"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg",
"url":"Http://www.baidu.com"
"url":"0"
}
]
},
......@@ -35,11 +35,11 @@
"advertList":[
{
"img":"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg",
"url":"Http://www.baidu.com"
"url":"0"
},
{
"img":"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg",
"url":"Http://www.baidu.com"
"url":"0"
}
]
}
......
......@@ -2633,8 +2633,262 @@
"levelNum": 524,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 525,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 526,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 527,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 528,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 529,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 530,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 531,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 532,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 533,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 534,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 535,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 536,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 537,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 538,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 539,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 540,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 541,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 542,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 543,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 544,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 545,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 546,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 547,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 548,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 549,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 550,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 551,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 552,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 553,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 554,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 555,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 556,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 557,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 558,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 559,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 560,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 561,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 562,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 563,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 564,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 565,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 566,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 567,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 568,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 569,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 570,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 571,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 572,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 573,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 574,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 575,
"maxScore": 47440,
"stars": 1
}
],
"remainProp": [
{
......@@ -2650,7 +2904,7 @@
"num": 3
}
],
"remainEnargy": 1,
"remainEnargy": 99,
"askForEnergy": false,
"canReceiveTreasureBoxNum": 10,
"nextRangeStarsNum": 150
......
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