Commit 38fa88e1 authored by 邱旭's avatar 邱旭

1

parent 9d4d0022
...@@ -403,6 +403,7 @@ export default class MainBase extends eui.UILayer { ...@@ -403,6 +403,7 @@ export default class MainBase extends eui.UILayer {
"lionMsgBg", "lionMsgBg",
"guideBox", "guideBox",
"msgTri", "msgTri",
"arrow",
"guideOver", "guideOver",
"guideLove", "guideLove",
"guideLevel", "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 @@ ...@@ -21,7 +21,7 @@
"name": "buy3" "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" "name": "map"
}, },
{ {
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
"name": "friend" "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" "name": "invite"
}, },
{ {
...@@ -113,11 +113,7 @@ ...@@ -113,11 +113,7 @@
"name": "inviteprizepanel" "name": "inviteprizepanel"
}, },
{ {
"keys": "invite_rule_bg_png", "keys": "invateCut_btn_png",
"name": "inviterulepanel"
},
{
"keys": "invateCut_btn_png,invateCut_bg_png",
"name": "invitecuttimepanel" "name": "invitecuttimepanel"
}, },
{ {
...@@ -1155,11 +1151,6 @@ ...@@ -1155,11 +1151,6 @@
"type": "image", "type": "image",
"name": "startpanel通关条件_png" "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", "url": "assets/invite/prize/invitePrize_btn.png",
"type": "image", "type": "image",
...@@ -1175,11 +1166,6 @@ ...@@ -1175,11 +1166,6 @@
"type": "image", "type": "image",
"name": "invitePrize_game_btn_png" "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", "url": "assets/invite/cutTime/invateCut_btn.png",
"type": "image", "type": "image",
...@@ -5205,6 +5191,21 @@ ...@@ -5205,6 +5191,21 @@
"url": "assets/TaskCenterPrize/taskPrize_chuizi.png", "url": "assets/TaskCenterPrize/taskPrize_chuizi.png",
"type": "image", "type": "image",
"name": "taskPrize_chuizi_png" "name": "taskPrize_chuizi_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"
} }
] ]
} }
\ No newline at end of file
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </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: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"/>
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<e:Skin class="InviteSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" <e:Skin class="InviteSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui"
xmlns:w="http://ns.egret.com/wing"> xmlns:w="http://ns.egret.com/wing">
<e:Image y="216.33" source="invateCut_bg_png" horizontalCenter="0"/> <e:Image y="239.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:BitmapLabel id="cutTimeLabel" y="408.33" text="00时00分00" letterSpacing="10" horizontalCenter="0" font="hbCutTimeFont_fnt"/>
<e:Button id="closeBtn" label="" x="615" y="208.33"> <e:Button id="closeBtn" label="" x="600" y="239.33">
<e:skinName> <e:skinName>
<e:Skin states="up,down,disabled" xmlns:w="http://ns.egret.com/wing"> <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" <e:Image width="100%" height="100%" source="closeCommonBtn_png" source.down="closeCommonBtn_png"
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </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:skinName>
<e:Skin states="up,down,disabled"> <e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="invateCut_btn_png"/> <e:Image width="100%" height="100%" source="invateCut_btn_png"/>
...@@ -20,4 +20,5 @@ ...@@ -20,4 +20,5 @@
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </e:Button>
<e:Component y="695" skinName="ADSmallSkin" anchorOffsetX="0" anchorOffsetY="0" horizontalCenter="0" visible="false"/>
</e:Skin> </e:Skin>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<e:Skin class="InviteSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" <e:Skin class="InviteSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui"
xmlns:w="http://ns.egret.com/wing"> xmlns:w="http://ns.egret.com/wing" xmlns:ns1="*">
<e:Image y="45.33" horizontalCenter="0" source="invitePrize_bg_png"/> <e:Component y="910" skinName="ADSmallSkin" anchorOffsetX="0" anchorOffsetY="0" horizontalCenter="0" visible="false"/>
<e:Image id="prizeImg" y="426.77" source="" horizontalCenter="0" width="510" height="228"/> <e:Image y="-108.73" source="invitePrize_bg_png" horizontalCenter="0"/>
<e:Button id="closeBtn" label="" x="624" y="313.33"> <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:skinName>
<e:Skin states="up,down,disabled" xmlns:w="http://ns.egret.com/wing"> <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" <e:Image width="100%" height="100%" source="closeCommonBtn_png" source.down="closeCommonBtn_png"
...@@ -12,7 +13,7 @@ ...@@ -12,7 +13,7 @@
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </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:skinName>
<e:Skin states="up,down,disabled"> <e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="invitePrize_btn_png"/> <e:Image width="100%" height="100%" source="invitePrize_btn_png"/>
...@@ -20,7 +21,7 @@ ...@@ -20,7 +21,7 @@
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </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:skinName>
<e:Skin states="up,down,disabled"> <e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="invitePrize_game_btn_png"/> <e:Image width="100%" height="100%" source="invitePrize_game_btn_png"/>
......
<?xml version="1.0" encoding="utf-8"?> <?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: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: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:Image id="ruleBg" horizontalCenter="0" verticalCenter="-177" source="invite_rule_bg_png"/>
<e:Scroller id="scroller" width="545" height="527" y="398.2" horizontalCenter="0.5" anchorOffsetY="0"> <e:Scroller id="scroller" width="545" height="534" y="391.2" horizontalCenter="0.5" anchorOffsetY="0">
<e:Group id="group" width="100%" x="-1.26" y="36" anchorOffsetY="0" height="515"> <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:Label id="labContent" width="100%" text="" lineSpacing="10" size="30" multiline="true" textColor="0xa54615" fontFamily="FZY3JW"/>
<e:layout> <e:layout>
<e:VerticalLayout/> <e:VerticalLayout/>
</e:layout> </e:layout>
</e:Group> </e:Group>
</e:Scroller> </e:Scroller>
<e:Button id="closeBtn" label="" x="604" y="340"> <e:Button id="closeBtn" label="" x="604.5" y="276">
<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"/>
......
<?xml version="1.0" encoding="utf-8"?> <?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: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:Image id="ruleBg" horizontalCenter="0" source="inviterulebg_png" y="117.2"/>
<e:Scroller id="scroller" width="545" x="104.76" height="507" y="377.2"> <e:Scroller id="scroller" width="545" height="497" y="365.2" anchorOffsetY="0" horizontalCenter="0.5">
<e:Group id="group" width="100%"> <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:Label id="labContent" width="100%" text="" lineSpacing="10" size="30" multiline="true" textColor="0xa54615"/>
<e:layout> <e:layout>
<e:VerticalLayout/> <e:VerticalLayout/>
</e:layout> </e:layout>
</e:Group> </e:Group>
</e:Scroller> </e:Scroller>
<e:Button id="closeBtn" label="" x="614" y="301"> <e:Button id="closeBtn" label="" x="601" y="271.7">
<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"/>
......
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
<e:Skin class="InviteSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" <e:Skin class="InviteSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui"
xmlns:w="http://ns.egret.com/wing"> xmlns:w="http://ns.egret.com/wing">
<w:Config id="16dd8f58b77" visible="false"/> <w:Config id="16dd8f58b77" visible="false"/>
<e:Image id="light2" source="invitebg2_png" x="376" y="317" anchorOffsetX="356" anchorOffsetY="296"/> <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"/> <e:Image id="light1" source="invitebg2_png" x="376" y="317" anchorOffsetX="356" anchorOffsetY="296" visible="false"/>
<e:Image y="241.33" horizontalCenter="0" source="invite_bg_png"/> <e:Image y="-103.17" horizontalCenter="0" source="invite_bg_png"/>
<e:Group id="con" y="-67"/> <e:Group id="con" y="-67" visible="false"/>
<e:Label text="邀请新玩家闯关可得现金券!" y="381.33" textColor="0xF54500" size="28" horizontalCenter="0" fontFamily="FZY3JW"/> <e:Label text="邀请新玩家闯关可得现金券!" y="381.33" size="28" horizontalCenter="0" fontFamily="FZY3JW" textColor="0xc17343"/>
<e:Image id="prizeImg" y="439.33" horizontalCenter="0.5" source="" width="510" height="228"/> <e:Image id="prizeImg" y="433.33" source="" width="510" height="228" horizontalCenter="0"/>
<e:Button id="closeBtn" label="" x="605" y="227.33"> <e:Button id="closeBtn" label="" x="604.5" y="312.5">
<e:skinName> <e:skinName>
<e:Skin states="up,down,disabled" xmlns:w="http://ns.egret.com/wing"> <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" <e:Image width="100%" height="100%" source="closeCommonBtn_png" source.down="closeCommonBtn_png"
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </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: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:Scroller width="545" height="90" y="766.33" anchorOffsetX="0" anchorOffsetY="0" horizontalCenter="0">
<e:Group anchorOffsetX="0"> <e:Group anchorOffsetX="0">
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<e:Label id="moneyCount" text="×999" x="37.7" size="28" fontFamily="FZY3JW" textColor="0xf25d45" bold="true" verticalCenter="0"/> <e:Label id="moneyCount" text="×999" x="37.7" size="28" fontFamily="FZY3JW" textColor="0xf25d45" bold="true" verticalCenter="0"/>
</e:Group> </e:Group>
<e:Group id="btnGroup" x="441" width="217" height="91" verticalCenter="0"> <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: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:Group>
</e:Skin> </e:Skin>
\ No newline at end of file
...@@ -4,23 +4,25 @@ import { ShowWord } from "../something/uis/ShowWord"; ...@@ -4,23 +4,25 @@ import { ShowWord } from "../something/uis/ShowWord";
let cacheKey = "happyClear" + window["CFG"].consumerId; let cacheKey = "happyClear" + window["CFG"].consumerId;
export const getCacheKey=()=>{ export const getCacheKey = () => {
return cacheKey return cacheKey
} }
/** /**
* 读取缓存 * 读取缓存
*/ */
export function readCache(key: string = cacheKey, type: string = 'localStorage') { export function readCache(key: string = cacheKey, type: string = 'localStorage') {
if (!window[type]) { if(!window[type]) {
return false; return false;
} }
return window[type].getItem(key); return window[type].getItem(key);
} }
/** /**
* 写缓存 * 写缓存
*/ */
export function writeCache(key: string = cacheKey, value: any = 'true', type: string = 'localStorage') { 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])); // trace(Func.replace(SysLang.lang_012, [type]));
return; return;
} }
...@@ -33,7 +35,9 @@ const parser = new window["SVGA"].Parser(); ...@@ -33,7 +35,9 @@ const parser = new window["SVGA"].Parser();
/** /**
* 箭头的svga,只加载一次 * 箭头的svga,只加载一次
*/ */
let arrow: egret.DisplayObjectContainer; // let arrow: egret.DisplayObjectContainer;
let arrow: eui.Group;
/** /**
* 地图页面的引导 * 地图页面的引导
* 进地图页面先判断缓存,显示界面 * 进地图页面先判断缓存,显示界面
...@@ -45,13 +49,14 @@ export class GuideCon extends egret.DisplayObjectContainer { ...@@ -45,13 +49,14 @@ export class GuideCon extends egret.DisplayObjectContainer {
groups: any[]; groups: any[];
couldOver: boolean = false; couldOver: boolean = false;
timeoutId: number; timeoutId: number;
tri: egret.Bitmap; // tri: egret.Bitmap;
showWord: ShowWord; showWord: ShowWord;
callback; callback;
constructor(callback) { constructor(callback) {
super(); super();
this.callback=callback; this.callback = callback;
var bg: egret.Shape = new egret.Shape(); var bg: egret.Shape = new egret.Shape();
bg.graphics.beginFill(0x000000, 0.7); bg.graphics.beginFill(0x000000, 0.7);
bg.graphics.drawRect(0, 0, 750, 1624); bg.graphics.drawRect(0, 0, 750, 1624);
...@@ -60,26 +65,26 @@ export class GuideCon extends egret.DisplayObjectContainer { ...@@ -60,26 +65,26 @@ export class GuideCon extends egret.DisplayObjectContainer {
this.addChild(bg); this.addChild(bg);
var board = new egret.Bitmap(RES.getRes("lionMsgBg_png")) var board = new egret.Bitmap(RES.getRes("lionMsgBg_png"))
board.x = 30; board.x = 143;
board.y = 620; board.y = 737;
board.touchEnabled = true; board.touchEnabled = true;
board.addEventListener(egret.TouchEvent.TOUCH_TAP, () => { board.addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
if (this.couldOver) { if(this.couldOver) {
clearTimeout(this.timeoutId); clearTimeout(this.timeoutId);
this.couldOver = false; this.couldOver = false;
this.goNext(); this.goNext();
} }
}, this) }, this)
this.addChild(board); this.addChild(board);
var tri = new egret.Bitmap(RES.getRes("msgTri_png")) // var tri = new egret.Bitmap(RES.getRes("msgTri_png"))
tri.x = 638; // tri.x = 638;
tri.y = 804; // tri.y = 804;
tri.visible = false; // tri.visible = false;
this.tri = tri; // this.tri = tri;
this.addChild(tri); // this.addChild(tri);
this.showWord = new ShowWord(); this.showWord = new ShowWord();
this.showWord.x = 315; this.showWord.x = 165;
this.showWord.y = 742; this.showWord.y = 818;
this.addChild(this.showWord); this.addChild(this.showWord);
this.groups = []; this.groups = [];
...@@ -111,8 +116,8 @@ export class GuideCon extends egret.DisplayObjectContainer { ...@@ -111,8 +116,8 @@ export class GuideCon extends egret.DisplayObjectContainer {
var gg = new egret.DisplayObjectContainer(); var gg = new egret.DisplayObjectContainer();
gg.addChild(new egret.Bitmap(RES.getRes("道具_png"))); gg.addChild(new egret.Bitmap(RES.getRes("道具_png")));
var recordBtn = new egret.Bitmap(RES.getRes("recordbtn_png")); var recordBtn = new egret.Bitmap(RES.getRes("recordbtn_png"));
recordBtn.x = 620.14-615.08; recordBtn.x = 620.14 - 615.08;
recordBtn.y = 255.91-128.01; recordBtn.y = 255.91 - 128.01;
gg.addChild(recordBtn); gg.addChild(recordBtn);
this.addChild(gg); this.addChild(gg);
this.groups.push(gg); this.groups.push(gg);
...@@ -125,38 +130,62 @@ export class GuideCon extends egret.DisplayObjectContainer { ...@@ -125,38 +130,62 @@ export class GuideCon extends egret.DisplayObjectContainer {
guideOver.y = 1024; guideOver.y = 1024;
guideOver.touchEnabled = true; guideOver.touchEnabled = true;
guideOver.addEventListener(egret.TouchEvent.TOUCH_TAP, () => { guideOver.addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
if (this.parent) this.parent.removeChild(this); if(this.parent) this.parent.removeChild(this);
clearTimeout(this.timeoutId); clearTimeout(this.timeoutId);
writeCache(); writeCache();
if(this.callback)this.callback(); if(this.callback) this.callback();
}, this) }, this)
this.addChild(guideOver); this.addChild(guideOver);
//箭头 //箭头
if (!arrow) { // if(!arrow) {
arrow = new window["SVGA"].EgretMovieClip(); // arrow = new window["SVGA"].EgretMovieClip();
arrow["lockStep"] = true; // arrow["lockStep"] = true;
this.addChild(arrow); // this.addChild(arrow);
parser.load(resPath + 'resource/assets/svgas/' + 'guideArrow.svga', (videoItem) => { // parser.load(resPath + 'resource/assets/svgas/' + 'guideArrow.svga', (videoItem) => {
arrow["init"](videoItem) // arrow["init"](videoItem)
}, function (error) { // }, function(error) {
// alert(error.message); // // alert(error.message);
}) // })
} else { // } 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); 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; this.groups[i].visible = false;
} }
} }
// positions: number[][] = [
// [338, 310, 180],
// [530, 310, 180],
// [369, 380, 0],
// [743, 310, 180],
// [440, 350, -90],
// ];
positions: number[][] = [ positions: number[][] = [
[338, 310, 180], [283, 190, 180],
[530, 310, 180], [473, 190, 180],
[369, 380, 0], [445, 500, 0],
[743, 310, 180], [675, 190, 180],
[440, 350, -90], [440, 350, -90],
]; ];
words: string[] = [ words: string[] = [
...@@ -166,6 +195,7 @@ export class GuideCon extends egret.DisplayObjectContainer { ...@@ -166,6 +195,7 @@ export class GuideCon extends egret.DisplayObjectContainer {
"每个关卡收集的星星可用于\n开启宝箱,宝箱里还有更多\n无敌券、品牌券在等你!", "每个关卡收集的星星可用于\n开启宝箱,宝箱里还有更多\n无敌券、品牌券在等你!",
"进入道具商城去兑换道具为\n游戏加分吧~获得的奖励可\n在“我的奖励”中查看哦" "进入道具商城去兑换道具为\n游戏加分吧~获得的奖励可\n在“我的奖励”中查看哦"
]; ];
/** /**
* 1开始 * 1开始
* @param step * @param step
...@@ -182,11 +212,11 @@ export class GuideCon extends egret.DisplayObjectContainer { ...@@ -182,11 +212,11 @@ export class GuideCon extends egret.DisplayObjectContainer {
this.showWord.play(this.words[step - 1], () => { this.showWord.play(this.words[step - 1], () => {
this.couldOver = true; this.couldOver = true;
this.tri.visible = true; // this.tri.visible = true;
egret.Tween.get(this.tri, { loop: true }, null, true) // egret.Tween.get(this.tri, { loop: true }, null, true)
.set({ y: 804 }) // .set({ y: 804 })
.to({ y: 814 }, 300) // .to({ y: 814 }, 300)
.to({ y: 804 }, 300) // .to({ y: 804 }, 300)
this.timeoutId = setTimeout(() => { this.timeoutId = setTimeout(() => {
clearTimeout(this.timeoutId); clearTimeout(this.timeoutId);
this.couldOver = false; this.couldOver = false;
...@@ -197,8 +227,8 @@ export class GuideCon extends egret.DisplayObjectContainer { ...@@ -197,8 +227,8 @@ export class GuideCon extends egret.DisplayObjectContainer {
private toggleVisible(step: number) { private toggleVisible(step: number) {
for (var i = 0; i < this.groups.length; i++) { for(var i = 0; i < this.groups.length; i++) {
if (i + 1 == step) { if(i + 1 == step) {
this.groups[i].visible = true; this.groups[i].visible = true;
} else { } else {
this.groups[i].visible = false this.groups[i].visible = false
...@@ -208,15 +238,15 @@ export class GuideCon extends egret.DisplayObjectContainer { ...@@ -208,15 +238,15 @@ export class GuideCon extends egret.DisplayObjectContainer {
private goNext() { private goNext() {
this.curStep++; this.curStep++;
if (this.curStep > this.steps) { if(this.curStep > this.steps) {
if (this.parent) this.parent.removeChild(this); if(this.parent) this.parent.removeChild(this);
writeCache(); writeCache();
if(this.callback)this.callback(); if(this.callback) this.callback();
} else { } else {
this.play(this.curStep); this.play(this.curStep);
//隐藏三角形 //隐藏三角形
this.tri.visible = false; // this.tri.visible = false;
egret.Tween.removeTweens(this.tri) // egret.Tween.removeTweens(this.tri)
} }
} }
......
...@@ -809,23 +809,25 @@ export default class MapScene extends Scene { ...@@ -809,23 +809,25 @@ export default class MapScene extends Scene {
} }
loadsvga(res) { loadsvga(res) {
if (MapScene['svga']) {
const mv = MapScene['svga']
mv.gotoAndStop(1);
res.data.svga = mv;
PanelCtrl.instance.show('invite', res.data); PanelCtrl.instance.show('invite', res.data);
return;
} // if (MapScene['svga']) {
Loading.instace.show(); // const mv = MapScene['svga']
loadSvga(getResPath() + 'resource/assets/svgas/invite.svga').then(async (mv: any) => { // mv.gotoAndStop(1);
console.log('svga', mv) // res.data.svga = mv;
MapScene['svga'] = mv; // PanelCtrl.instance.show('invite', res.data);
await wait(200); // return;
Loading.instace.hide(); // }
mv.gotoAndStop(1); // Loading.instace.show();
res.data.svga = mv; // loadSvga(getResPath() + 'resource/assets/svgas/invite.svga').then(async (mv: any) => {
PanelCtrl.instance.show('invite', res.data); // 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变化的情况 //1234变化的情况
updateIconLayout() { updateIconLayout() {
......
...@@ -69,7 +69,7 @@ export default class InviteCutTimePanel extends Panel { ...@@ -69,7 +69,7 @@ export default class InviteCutTimePanel extends Panel {
this.timer.addEventListener(egret.TimerEvent.TIMER, this.cutTimer, this); this.timer.addEventListener(egret.TimerEvent.TIMER, this.cutTimer, this);
this.timer.start(); this.timer.start();
this.cutTimer(); this.cutTimer();
addAdComp(84, 726.33, this,38); addAdComp(84, 695, this,38);
} }
private cutTimer() { private cutTimer() {
...@@ -80,7 +80,7 @@ export default class InviteCutTimePanel extends Panel { ...@@ -80,7 +80,7 @@ export default class InviteCutTimePanel extends Panel {
this.timer.stop(); this.timer.stop();
this.hidePanel(); this.hidePanel();
} }
this.cutTimeLabel.text = `${timer.hour}:${timer.min}:${timer.sec}`; this.cutTimeLabel.text = `${timer.hour}${timer.min}${timer.sec}`;
} }
private convertTime(time: number) { private convertTime(time: number) {
......
...@@ -5,7 +5,7 @@ import { NetManager } from "../../libs/tw/manager/NetManager"; ...@@ -5,7 +5,7 @@ import { NetManager } from "../../libs/tw/manager/NetManager";
import { iswx } from "../iswx"; import { iswx } from "../iswx";
import Utils from "../Utils"; import Utils from "../Utils";
import InviteRulePanel from "./InviteRulePanel"; import InviteRulePanel from "./InviteRulePanel";
import wait from "../../libs/new_tc/wait"; // import wait from "../../libs/new_tc/wait";
import { getlogItem } from "../Main"; import { getlogItem } from "../Main";
import { showShareCodePanel, CodeChannels } from "./ShareCodePanel"; import { showShareCodePanel, CodeChannels } from "./ShareCodePanel";
...@@ -30,17 +30,17 @@ export default class InvitePanel extends Panel { ...@@ -30,17 +30,17 @@ export default class InvitePanel extends Panel {
async start(data) { async start(data) {
super.start(); super.start();
this.showlog(); this.showlog();
this['light1'].visible = this['light2'].visible = false; // this['light1'].visible = this['light2'].visible = false;
this['con'].addChild(this.data.svga); // this['con'].addChild(this.data.svga);
this.data.svga.gotoAndPlay(1, true); // this.data.svga.gotoAndPlay(1, true);
this.data.svga.once(egret.Event.COMPLETE, () => { // this.data.svga.once(egret.Event.COMPLETE, () => {
this.data.svga.stop(1); // this.data.svga.stop(1);
}, this); // }, this);
//
setTimeout(() => { // setTimeout(() => {
this.playBgAni(); // this.playBgAni();
}, 500); // }, 500);
// wait(500).then(()=>{ // wait(500).then(()=>{
// loadSvga2( // loadSvga2(
// , // ,
...@@ -51,12 +51,12 @@ export default class InvitePanel extends Panel { ...@@ -51,12 +51,12 @@ export default class InvitePanel extends Panel {
} }
playBgAni() { // playBgAni() {
this['light1'].visible = this['light2'].visible = true; // this['light1'].visible = this['light2'].visible = true;
const time = 7000; // const time = 7000;
egret.Tween.get(this['light1'], { loop: true }).to({ rotation: 360 }, time); // egret.Tween.get(this['light1'], { loop: true }).to({ rotation: 360 }, time);
egret.Tween.get(this['light2'], { loop: true }).to({ rotation: -360 }, time); // egret.Tween.get(this['light2'], { loop: true }).to({ rotation: -360 }, time);
} // }
showlog() { showlog() {
// NetManager.ins.showLog(getlogItem(3)); // NetManager.ins.showLog(getlogItem(3));
......
...@@ -66,7 +66,7 @@ export default class InvitePrizePanel extends Panel { ...@@ -66,7 +66,7 @@ export default class InvitePrizePanel extends Panel {
initUI() { initUI() {
this.prizeImg.source = this.data.prizeImg; this.prizeImg.source = this.data.prizeImg;
addAdComp(84, 845.33, this,38); addAdComp(84, 910, this,38);
} }
protected get closeBtns(): eui.Button[] { protected get closeBtns(): eui.Button[] {
......
...@@ -6,9 +6,9 @@ export class ShowWord extends egret.DisplayObjectContainer { ...@@ -6,9 +6,9 @@ export class ShowWord extends egret.DisplayObjectContainer {
constructor() { constructor() {
super(); super();
this.showText = new egret.TextField(); this.showText = new egret.TextField();
this.showText.size = 28; this.showText.size = 24;
this.showText.textColor = 0x000000; this.showText.textColor = 0xc17343;
this.showText.width = 410; this.showText.width = 380;
this.showText.textAlign = egret.HorizontalAlign.LEFT; this.showText.textAlign = egret.HorizontalAlign.LEFT;
this.showText.lineSpacing = 10; this.showText.lineSpacing = 10;
this.addChild(this.showText); this.addChild(this.showText);
......
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