Commit 22f3be3d authored by 邱旭's avatar 邱旭

m

parent 5c19b872
......@@ -2,88 +2,53 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="0d3cb18d-e144-41a0-bc8b-4877c2e1fef1" name="默认的" comment="">
<change afterPath="$PROJECT_DIR$/mock/miniTb/feile.getToolsInfo.json" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/StartPanel/startBg.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/StartPanel/startBtn.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/StartPanel/startNum1.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/StartPanel/startNum2.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/StartPanel/startNum3.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/StartPanel/startNum4.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/StartPanel/startNum5.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/StartPanel/startNum6.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/StartPanel/startNum7.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/StartPanel/startNum8.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/StartPanel/startNum9.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/StartPanel/startNum关.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/StartPanel/startNum第.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/bonus_lottie/0d5e3eff-7726-4e3a-a2d4-409a9e68c2ec.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/bonus_lottie/16eb7a4a-34a0-45f3-8c02-154b638b1049.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/bonus_lottie/2c17dca6-ec35-4184-ae72-25813cf8f5dc.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/bonus_lottie/79040d0c-04ba-4c98-a512-5707d7ed37f5.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/bonus_lottie/93bcd69f-9897-4b12-8bf0-c0659817ccd2.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/bonus_lottie/e8c749fe-2a3b-4941-8527-37ba70a66e34.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/bonus_lottie/fdcf57c3-b91e-44d2-a011-7a0bbf4e5bb4.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/common/tarNum0.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/common/tarNum1.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/common/tarNum2.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/common/tarNum3.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/common/tarNum4.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/common/tarNum5.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/common/tarNum6.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/common/tarNum7.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/common/tarNum8.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/common/tarNum9.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/map/checkTip99.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/map/clearanceBtn.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/playScene/amazing.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/playScene/good.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/playScene/great.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/playScene/perfect.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/SuccessPanel/sucAgain.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/SuccessPanel/sucContinueL.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/SuccessPanel/sucContinueS.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/SuccessPanel/sucContinueSR.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/SuccessPanel/sucGet.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/SuccessPanel/sucPrizeTip.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/SuccessPanel/sucPropTip.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/SuccessPanel/successBgL.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/SuccessPanel/successBgS.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/SuccessPanel/sucgoPrize.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/lotties/bonusTime.json" beforeDir="false" afterPath="$PROJECT_DIR$/lotties/bonusTime.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/mock/miniTb/babycare.dojoin.json" beforeDir="false" afterPath="$PROJECT_DIR$/mock/miniTb/feile.doJoin.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/mock/miniTb/babycare.gameOver.json" beforeDir="false" afterPath="$PROJECT_DIR$/mock/miniTb/feile.gameOver.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/mock/miniTb/feile.gameOver.json" beforeDir="false" afterPath="$PROJECT_DIR$/mock/miniTb/feile.gameOver.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/mock/miniTb/feile.getActivityBaseInfoById.json" beforeDir="false" afterPath="$PROJECT_DIR$/mock/miniTb/feile.getActivityBaseInfoById.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/mock/miniTb/mine.getAppData.json" beforeDir="false" afterPath="$PROJECT_DIR$/mock/miniTb/mine.getAppData.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/StartPanel/关卡弹窗Bg.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/bonus_lottie/0250abc4-fabc-4bf3-970a-46ceeb12d416.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/bonus_lottie/03756d82-4e5c-4bdc-8247-7f704ed92ba7.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/bonus_lottie/0b1a21c5-2e2f-43bc-81f7-ee1c4474d07f.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/bonus_lottie/0f025d15-5a0b-4e5d-81e9-4a822c469467.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/bonus_lottie/445121aa-3bae-4b89-a8e9-fd41e2779276.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/bonus_lottie/54e427a5-b930-4506-a07d-8f1d7eb83ff5.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/bonus_lottie/560f6473-1e86-433f-a2fb-8e6d0c06d32f.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/bonus_lottie/8d000f4d-318a-47a1-9fa4-53c7b203a8fd.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/bonus_lottie/9ed4a149-8df3-45d4-b531-63b82833255a.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/bonus_lottie/b0c2b486-8dab-4c34-bec4-02e4b4ef835b.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/bonus_lottie/cd544214-fe15-402a-99a0-a57072952722.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/common/开始闯关不要能量.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/common/开始闯关要能量.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playScene/settingBg.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playScene/settingBtn.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playSceneNum/tarNum0.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playSceneNum/tarNum1.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playSceneNum/tarNum2.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playSceneNum/tarNum3.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playSceneNum/tarNum4.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playSceneNum/tarNum5.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playSceneNum/tarNum6.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playSceneNum/tarNum7.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playSceneNum/tarNum8.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playSceneNum/tarNum9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/SuccessPanel/star_dis.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/SuccessPanel/star_en.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/SuccessPanel/star_en.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/SuccessPanel/去抽奖.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/SuccessPanel/圆角矩形 648.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/SuccessPanel/开奖按钮120.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/SuccessPanel/道具圆圈.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/SuccessPanel/闯关成功.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/SuccessPanel/闯关成功Bg.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/SuccessPanel/闯关成功不满星按钮.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/res.json" beforeDir="false" afterPath="$PROJECT_DIR$/resource/res.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/关卡提示/e305be55-fdfd-453b-9e6d-41edfe68c0f1.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/common/e305be55-fdfd-453b-9e6d-41edfe68c0f1.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/starLight/star_light_0.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/starLight/star_light_1.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/starLight/star_light_10.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/starLight/star_light_11.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/starLight/star_light_12.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/starLight/star_light_13.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/starLight/star_light_14.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/starLight/star_light_15.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/starLight/star_light_2.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/starLight/star_light_3.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/starLight/star_light_4.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/starLight/star_light_5.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/starLight/star_light_6.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/starLight/star_light_7.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/starLight/star_light_8.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/starLight/star_light_9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/src/ResJson.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/ResJson.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/SkinJson.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/SkinJson.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/TaoBaoNet.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/TaoBaoNet.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Tools.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/Tools.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/lotties/bonus_lottie.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/lotties/bonus_lottie.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/lotties/关卡提示.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/lotties/checkTip.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/panels/StartPanel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/StartPanel.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/scene/LoadingScene.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/scene/LoadingScene.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/scene/PlayScene.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/scene/PlayScene.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/panels/SuccessNoPrizePanel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/SuccessNoPrizePanel.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/panels/SuccessPrizePanel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/SuccessPrizePanel.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/scene/map/CheckBtn.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/scene/map/CheckBtn.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/something/enum/PropType.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/something/enum/PropType.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/scene/map/MapScene.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/scene/map/MapScene.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/scene/map/MapUI.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/scene/map/MapUI.ts" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
......@@ -199,7 +164,7 @@
<updated>1612576978320</updated>
<workItem from="1612576979459" duration="13000" />
<workItem from="1612577003915" duration="21094000" />
<workItem from="1612662929222" duration="19042000" />
<workItem from="1612662929222" duration="31380000" />
</task>
<task id="LOCAL-00001" summary="斐乐消消乐">
<created>1612581213298</created>
......@@ -278,7 +243,14 @@
<option name="project" value="LOCAL" />
<updated>1612677219614</updated>
</task>
<option name="localTasksCounter" value="12" />
<task id="LOCAL-00012" summary="m">
<created>1612687050300</created>
<option name="number" value="00012" />
<option name="presentableId" value="LOCAL-00012" />
<option name="project" value="LOCAL" />
<updated>1612687050300</updated>
</task>
<option name="localTasksCounter" value="13" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
......@@ -296,6 +268,7 @@
<MESSAGE value="NoStep" />
<MESSAGE value="Failed" />
<MESSAGE value="20210206" />
<option name="LAST_COMMIT_MESSAGE" value="20210206" />
<MESSAGE value="m" />
<option name="LAST_COMMIT_MESSAGE" value="m" />
</component>
</project>
\ No newline at end of file
{
"code": "000000",
"data": {
"currentLevel": 11,
"isPrizeLevel": false,
"tool": {
"image": "https://img.alicdn.com/imgextra/i1/2275046294/O1CN01xTeKMI1wMhRux48Y6_!!2275046294-2-miniprogram.png"
},
"isVisitSuccess": true,
"prize": {
"type": "HAMMERS",
"type": 6,
"toolType": "steps",
"name": "aaaaa",
"_id": "_id",
"image": "https://img.alicdn.com/imgextra/i1/2275046294/O1CN01xTeKMI1wMhRux48Y6_!!2275046294-2-miniprogram.png"
}
},
......
......@@ -2,7 +2,8 @@
"code": "000000",
"data": {
"currentLevel": 99,
"topLevelVisitSuccess": false,
"topLevelVisitSuccess": true,
"isDrawTopLevelPrize": false,
"power": 10,
"tools": {
"steps": 10,
......
resource/SuccessPanel/star_en.png

16.9 KB | W: | H:

resource/SuccessPanel/star_en.png

23.4 KB | W: | H:

resource/SuccessPanel/star_en.png
resource/SuccessPanel/star_en.png
resource/SuccessPanel/star_en.png
resource/SuccessPanel/star_en.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -33,7 +33,7 @@
"name": "StartPanel"
},
{
"keys": "star_dis.png,star_en.png,去抽奖.png,圆角矩形 648.png,开奖按钮120.png,道具圆圈.png,闯关成功.png,闯关成功Bg.png,闯关成功不满星按钮.png",
"keys": "star_en.png,sucAgain.png,sucContinueL.png,sucContinueS.png,sucContinueSR.png,sucGet.png,sucGoPrize.png,sucPrizeTip.png,sucPropTip.png,successBgL.png,successBgS.png",
"name": "SuccessPanel"
},
{
......@@ -91,10 +91,6 @@
{
"keys": "chapterNum0.png,chapterNum1.png,chapterNum2.png,chapterNum3.png,chapterNum4.png,chapterNum5.png,chapterNum6.png,chapterNum7.png,chapterNum8.png,chapterNum9.png,chapterNum关.png,chapterNum第.png,propNum0.png,propNum1.png,propNum2.png,propNum3.png,propNum4.png,propNum5.png,propNum6.png,propNum7.png,propNum8.png,propNum9.png,scoreNum0.png,scoreNum1.png,scoreNum2.png,scoreNum3.png,scoreNum4.png,scoreNum5.png,scoreNum6.png,scoreNum7.png,scoreNum8.png,scoreNum9.png,stepNum0.png,stepNum1.png,stepNum2.png,stepNum3.png,stepNum4.png,stepNum5.png,stepNum6.png,stepNum7.png,stepNum8.png,stepNum9.png",
"name": "playSceneNum"
},
{
"keys": "star_light_0.png,star_light_1.png,star_light_10.png,star_light_11.png,star_light_12.png,star_light_13.png,star_light_14.png,star_light_15.png,star_light_2.png,star_light_3.png,star_light_4.png,star_light_5.png,star_light_6.png,star_light_7.png,star_light_8.png,star_light_9.png",
"name": "starLight"
}
],
"path": "./resource/"
......
......@@ -33,7 +33,7 @@ export const ResJson = {
"name": "StartPanel"
},
{
"keys": "star_dis.png,star_en.png,去抽奖.png,圆角矩形 648.png,开奖按钮120.png,道具圆圈.png,闯关成功.png,闯关成功Bg.png,闯关成功不满星按钮.png",
"keys": "star_en.png,sucAgain.png,sucContinueL.png,sucContinueS.png,sucContinueSR.png,sucGet.png,sucGoPrize.png,sucPrizeTip.png,sucPropTip.png,successBgL.png,successBgS.png",
"name": "SuccessPanel"
},
{
......@@ -91,10 +91,6 @@ export const ResJson = {
{
"keys": "chapterNum0.png,chapterNum1.png,chapterNum2.png,chapterNum3.png,chapterNum4.png,chapterNum5.png,chapterNum6.png,chapterNum7.png,chapterNum8.png,chapterNum9.png,chapterNum关.png,chapterNum第.png,propNum0.png,propNum1.png,propNum2.png,propNum3.png,propNum4.png,propNum5.png,propNum6.png,propNum7.png,propNum8.png,propNum9.png,scoreNum0.png,scoreNum1.png,scoreNum2.png,scoreNum3.png,scoreNum4.png,scoreNum5.png,scoreNum6.png,scoreNum7.png,scoreNum8.png,scoreNum9.png,stepNum0.png,stepNum1.png,stepNum2.png,stepNum3.png,stepNum4.png,stepNum5.png,stepNum6.png,stepNum7.png,stepNum8.png,stepNum9.png",
"name": "playSceneNum"
},
{
"keys": "star_light_0.png,star_light_1.png,star_light_10.png,star_light_11.png,star_light_12.png,star_light_13.png,star_light_14.png,star_light_15.png,star_light_2.png,star_light_3.png,star_light_4.png,star_light_5.png,star_light_6.png,star_light_7.png,star_light_8.png,star_light_9.png",
"name": "starLight"
}
],
"path": "./resource/"
......
......@@ -3,280 +3,6 @@ export const SkinJson = {
"y": 0,
"type": "container",
"children": [
{
"name": "SuccessNoPrizePanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "light1",
"x": 155,
"y": 280,
"alpha": 0.8,
"type": "sprite",
"props": {
"source": "comm_light.png"
},
"id": "light1"
},
{
"name": "light2",
"x": 155,
"y": 280,
"alpha": 0.8,
"type": "sprite",
"props": {
"source": "comm_light.png"
},
"id": "light2"
},
{
"name": "闯关成功Bg",
"x": 55,
"y": 266,
"type": "sprite",
"props": {
"source": "闯关成功Bg.png"
}
},
{
"name": "继续闯关大",
"x": 163,
"y": 935,
"type": "button",
"props": {
"tUp": "继续闯关大.png"
},
"id": "totalContinueBtn"
},
{
"name": "继续闯关小",
"x": 381,
"y": 935,
"type": "button",
"props": {
"tUp": "继续闯关小.png"
},
"id": "continueBtn"
},
{
"name": "闯关成功不满星按钮",
"x": 91,
"y": 935,
"type": "button",
"props": {
"tUp": "闯关成功不满星按钮.png"
},
"id": "againBtn"
},
{
"name": "关卡文字",
"x": 300,
"y": 501,
"type": "text",
"props": {
"text": "第 24 关",
"size": 40,
"fillColor": "#df5942",
"textAlpha": 1,
"bold": true
},
"id": "checkTex"
},
{
"name": "提示文案",
"x": 210,
"y": 815,
"type": "text",
"props": {
"text": "太厉害了!\n再闯6关就即可抽奖!",
"size": 36,
"fillColor": "#df5942",
"textAlpha": 1
},
"id": "tipsTex"
},
{
"name": "关闭按钮",
"x": 631,
"y": 470,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
}
]
},
{
"name": "SuccessPrizePanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "light1",
"x": 155,
"y": 280,
"alpha": 0.8,
"type": "sprite",
"props": {
"source": "comm_light.png"
},
"id": "light1"
},
{
"name": "light2",
"x": 155,
"y": 280,
"alpha": 0.8,
"type": "sprite",
"props": {
"source": "comm_light.png"
},
"id": "light2"
},
{
"name": "闯关成功",
"x": 55,
"y": 266,
"type": "sprite",
"props": {
"source": "闯关成功.png"
}
},
{
"name": "继续闯关大",
"x": 163,
"y": 1086,
"type": "button",
"props": {
"tUp": "继续闯关大.png"
},
"id": "noPrizeAgainBtn"
},
{
"name": "继续闯关小",
"x": 93,
"y": 1086,
"type": "button",
"props": {
"tUp": "继续闯关小.png"
},
"id": "againBtn"
},
{
"name": "去抽奖",
"x": 383,
"y": 1086,
"type": "button",
"props": {
"tUp": "去抽奖.png"
},
"id": "goPrizeBtn"
},
{
"name": "关卡文字",
"x": 300,
"y": 501,
"type": "text",
"props": {
"text": "第 24 关",
"size": 40,
"fillColor": "#df5942",
"textAlpha": 1,
"bold": true
},
"id": "checkTex"
},
{
"name": "提示文案",
"x": 182,
"y": 810,
"type": "text",
"props": {
"text": "太厉害了!获得抽奖资格!",
"size": 34,
"fillColor": "#df5942",
"textAlpha": 1
},
"id": "tipsTex"
},
{
"name": "红包奖励",
"x": 130,
"y": 870,
"type": "sprite",
"props": {
"source": ""
},
"id": "prizeImg"
},
{
"name": "道具",
"x": 124,
"y": 858,
"type": "container",
"children": [
{
"name": "bg",
"x": 0,
"y": 0,
"alpha": 1,
"type": "sprite",
"props": {
"source": "圆角矩形 648.png"
}
},
{
"name": "label",
"x": 265,
"y": 85,
"alpha": 1,
"type": "text",
"props": {
"text": "步数道具 x1",
"size": 30,
"fillColor": "#df5942",
"textAlpha": 1
}
},
{
"name": "img",
"x": 86,
"y": 45,
"alpha": 1,
"type": "sprite",
"props": {
"source": "道具.png"
}
},
{
"name": "quanquan",
"x": 76,
"y": 24,
"alpha": 1,
"type": "sprite",
"props": {
"source": "道具圆圈.png"
}
}
],
"id": "prop"
},
{
"name": "关闭按钮",
"x": 631,
"y": 470,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
}
]
},
{
"name": "RulePanel",
"x": 0,
......
......@@ -47,7 +47,8 @@ export class Tools {
prizeLevels: number[],
rule: string,
currentLevel: any,
topLevelVisitSuccess: string,
topLevelVisitSuccess: boolean,
isDrawTopLevelPrize: boolean,
power: number,
tools: {
steps: number,
......@@ -109,12 +110,7 @@ export class Tools {
public static gameOver(data) {
if (!data.isVisitSuccess) { // 闯关失败
showPanel(FailedPanel, data);
} else if ((data.prize && data.prize.image) || (data.tool && data.tool.type) || data.level == 120) { // 闯关成功,奖励关卡
//120关,如果没有奖品图片,伪造一个
if (data.level == 99 && (!data.prize || !data.prize.image)) {
data.prize = data.prize || {};
data.prize.image = Tools.gameData.levelPrize['level99'];
}
} else if (data.prize && data.prize.type != 5) { // 闯关成功,奖励关卡
showPanel(SuccessPrizePanel, data);
} else { // 闯关成功,不是奖励关卡
showPanel(SuccessNoPrizePanel, data);
......
import { Panel } from "../../module/views/Panel";
import TEXT_ALIGN = FYGE.TEXT_ALIGN;
import Container = FYGE.Container;
import { Tools } from "../Tools";
import { RES } from "../../module/RES";
import { changeScene } from "../../module/ctrls";
import { MapScene } from "../scene/map/MapScene";
import Container = FYGE.Container;
import Sprite = FYGE.Sprite;
import Tween = FYGE.Tween;
import Ease = FYGE.Ease;
import FrameAni = FYGE.FrameAni;
import Texture = FYGE.Texture;
import { RES } from "../../module/RES";
import MouseEvent = FYGE.MouseEvent;
import { changeScene } from "../../module/ctrls";
import { MapScene } from "../scene/map/MapScene";
import Button = FYGE.Button;
import { LotteryScene } from "../scene/LotteryScene";
export class SuccessNoPrizePanel extends Panel {
get groupNames() {
return ['SuccessPanel', 'starLight']
}
get skinName() {
return "SuccessNoPrizePanel"
return ['SuccessPanel']
}
public showAni() {
......@@ -33,98 +28,50 @@ export class SuccessNoPrizePanel extends Panel {
});
}
closeBtn: FYGE.Button;
tipsTex: FYGE.TextField;
checkTex: FYGE.TextField;
againBtn: FYGE.Button;
continueBtn: FYGE.Button;
totalContinueBtn: FYGE.Button;
light1: Sprite;
light2: Sprite;
private starGroup: SuccessStarGroup = null;
initUi() {
this.checkTex.text = `第\t${this.data.level}\t关`;
this.checkTex.textWidth = 750;
this.checkTex.x = 0;
this.checkTex.textAlign = TEXT_ALIGN.CENTER;
const { level, isVisitSuccess, score, stars } = this.data;
this.tipsTex.textAlign = TEXT_ALIGN.CENTER;
this.tipsTex.textWidth = 750;
this.tipsTex.x = 0;
this.addChild(Tools.getSprite("successBgS.png")).position.set(79, 345);
this.starGroup = this.addChild(new SuccessStarGroup());
this.starGroup.position.set(373, 680);
const starGroup = this.addChild(new SuccessStarGroup());
starGroup.position.set(375, 600);
starGroup.play(stars);
this.lightEffect();
const tipLabel = this.addChild(Tools.getText(
"闯关成功!", 36, "#744f1d",
FYGE.TEXT_ALIGN.CENTER, 750, 0, 713
));
this.starGroup.play(this.data.stars);
if (this.data.stars >= 3) { // 达到三星
this.againBtn.visible = false;
this.continueBtn.visible = false;
} else { // 未达到三星
this.totalContinueBtn.visible = false;
}
// if(MapScene.checkArr && MapScene.checkArr[120] && MapScene.checkArr[120])
if (Tools.gameData.currentLevel == 120
&& MapScene.checkArr && MapScene.checkArr[120]
&& MapScene.checkArr[120].checkData.isVisitSuccess) {
this.tipsTex.text = '';
} else if (MapScene.checkArr && MapScene.checkArr[this.data.level] && MapScene.checkArr[this.data.level].sendAwardType) {
// 到过三星,领过奖
const curLevel: number = Tools.gameData.currentLevel;
let upLevel: number = 120;
let dLevel: number = 120;
Tools.gameData.prizeLevels.forEach((value, index) => {
const d: number = value - curLevel;
if (curLevel <= value && d >= 0 && d <= dLevel) {
upLevel = value;
if (curLevel == this.data.level) {
dLevel = d;
} else {
dLevel = d + 1;
}
}
});
this.tipsTex.text = `\t\t\t太厉害了!\n再解锁${dLevel}关可以抽奖了`;
this.tipsTex.textAlign = TEXT_ALIGN.CENTER;
this.tipsTex.textWidth = 750;
this.tipsTex.x = 0;
} else {
// 没到三星,没领过奖
if (this.data.isPrizeLevel) {
this.tipsTex.text = '闯关成功!挑战满星通关\n获得抽大奖机会!';
if (level == 99) { // 99关
tipLabel.text = '成功通关!\n获得一次抽奖机会!';
this.addChild(new Button(RES.getRes("sucGoPrize.png")))
.addEventListener(MouseEvent.CLICK, this.goPrize, this)
.position.set(190, 828);
} else {
this.tipsTex.text = '闯关成功!挑战满星通关\n有概率获得随机道具一个';
if (stars >= 3) {// 满星
this.addChild(new Button(RES.getRes("sucContinueL.png")))
.addEventListener(MouseEvent.CLICK, this.continue, this)
.position.set(190, 824);
} else { // 不满
tipLabel.text = '闯关成功!';
this.addChild(new Button(RES.getRes("sucAgain.png")))
.addEventListener(MouseEvent.CLICK, this.again, this)
.position.set(100, 869);
this.addChild(new Button(RES.getRes("sucContinueSR.png")))
.addEventListener(MouseEvent.CLICK, this.continue, this)
.position.set(385, 869);
}
}
}
private lightEffect() {
Tween.get(this.light1, {loop: true})
.set({anchorX: 219.5, anchorY: 219.5})
.to({rotation: 360}, 12000);
Tween.get(this.light2, {loop: true})
.set({anchorX: 219.5, anchorY: 219.5})
.to({rotation: -360}, 12000);
this.addChild(new Button(RES.getRes('关闭按钮.png')))
.addEventListener(MouseEvent.CLICK, this.hidePanel, this)
.position.set(638, 458);
}
start(data) {
super.start();
}
initEvents() {
super.initEvents();
this.againBtn.addEventListener(MouseEvent.CLICK, this.again, this);
this.continueBtn.addEventListener(MouseEvent.CLICK, this.continue, this);
this.totalContinueBtn.addEventListener(MouseEvent.CLICK, this.continue, this);
}
/**
* 挑战满星
......@@ -134,6 +81,12 @@ export class SuccessNoPrizePanel extends Panel {
super.hidePanel();
}
public goPrize() {
// 去抽奖
changeScene(LotteryScene, { level: this.data.level })
super.hidePanel();
}
/**
* 继续闯关
*/
......@@ -151,151 +104,60 @@ export class SuccessNoPrizePanel extends Panel {
super.hidePanel();
}
removeEvents() {
super.removeEvents();
this.againBtn.removeEventListener(MouseEvent.CLICK, this.again, this);
this.continueBtn.removeEventListener(MouseEvent.CLICK, this.continue, this);
this.totalContinueBtn.removeEventListener(MouseEvent.CLICK, this.continue, this);
}
}
export class SuccessStarGroup extends Container {
private leftStarDis: Sprite = null;
private midStarDis: Sprite = null;
private rightStarDis: Sprite = null;
private leftStarEn: Sprite = null;
private midStarEn: Sprite = null;
private rightStarEn: Sprite = null;
private leftStarAni: FrameAni = null;
private midStarAni: FrameAni = null;
private rightStarAni: FrameAni = null;
constructor() {
super();
this.leftStarDis = this.addChild(Tools.getSprite('star_dis.png'));
this.midStarDis = this.addChild(Tools.getSprite('star_dis.png'));
this.rightStarDis = this.addChild(Tools.getSprite('star_dis.png'));
this.leftStarEn = this.addChild(Tools.getSprite('star_en.png'));
this.midStarEn = this.addChild(Tools.getSprite('star_en.png'));
this.rightStarEn = this.addChild(Tools.getSprite('star_en.png'));
this.leftStarDis.anchorTexture.set(0.5, 0.5);
this.midStarDis.anchorTexture.set(0.5, 0.5);
this.rightStarDis.anchorTexture.set(0.5, 0.5);
this.leftStarEn.anchorTexture.set(0.5, 0.5);
this.midStarEn.anchorTexture.set(0.5, 0.5);
this.rightStarEn.anchorTexture.set(0.5, 0.5);
this.leftStarDis.position.set(-158, 36);
this.leftStarDis.rotation = -25;
this.leftStarDis.scale.set(0.81, 0.81);
this.leftStarEn.position.set(-157, 41);
this.leftStarEn.rotation = -25;
this.leftStarEn.scale.set(0.81, 0.81);
this.midStarEn.y = 5;
this.rightStarDis.position.set(157, 37);
this.rightStarDis.rotation = 25;
this.rightStarDis.scale.set(0.81, 0.81);
this.rightStarEn.position.set(156, 41);
this.rightStarEn.rotation = 25;
this.rightStarEn.scale.set(0.81, 0.81);
this.leftStarEn.position.set(-140, 10);
this.rightStarEn.position.set(140, 10);
this.leftStarEn.scale.set(0, 0);
this.midStarEn.scale.set(0, 0);
this.rightStarEn.scale.set(0, 0);
const starAniFrame: Texture[] = new Array(16);
for (let i = 0; i < 15; i++) {
starAniFrame[i] = RES.getRes(`star_light_${i}.png`);
}
starAniFrame[15] = null;
this.leftStarAni = this.addChild(new FrameAni(starAniFrame));
this.leftStarAni.visible = false;
this.leftStarAni.position.set(-158, 44);
this.midStarAni = this.addChild(new FrameAni(starAniFrame));
this.midStarAni.visible = false;
this.midStarAni.y = 8;
this.rightStarAni = this.addChild(new FrameAni(starAniFrame));
this.rightStarAni.visible = false;
this.rightStarAni.position.set(158, 42);
}
public play(count: number, wait: number = 600) {
const time1 = 200;
const time2 = 100;
const max = 3;
const interval = 100;
const interval = 80;
if (count < 1) return;
Tween.get(this.leftStarEn)
.wait(wait)
.set({scaleX: max, scaleY: max})
.to({scaleX: 0.648, scaleY: 0.648}, time1, Ease.quadOut)
.call(() => {
this.leftStarAni.visible = true;
this.leftStarAni.play(1);
})
.to({scaleX: 0.81, scaleY: 0.81}, time2, Ease.quadOut)
.set({ scaleX: max, scaleY: max })
.to({ scaleX: 0.648, scaleY: 0.648 }, time1, Ease.quadOut)
.to({ scaleX: 1, scaleY: 1 }, time2, Ease.quadOut)
.wait(interval)
.call(() => {
if (count <= 1) return;
Tween.get(this.midStarEn)
.set({scaleX: max, scaleY: max})
.to({scaleX: 0.8, scaleY: 0.8}, time1, Ease.quadOut)
.call(() => {
this.midStarAni.visible = true;
this.midStarAni.play(1);
})
.to({scaleX: 1, scaleY: 1}, time2, Ease.quadOut)
.wait(interval)
.call(() => {
if (count <= 2) return;
Tween.get(this.rightStarEn)
.set({scaleX: max, scaleY: max})
.to({scaleX: 0.648, scaleY: 0.648}, time1, Ease.quadOut)
.call(() => {
this.rightStarAni.visible = true;
this.rightStarAni.play(1);
})
.to({scaleX: 0.81, scaleY: 0.81}, time2, Ease.quadOut)
.set({ scaleX: max, scaleY: max })
.to({ scaleX: 0.648, scaleY: 0.648 }, time1, Ease.quadOut)
.to({ scaleX: 1, scaleY: 1 }, time2, Ease.quadOut)
});
});
}
}
// export class SuccessStar extends Container {
// private starEn: Sprite = null;
// private starDis: Sprite = null;
//
// constructor() {
// super();
// this.starDis = this.addChild(Tools.getSprite('star_dis.png'));
// this.starDis.anchorTexture.set(0.5, 0.5);
// this.starEn = this.addChild(Tools.getSprite('star_en.png'));
// this.starEn.anchorTexture.set(0.5, 0.5);
// this.starEn.scale.set(0, 0);
// this.starEn.y = 3;
// }
//
// public play(wait: number = 0, time: number = 400) {
// Tween.get(this.starEn)
// .wait(wait)
// .set({scaleX: 3, scaleY: 3})
// .to({scaleX: 1, scaleY: 1}, time, Ease.quadInOut);
//
// }
//
// }
import { Panel } from "../../module/views/Panel";
import TEXT_ALIGN = FYGE.TEXT_ALIGN;
import { SuccessStarGroup } from "./SuccessNoPrizePanel";
import Tween = FYGE.Tween;
import Ease = FYGE.Ease;
import Sprite = FYGE.Sprite;
import Texture = FYGE.Texture;
import Container = FYGE.Container;
import { PropType } from "../something/enum/PropType";
import { RES } from "../../module/RES";
import TextField = FYGE.TextField;
import { changeScene } from "../../module/ctrls";
import { MapScene } from "../scene/map/MapScene";
import MouseEvent = FYGE.MouseEvent;
import { LotteryScene } from "../scene/LotteryScene";
import { Tools } from "../Tools";
import { PropType } from "../something/enum/PropType";
import Tween = FYGE.Tween;
import Ease = FYGE.Ease;
import MouseEvent = FYGE.MouseEvent;
import Button = FYGE.Button;
import Sprite = FYGE.Sprite;
import Texture = FYGE.Texture;
export class SuccessPrizePanel extends Panel {
get groupNames() {
return ['SuccessPanel', 'starLight']
}
get skinName() {
return "SuccessPrizePanel"
return ['SuccessPanel']
}
public showAni() {
......@@ -35,90 +30,66 @@ export class SuccessPrizePanel extends Panel {
});
}
closeBtn: FYGE.Button;
tipsTex: FYGE.TextField;
checkTex: FYGE.TextField;
againBtn: FYGE.Button;
noPrizeAgainBtn: FYGE.Button;
goPrizeBtn: FYGE.Button;
prizeImg: Sprite;
prop: Container;
light1: Sprite;
light2: Sprite;
private starGroup: SuccessStarGroup = null;
initUi() {
this.checkTex.text = `第\t${this.data.level}\t关`;
this.checkTex.textWidth = 750;
this.checkTex.x = 0;
this.checkTex.textAlign = TEXT_ALIGN.CENTER;
const { prize, level, isVisitSuccess, score, stars } = this.data;
const { name, _id, image, type, toolType } = prize;
this.tipsTex.textWidth = 750;
this.tipsTex.x = 0;
this.tipsTex.textAlign = TEXT_ALIGN.CENTER;
this.addChild(Tools.getSprite("successBgL.png")).position.set(79, 345);
this.starGroup = this.addChild(new SuccessStarGroup());
this.starGroup.position.set(373, 678);
const starGroup = this.addChild(new SuccessStarGroup());
starGroup.position.set(375, 600);
starGroup.play(stars);
this.prizeImg.anchorTexture.x = 0.5;
this.prizeImg.x = 375;
this.addChild(Tools.getText(
"闯关成功!获得奖励", 36, "#744f1d",
FYGE.TEXT_ALIGN.CENTER, 750, 0, 713
));
this.lightEffect();
const prizeImg = this.addChild(new Sprite());
prizeImg.anchorTexture.set(0.5, 0.5);
prizeImg.position.set(375, 890);
this.starGroup.play(this.data.stars);
const propImg: Sprite = this.prop.getChildByName('img');
const propLabel: TextField = this.prop.getChildByName('label');
if (this.data.tool && this.data.tool.type) {
this.againBtn.visible = false;
this.goPrizeBtn.visible = false;
this.prizeImg.visible = false;
this.tipsTex.text = '\t\t满星过关!';
switch (this.data.tool.type) {
if (type == 6) { // 道具
switch (toolType) {
case PropType.BOOMS:
propImg.texture = RES.getRes('boomBtn.png');
propImg.y += 5;
propImg.x += 15;
propLabel.text = '炸弹道具\tx1';
prizeImg.texture = RES.getRes('boomBtn.png');
break;
case PropType.HAMMERS:
propImg.texture = RES.getRes('hammerBtn.png');
propImg.x += 10;
propLabel.text = '锤子道具\tx1';
prizeImg.texture = RES.getRes('hammerBtn.png');
break;
case PropType.STEPS:
propImg.texture = RES.getRes('stepBtn.png');
propLabel.text = '步数道具\tx1';
prizeImg.texture = RES.getRes('stepBtn.png');
break;
}
} else if (this.data.prize && this.data.prize.image) {
if (this.data.level == 120) {//120关不显示闯关按钮,换图
this.againBtn.visible = false;
this.goPrizeBtn.visible = false;
this.noPrizeAgainBtn.changeTexture(RES.getRes("开奖按钮120.png"))
} else {
this.noPrizeAgainBtn.visible = false;
}
this.prop.visible = false;
this.prizeImg.texture = Texture.fromUrl(this.data.prize.image);
// this.tipsTex.text = '\t\t闯关成功!获得抽大奖机会!';
this.tipsTex.text = '\t闯关成功!有机会抽取如下奖品';
}
}
private lightEffect() {
Tween.get(this.light1, { loop: true })
.set({ anchorX: 219.5, anchorY: 219.5 })
.to({ rotation: 360 }, 12000);
Tween.get(this.light2, { loop: true })
.set({ anchorX: 219.5, anchorY: 219.5 })
.to({ rotation: -360 }, 12000);
if (stars >= 3) { //三星
this.addChild(new Button(RES.getRes('sucContinueL.png')))
.addEventListener(MouseEvent.CLICK, this.continue, this)
.position.set(190, 1050);
} else { // 不是三星
this.addChild(Tools.getSprite("sucPropTip.png")).position.set(142, 1010);
this.addChild(new Button(RES.getRes("sucAgain.png")))
.addEventListener(MouseEvent.CLICK, this.again, this)
.position.set(100, 1089);
this.addChild(new Button(RES.getRes("sucGet.png")))
.addEventListener(MouseEvent.CLICK, this.continue, this)
.position.set(385, 1089);
}
} else { // 不是道具
prizeImg.texture = Texture.fromUrl(image);
this.addChild(Tools.getSprite("sucPrizeTip.png")).position.set(142, 1010);
this.addChild(new Button(RES.getRes("sucContinueS.png")))
.addEventListener(MouseEvent.CLICK, this.continue, this)
.position.set(100, 1089);
this.addChild(new Button(RES.getRes("sucGet.png")))
.addEventListener(MouseEvent.CLICK, this.getPrize, this)
.position.set(385, 1089);
}
this.addChild(new Button(RES.getRes('关闭按钮.png')))
.addEventListener(MouseEvent.CLICK, this.hidePanel, this)
.position.set(640, 460);
}
start(data) {
......@@ -137,7 +108,7 @@ export class SuccessPrizePanel extends Panel {
* 继续闯关
*/
private continue() {
if (this.data.level == 120) {
if (this.data.level == 99) {
changeScene(MapScene);
} else {
changeScene(MapScene, { level: this.data.level + 1 });
......@@ -152,20 +123,17 @@ export class SuccessPrizePanel extends Panel {
super.hidePanel();
}
/**
* 领奖
*/
public getPrize() {
/// TODO 领奖
}
public hidePanel() {
changeScene(MapScene);
super.hidePanel();
}
initEvents() {
super.initEvents();
this.againBtn.addEventListener(MouseEvent.CLICK, this.continue, this);
this.noPrizeAgainBtn.addEventListener(MouseEvent.CLICK, this.continue, this);
this.goPrizeBtn.addEventListener(MouseEvent.CLICK, this.goPrize, this);
}
removeEvents() {
super.removeEvents();
}
}
......@@ -42,8 +42,6 @@ export default class CheckBtn extends Container {
private star: CheckStar[] = null;
private curAni: Lottie = null;
private checkNum: number = null;
private _data: any = null;
......
......@@ -55,6 +55,7 @@ export class MapScene extends Scene {
if (this.data && this.data.from == 'loading') {
this.uiLayer = this.addChild(new MapUI());
this.initMapByData(Tools.gameData);
this.uiLayer.updateUI();
if (Tools.globalData.isNewUser) {
this.initGuide();
}
......@@ -63,6 +64,7 @@ export class MapScene extends Scene {
if (success) {//不考虑失败的情况
this.uiLayer = this.addChild(new MapUI());
this.initMapByData(Tools.gameData);
this.uiLayer.updateUI();
}
});
}
......@@ -117,7 +119,6 @@ export class MapScene extends Scene {
}
private initMapByData(data) {
this.uiLayer.energyBox.count = data.power;
const currentLevel = data.currentLevel;
......@@ -206,19 +207,13 @@ export class MapScene extends Scene {
public start(data?: any) {
super.start(data);
// Tools.gameOver({
// level: 1,
// score: 666,
// stars: 3,
// isVisitSuccess: true,
// isPrizeLevel: false,
// // tool: {
// // type: 'HAMMERS',
// // },
// prize: {
// image: 'https://img.alicdn.com/imgextra/i1/2275046294/O1CN01xTeKMI1wMhRux48Y6_!!2275046294-2-miniprogram.png',
// }]
// });
Tools.gameOver({
"isVisitSuccess": true,
"prize": undefined,
"level": 99,
"score": 58940,
"stars": 3
});
}
public initEvents() {
......
......@@ -2,9 +2,9 @@ import Container = FYGE.Container;
import Button = FYGE.Button;
import TextField = FYGE.TextField;
import TEXT_ALIGN = FYGE.TEXT_ALIGN;
import MouseEvent = FYGE.MouseEvent;
import { RES } from "../../../module/RES";
import { Tools } from "../../Tools";
import MouseEvent = FYGE.MouseEvent;
import { showPanel } from "../../../module/ctrls";
import { RulePanel } from "../../panels/RulePanel";
import { sendTbNet, TbNetName } from "../../TaoBaoNet";
......@@ -15,6 +15,7 @@ export default class MapUI extends Container {
private myPrizeBtn: Button = null;
private ruleBtn: Button = null;
private taskBtn: Button = null;
private clearanceBtn: Button = null;
constructor() {
super();
......@@ -28,12 +29,14 @@ export default class MapUI extends Container {
this.ruleBtn.addEventListener(MouseEvent.CLICK, this.clickBtn, this);
this.myPrizeBtn.addEventListener(MouseEvent.CLICK, this.clickBtn, this);
this.taskBtn.addEventListener(MouseEvent.CLICK, this.clickBtn, this);
this.clearanceBtn.addEventListener(MouseEvent.CLICK, this.clickBtn, this);
}
private removeEvent() {
this.ruleBtn.removeEventListener(MouseEvent.CLICK, this.clickBtn, this);
this.myPrizeBtn.removeEventListener(MouseEvent.CLICK, this.clickBtn, this);
this.taskBtn.removeEventListener(MouseEvent.CLICK, this.clickBtn, this);
this.clearanceBtn.removeEventListener(MouseEvent.CLICK, this.clickBtn, this);
}
private clickBtn(e) {
......@@ -54,6 +57,11 @@ export default class MapUI extends Container {
case this.taskBtn:
Tools.openTask();
break;
case this.clearanceBtn:
/// TODO 打开通关抽奖
console.error("TODO 打开通关抽奖");
break;
}
}
......@@ -79,10 +87,15 @@ export default class MapUI extends Container {
this.energyBox = this.addChild(new EnergyBox({}));
this.clearanceBtn = this.addChild(new Button(RES.getRes('clearanceBtn.png')));
this.clearanceBtn.position.set(0, 387);
this.clearanceBtn.visible = false;
}
public updateUI() {
this.energyBox.count = Tools.gameData.power;
const { topLevelVisitSuccess, isDrawTopLevelPrize } = Tools.gameData;
this.clearanceBtn.visible = topLevelVisitSuccess && !isDrawTopLevelPrize;
}
}
......@@ -91,7 +104,6 @@ export default class MapUI extends Container {
*/
class EnergyBox extends Container {
private addBtn: Button = null;
private countLabel: TextField = null;
private _count = 0;
......
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