Commit dcdfb1dc authored by wildfirecode's avatar wildfirecode

1

parent 9bbecf40
......@@ -19,7 +19,7 @@
background-color: #000;
background-size: 100%;
background-position: top;
background-image: url("https://yun.duiba.com.cn/db_games/activity/game/1573107320/resource/assets/startScene/startscenebg.jpg");
background-image: url("https://yun.duiba.com.cn/db_games/activity/game/1573121232/resource/assets/startScene/startscenebg.jpg");
padding: 0;
border: 0;
margin: 0;
......
......@@ -69,6 +69,7 @@ import HbGame from "../../src/panels/HongbaoRain/HbGame";
import getRedBombAward from "../../src/getRedBombAward";
import BombTipsPanel from "../../src/panels/BombTipsPanel";
import RedBombRule from "../../src/panels/RedBombRule";
import RedBombAlertPanel from "../../src/panels/RedBombAlertPanel";
export default class MainBase extends eui.UILayer {
constructor() {
......@@ -126,6 +127,7 @@ export default class MainBase extends eui.UILayer {
['friend', { cls: FriendPanel }],
['ad', { cls: ADPanel }],
['BombTipsPanel', { cls: BombTipsPanel }],
['RedBombAlert', { cls: RedBombAlertPanel }],
['RedBombRule', { cls: RedBombRule }],
];
......
......@@ -199,6 +199,10 @@
{
"keys": "redbagtips_ele_png,redbagtips_ele1_png,redbagtips_ele2_png,redbagtips_ele3_png,redbagtips_light_png,redbagtips按钮_png,redbagtips活动规则_png,redbagtipsbg_png,redbagtips_ele7_png",
"name": "redbombtips"
},
{
"name": "preload",
"keys": "redbombalert文案_png"
}
],
"resources": [
......@@ -3578,6 +3582,11 @@
"url": "assets/common/common_prop3.png",
"type": "image",
"name": "common_prop3_png"
},
{
"name": "redbombalert文案_png",
"type": "image",
"url": "assets/redbombalert/redbombalert文案.png"
}
]
}
\ No newline at end of file
......@@ -57,6 +57,7 @@
"resource/skins/RedBagAlertSkin.exml",
"resource/skins/RedBombRuleSkin.exml",
"resource/skins/RedBombTipsSkin.exml",
"resource/skins/RedBombAlertSkin.exml",
"resource/skins/ReliveSkin.exml",
"resource/skins/RuleSkin.exml",
"resource/skins/ScratchItemSkin.exml",
......
<?xml version="1.0" encoding="utf-8"?>
<e:Skin class="MapSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Rect id="rectbg" width="750" height="1206" visible="false"/>
<e:Rect id="rectbg" width="750" height="1206"/>
<e:Scroller id="scroll" width="750" height="1624" x="0" y="0" scrollPolicyH="off" scrollPolicyV="on" locked="true">
<e:Group id="scrollGroup">
</e:Group>
......@@ -150,7 +150,7 @@
<e:Image id="act2Btn" source="map2红包大作战_png" x="157.76" y="159" visible="false"/>
</e:Group>
<e:Image id="actsShowBtn" source="map2+_png" x="-7.64" y="5.45"/>
<e:Image source="maphot_png" x="91.52" y="15.72"/>
<e:Image source="maphot_png" x="91.52" y="15.72" touchEnabled="false"/>
</e:Group>
<e:Group id="settingsx" x="30" scaleX="1.4" scaleY="1.4" bottom="23" locked="true">
<e:Group id="settingGroup" x="2" y="6.08" visible="false">
......
<?xml version="1.0" encoding="utf-8"?>
<e:Skin class="RedBombAlertSkin" width="750" height="1624" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Group id="group" x="133" y="417">
<e:Image source="redbombalert文案_png" y="0" x="86"/>
<e:Label id="tips" text="今日还有2个红包在其他关卡等你哦~" y="79" textColor="0xffe9c0" x="0"/>
</e:Group>
</e:Skin>
\ No newline at end of file
......@@ -112,10 +112,10 @@ export default class MapScene extends Scene {
async start(data?) {
super.start();
// PanelCtrl.instance.show('RedBombAlert');
// NetManager.ins.hc_submit(()=>{
// // const submitData = DataManager.ins.getData('hc_submit').data;
// // PanelCtrl.instance.show(ModuleTypes.PRIZE_PANEL,{ level:1, option: submitData.option })
// PanelCtrl.instance.show('failed');
// },1,1,'','')
this.addIcon(); // 添加Icon
......
import Panel from "../../libs/new_wx/components/Panel";
import PanelCtrl from "../../libs/new_wx/ctrls/panelCtrl";
import SceneCtrl from "../../libs/new_wx/ctrls/sceneCtrl";
import { createEffect1MovieClip } from "../effect/createEffect1";
import RedBombRule from "./RedBombRule";
import { getRedBombTimes } from "../getRedBombAward";
import { loadSvga } from "../loadSvga";
import getResPath from "../../libs/new_tc/getResPath";
export default class RedBombAlertPanel extends Panel {
async start(data) {
super.start();
this.showlog();
const times = getRedBombTimes();
this['tips'].text = `今日还有${times-1}个红包在其他关卡等你哦~`;
if(times <= 1) {
this['tips'].text = `当日红包任务达成,明日再来~`;
}
this['group'].alpha=0;
loadSvga(getResPath() + 'resource/assets/svgas/redbomb.svga').then(async (mv: any) => {
this.addChild(mv);
mv.once(egret.Event.COMPLETE, () => {
mv.stop();
egret.Tween.get(this['group']).to({alpha:1},300);
}, this);
});
}
showlog() {
}
initEvents() {
super.initEvents();
// this['btn'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTapInvite, this);
}
onTapInvite() {
}
protected get closeBtns(): eui.Button[] { return [this['closeBtn']] }
get skinKey() { return 'RedBombAlert' }
}
\ No newline at end of file
{
"code":"0000000000",
"data":1,
"data":10,
"desc":"OK",
"success":true,
"timestamp":1572923489898
......
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