Commit 2c58de48 authored by haiyoucuv's avatar haiyoucuv

map effect

parent 8d1e4c27
......@@ -2,91 +2,13 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="9cef0552-af3c-4a1c-be1f-dc41ebe5b6db" name="Default Changelist" comment="">
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_0.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_1.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_10.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_11.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_12.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_13.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_14.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_15.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_16.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_17.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_18.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_19.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_2.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_20.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_21.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_22.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_23.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_24.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_25.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_26.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_27.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_28.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_29.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_3.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_30.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_4.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_5.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_6.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_7.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_8.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapCrabEffect/map_crab_9.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapOwlEffect/map_owl_0.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapOwlEffect/map_owl_1.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapOwlEffect/map_owl_10.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapOwlEffect/map_owl_11.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapOwlEffect/map_owl_12.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapOwlEffect/map_owl_13.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapOwlEffect/map_owl_14.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapOwlEffect/map_owl_15.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapOwlEffect/map_owl_2.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapOwlEffect/map_owl_3.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapOwlEffect/map_owl_4.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapOwlEffect/map_owl_5.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapOwlEffect/map_owl_6.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapOwlEffect/map_owl_7.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapOwlEffect/map_owl_8.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/mapOwlEffect/map_owl_9.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/src/panels/RulePanel.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/mock/miniTb/babycare.getIndex.json" beforeDir="false" afterPath="$PROJECT_DIR$/mock/miniTb/babycare.getIndex.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/map_bg1.jpg" beforeDir="false" afterPath="$PROJECT_DIR$/resource/map/map_bg1.jpg" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/map_whale_0.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapWhaleEffect/map_whale_0.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/map_whale_1.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapWhaleEffect/map_whale_1.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/map_whale_10.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapWhaleEffect/map_whale_10.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/map_whale_11.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapWhaleEffect/map_whale_11.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/map_whale_12.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapWhaleEffect/map_whale_12.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/map_whale_2.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapWhaleEffect/map_whale_2.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/map_whale_3.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapWhaleEffect/map_whale_3.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/map_whale_4.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapWhaleEffect/map_whale_4.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/map_whale_5.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapWhaleEffect/map_whale_5.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/map_whale_6.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapWhaleEffect/map_whale_6.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/map_whale_7.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapWhaleEffect/map_whale_7.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/map_whale_8.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapWhaleEffect/map_whale_8.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/map_whale_9.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapWhaleEffect/map_whale_9.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/prize_check_0.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapCheckPrizeEffect/prize_check_0.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/prize_check_1.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapCheckPrizeEffect/prize_check_1.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/prize_check_10.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapCheckPrizeEffect/prize_check_10.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/prize_check_11.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapCheckPrizeEffect/prize_check_11.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/prize_check_12.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapCheckPrizeEffect/prize_check_12.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/prize_check_13.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapCheckPrizeEffect/prize_check_13.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/prize_check_14.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapCheckPrizeEffect/prize_check_14.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/prize_check_15.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapCheckPrizeEffect/prize_check_15.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/prize_check_16.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapCheckPrizeEffect/prize_check_16.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/prize_check_2.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapCheckPrizeEffect/prize_check_2.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/prize_check_3.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapCheckPrizeEffect/prize_check_3.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/prize_check_4.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapCheckPrizeEffect/prize_check_4.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/prize_check_5.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapCheckPrizeEffect/prize_check_5.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/prize_check_6.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapCheckPrizeEffect/prize_check_6.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/prize_check_7.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapCheckPrizeEffect/prize_check_7.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/prize_check_8.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapCheckPrizeEffect/prize_check_8.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/map/prize_check_9.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/mapCheckPrizeEffect/prize_check_9.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/res.json" beforeDir="false" afterPath="$PROJECT_DIR$/resource/res.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/ResJson.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/ResJson.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/scene/map/MapBottom.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/scene/map/MapBottom.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/scene/map/MapMid.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/scene/map/MapMid.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/panels/StartPanel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/StartPanel.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/panels/StartPanelPrize.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/StartPanelPrize.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" />
......@@ -184,7 +106,7 @@
<workItem from="1594111755267" duration="29551000" />
<workItem from="1594260676967" duration="30060000" />
<workItem from="1594604662575" duration="27200000" />
<workItem from="1594691193000" duration="2162000" />
<workItem from="1594691193000" duration="4649000" />
</task>
<task id="LOCAL-00001" summary="111">
<created>1594122339119</created>
......@@ -228,7 +150,14 @@
<option name="project" value="LOCAL" />
<updated>1594645946117</updated>
</task>
<option name="localTasksCounter" value="7" />
<task id="LOCAL-00007" summary="map effect">
<created>1594693383764</created>
<option name="number" value="00007" />
<option name="presentableId" value="LOCAL-00007" />
<option name="project" value="LOCAL" />
<updated>1594693383765</updated>
</task>
<option name="localTasksCounter" value="8" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
......@@ -236,7 +165,8 @@
</component>
<component name="VcsManagerConfiguration">
<MESSAGE value="111" />
<option name="LAST_COMMIT_MESSAGE" value="111" />
<MESSAGE value="map effect" />
<option name="LAST_COMMIT_MESSAGE" value="map effect" />
</component>
<component name="WindowStateProjectService">
<state x="440" y="273" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1594106579644">
......@@ -251,26 +181,26 @@
<screen x="31" y="23" width="1889" height="1177" />
</state>
<state x="251" y="471" key="ANALYSIS_DLG_com.intellij.analysis.BaseAnalysisAction$1/31.23.1889.1177@31.23.1889.1177" timestamp="1594113080922" />
<state x="754" y="183" key="CommitChangelistDialog2" timestamp="1594645945516">
<state x="754" y="183" key="CommitChangelistDialog2" timestamp="1594693383238">
<screen x="31" y="23" width="1889" height="1177" />
</state>
<state x="754" y="183" key="CommitChangelistDialog2/31.23.1889.1177@31.23.1889.1177" timestamp="1594645945516" />
<state width="882" height="329" key="GridCell.Tab.0.bottom" timestamp="1594693317862">
<state x="754" y="183" key="CommitChangelistDialog2/31.23.1889.1177@31.23.1889.1177" timestamp="1594693383238" />
<state width="882" height="329" key="GridCell.Tab.0.bottom" timestamp="1594693733806">
<screen x="31" y="23" width="1889" height="1177" />
</state>
<state width="882" height="329" key="GridCell.Tab.0.bottom/31.23.1889.1177@31.23.1889.1177" timestamp="1594693317862" />
<state width="882" height="329" key="GridCell.Tab.0.center" timestamp="1594693317861">
<state width="882" height="329" key="GridCell.Tab.0.bottom/31.23.1889.1177@31.23.1889.1177" timestamp="1594693733806" />
<state width="882" height="329" key="GridCell.Tab.0.center" timestamp="1594693733805">
<screen x="31" y="23" width="1889" height="1177" />
</state>
<state width="882" height="329" key="GridCell.Tab.0.center/31.23.1889.1177@31.23.1889.1177" timestamp="1594693317861" />
<state width="882" height="329" key="GridCell.Tab.0.left" timestamp="1594693317861">
<state width="882" height="329" key="GridCell.Tab.0.center/31.23.1889.1177@31.23.1889.1177" timestamp="1594693733805" />
<state width="882" height="329" key="GridCell.Tab.0.left" timestamp="1594693733804">
<screen x="31" y="23" width="1889" height="1177" />
</state>
<state width="882" height="329" key="GridCell.Tab.0.left/31.23.1889.1177@31.23.1889.1177" timestamp="1594693317861" />
<state width="882" height="329" key="GridCell.Tab.0.right" timestamp="1594693317861">
<state width="882" height="329" key="GridCell.Tab.0.left/31.23.1889.1177@31.23.1889.1177" timestamp="1594693733804" />
<state width="882" height="329" key="GridCell.Tab.0.right" timestamp="1594693733805">
<screen x="31" y="23" width="1889" height="1177" />
</state>
<state width="882" height="329" key="GridCell.Tab.0.right/31.23.1889.1177@31.23.1889.1177" timestamp="1594693317861" />
<state width="882" height="329" key="GridCell.Tab.0.right/31.23.1889.1177@31.23.1889.1177" timestamp="1594693733805" />
<state x="210" y="320" key="RollbackChangesDialog" timestamp="1594173186663">
<screen x="31" y="23" width="1889" height="1177" />
</state>
......@@ -279,10 +209,10 @@
<screen x="31" y="23" width="1889" height="1177" />
</state>
<state x="31" y="250" key="SettingsEditor/31.23.1889.1177@31.23.1889.1177" timestamp="1594195630991" />
<state x="92" y="351" key="Vcs.Push.Dialog.v2" timestamp="1594645947536">
<state x="92" y="351" key="Vcs.Push.Dialog.v2" timestamp="1594693385415">
<screen x="31" y="23" width="1889" height="1177" />
</state>
<state x="92" y="351" key="Vcs.Push.Dialog.v2/31.23.1889.1177@31.23.1889.1177" timestamp="1594645947536" />
<state x="92" y="351" key="Vcs.Push.Dialog.v2/31.23.1889.1177@31.23.1889.1177" timestamp="1594693385415" />
<state x="87" y="216" key="com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser" timestamp="1594111906161">
<screen x="31" y="23" width="1889" height="1177" />
</state>
......@@ -307,9 +237,9 @@
<screen x="31" y="23" width="1889" height="1177" />
</state>
<state x="157" y="286" key="run.anything.popup/31.23.1889.1177@31.23.1889.1177" timestamp="1594188122355" />
<state x="640" y="288" width="670" height="676" key="search.everywhere.popup" timestamp="1594693134275">
<state x="640" y="288" width="670" height="676" key="search.everywhere.popup" timestamp="1594695829743">
<screen x="31" y="23" width="1889" height="1177" />
</state>
<state x="640" y="288" width="670" height="676" key="search.everywhere.popup/31.23.1889.1177@31.23.1889.1177" timestamp="1594693134275" />
<state x="640" y="288" width="670" height="676" key="search.everywhere.popup/31.23.1889.1177@31.23.1889.1177" timestamp="1594695829743" />
</component>
</project>
\ No newline at end of file
......@@ -489,7 +489,7 @@ export const SkinJson = {
"type": "text",
"props": {
"text": "第 6 关",
"size": 24.78875,
"size": 40,
"fillColor": "#df5942",
"textAlpha": 1
},
......@@ -664,19 +664,6 @@ export const SkinJson = {
"source": "活动规则背景.png"
}
},
{
"name": "规则只要字体颜色和大小,到时删掉",
"x": 96,
"y": 549,
"alpha": 1,
"type": "text",
"props": {
"text": "1、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。\n\r2、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。\r\r3、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。\r\r4、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。",
"size": 26,
"fillColor": "#892a1a",
"textAlpha": 1
}
},
{
"name": "关闭按钮",
"x": 631,
......
import { Panel } from "../../module/views/Panel";
import TextField = FYGE.TextField;
import TEXT_lINETYPE = FYGE.TEXT_lINETYPE;
import ScrollPage = FYGE.ScrollPage;
import { Tools } from "../Tools";
export class RulePanel extends Panel {
get groupNames() {
return ["RulePanel"]
}
get skinName() {
return "RulePanel"
}
closeBtn: FYGE.Button;
ruleTex: TextField;
scroll: ScrollPage;
initUi() {
}
start(data) {
super.start();
const rule = '1、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。\\n\\r2、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。\\r\\r3、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。\\r\\r4、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。1、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。\\n\\r2、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。\\r\\r3、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。\\r\\r4、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。1、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。\\n\\r2、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。\\r\\r3、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。\\r\\r4、这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案,这里是活动规则文案。'
this.ruleTex = this.addChild(Tools.getText(
rule, 26, '#892a1a',
FYGE.TEXT_ALIGN.LEFT, 570
));
this.ruleTex.lineType = TEXT_lINETYPE.MULTI;
this.scroll = this.addChild(new ScrollPage(
570, 600, this.ruleTex.textHeight + 30
));
this.scroll.position.set(96, 549);
this.scroll.view.addChild(this.ruleTex);
}
initEvents() {
super.initEvents();
}
removeEvents() {
super.removeEvents();
}
}
......@@ -7,6 +7,8 @@ import TEXT_ALIGN = FYGE.TEXT_ALIGN;
import MouseEvent = FYGE.MouseEvent;
import { changeScene } from "../../module/ctrls";
import { PlayScene } from "../scene/PlayScene";
import Tween = FYGE.Tween;
import Ease = FYGE.Ease;
export class StartPanel extends Panel {
get groupNames() {
......@@ -23,6 +25,18 @@ export class StartPanel extends Panel {
startBtn2: FYGE.Button;
startBtn: FYGE.Button;
public showAni() {
if (this.isShowing) return;
this.isShowing = true;
this.anchor.set(375, 812);
Tween.get(this)
.set({scaleX: 0, scaleY: 0})
.to({scaleX: 1, scaleY: 1}, 400, FYGE.Ease.backOut)
.call(() => {
this.isShowing = false;
});
}
initUi() {
this.checkTex.textWidth = 750;
this.checkTex.textAlign = TEXT_ALIGN.CENTER;
......@@ -75,7 +89,11 @@ export class StartTarget extends Container {
} else if (passTarget.type == 1) { // 消除元素个数
passTarget.elements.forEach((v, i) => {
this.addChild(new StartTargetItem(v)).x = pos[passTarget.elements.length - 1][i];
const targetItem = this.addChild(new StartTargetItem(v));
targetItem.x = pos[passTarget.elements.length - 1][i];
setTimeout(() => {
targetItem.playEffect();
}, i * 200);
});
}
......@@ -97,5 +115,15 @@ export class StartTargetItem extends Container {
targetTex.strokeColor = '#eb5b57';
targetTex.stroke = 3;
this.anchor.set(50, 79);
this.scale.set(0, 0);
}
// 变大的动效
public playEffect() {
Tween.get(this)
.set({scaleX: 0, scaleY: 0})
.to({scaleX: 1, scaleY: 1}, 500, Ease.backOut)
}
}
......@@ -4,6 +4,7 @@ import { changeScene } from "../../module/ctrls";
import { PlayScene } from "../scene/PlayScene";
import { StartTarget } from "./StartPanel";
import TEXT_ALIGN = FYGE.TEXT_ALIGN;
import Tween = FYGE.Tween;
export class StartPanelPrize extends Panel {
get groupNames() {
......@@ -14,6 +15,18 @@ export class StartPanelPrize extends Panel {
return "StartPanelPrize"
}
public showAni() {
if (this.isShowing) return;
this.isShowing = true;
this.anchor.set(375, 812);
Tween.get(this)
.set({scaleX: 0, scaleY: 0})
.to({scaleX: 1, scaleY: 1}, 400, FYGE.Ease.backOut)
.call(() => {
this.isShowing = false;
});
}
closeBtn: FYGE.Button;
startBtn: FYGE.Button;
startBtn2: FYGE.Button;
......
......@@ -34,19 +34,14 @@ export class MapScene extends Scene {
protected initUi() {
super.initUi();
this.scrollPage = this.addChild(new ScrollPage(
750, layers.stageHeight,
888, true, true
));
this.mapContainer = this.scrollPage.view.addChild(new Container());
this.uiLayer = this.addChild(new MapUI());
this.initMap();
this.updateMapCheck();
}
private updateMapCheck() {
......@@ -126,10 +121,6 @@ export class MapScene extends Scene {
this.scrollPage.maxDistance = maxHeight;
this.scrollPage.scrollTo(maxHeight, 0);
// MapScene.checkArr.forEach(v => {
// v.type = CHECK_TYPE.PRI;
// v.enabled = false;
// });
this.scrollToCheck(1);
}
......
......@@ -6,6 +6,8 @@ import TEXT_ALIGN = FYGE.TEXT_ALIGN;
import { RES } from "../../../module/RES";
import { Tools } from "../../Tools";
import MouseEvent = FYGE.MouseEvent;
import { showPanel } from "../../../module/ctrls";
import { RulePanel } from "../../panels/RulePanel";
export default class MapUI extends Container {
public energyBox: EnergyBox = null;
......@@ -41,6 +43,7 @@ export default class MapUI extends Container {
case this.ruleBtn:
/// TODO 规则
console.log('规则');
showPanel(RulePanel);
break;
case this.myPrizeBtn:
......
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