Commit 2c7a7b8c authored by haiyoucuv's avatar haiyoucuv

panel

parent 15fc1da5
...@@ -2,17 +2,10 @@ ...@@ -2,17 +2,10 @@
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="31be0130-d27d-4740-b668-956a8050e1bf" name="Default Changelist" comment=""> <list default="true" id="31be0130-d27d-4740-b668-956a8050e1bf" name="Default Changelist" comment="">
<change afterPath="$PROJECT_DIR$/resource/taskPanel/task_buy_icon.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/index.html" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/panels/ExRecordPanel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/ExRecordPanel.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/module/views/Panel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/module/views/Panel.ts" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/panels/ShopPanel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/ShopPanel.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/res.json" beforeDir="false" afterPath="$PROJECT_DIR$/released/resource/res.json" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/panels/WareHousePanel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/WareHousePanel.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/panel/comm_bg.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/panel/comm_bg.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/const/staticData.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/const/staticData.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/panels/ExSuccessPanel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/ExSuccessPanel.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/parts/Game/Land.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/parts/Game/Land.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/parts/UI/UILayer.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/parts/UI/UILayer.ts" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/parts/UI/UILayer.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/parts/UI/UILayer.ts" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
...@@ -120,7 +113,7 @@ ...@@ -120,7 +113,7 @@
<workItem from="1591166639510" duration="12991000" /> <workItem from="1591166639510" duration="12991000" />
<workItem from="1591234777751" duration="4647000" /> <workItem from="1591234777751" duration="4647000" />
<workItem from="1591239841506" duration="24292000" /> <workItem from="1591239841506" duration="24292000" />
<workItem from="1591321317628" duration="10825000" /> <workItem from="1591321317628" duration="12729000" />
</task> </task>
<task id="LOCAL-00001" summary="1"> <task id="LOCAL-00001" summary="1">
<created>1591003912929</created> <created>1591003912929</created>
...@@ -185,7 +178,14 @@ ...@@ -185,7 +178,14 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1591269327197</updated> <updated>1591269327197</updated>
</task> </task>
<option name="localTasksCounter" value="10" /> <task id="LOCAL-00010" summary="task">
<created>1591339285033</created>
<option name="number" value="00010" />
<option name="presentableId" value="LOCAL-00010" />
<option name="project" value="LOCAL" />
<updated>1591339285033</updated>
</task>
<option name="localTasksCounter" value="11" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
...@@ -195,43 +195,44 @@ ...@@ -195,43 +195,44 @@
<MESSAGE value="1" /> <MESSAGE value="1" />
<MESSAGE value="11" /> <MESSAGE value="11" />
<MESSAGE value="111" /> <MESSAGE value="111" />
<option name="LAST_COMMIT_MESSAGE" value="111" /> <MESSAGE value="task" />
<option name="LAST_COMMIT_MESSAGE" value="task" />
</component> </component>
<component name="WindowStateProjectService"> <component name="WindowStateProjectService">
<state x="671" y="259" key="#com.intellij.ide.util.MemberChooser" timestamp="1591325779617"> <state x="671" y="259" key="#com.intellij.ide.util.MemberChooser" timestamp="1591340737497">
<screen x="37" y="23" width="1643" height="1027" /> <screen x="37" y="23" width="1643" height="1027" />
</state> </state>
<state x="671" y="259" key="#com.intellij.ide.util.MemberChooser/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591325779617" /> <state x="671" y="259" key="#com.intellij.ide.util.MemberChooser/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591340737497" />
<state x="467" y="108" key="CommitChangelistDialog2" timestamp="1591269326506"> <state x="467" y="108" key="CommitChangelistDialog2" timestamp="1591339284264">
<screen x="37" y="23" width="1643" height="1027" /> <screen x="37" y="23" width="1643" height="1027" />
</state> </state>
<state x="466" y="108" key="CommitChangelistDialog2/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1591003912498" /> <state x="466" y="108" key="CommitChangelistDialog2/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1591003912498" />
<state x="2182" y="-102" key="CommitChangelistDialog2/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591189619717" /> <state x="2182" y="-102" key="CommitChangelistDialog2/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591189619717" />
<state x="467" y="108" key="CommitChangelistDialog2/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591269326506" /> <state x="467" y="108" key="CommitChangelistDialog2/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591339284264" />
<state width="293" height="907" key="GridCell.Tab.0.bottom" timestamp="1591338480781"> <state width="293" height="907" key="GridCell.Tab.0.bottom" timestamp="1591340937796">
<screen x="37" y="23" width="1643" height="1027" /> <screen x="37" y="23" width="1643" height="1027" />
</state> </state>
<state width="499" height="907" key="GridCell.Tab.0.bottom/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1591065953118" /> <state width="499" height="907" key="GridCell.Tab.0.bottom/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1591065953118" />
<state width="257" height="1057" key="GridCell.Tab.0.bottom/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591189627828" /> <state width="257" height="1057" key="GridCell.Tab.0.bottom/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591189627828" />
<state width="293" height="907" key="GridCell.Tab.0.bottom/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591338480781" /> <state width="293" height="907" key="GridCell.Tab.0.bottom/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591340937796" />
<state width="293" height="907" key="GridCell.Tab.0.center" timestamp="1591338480780"> <state width="293" height="907" key="GridCell.Tab.0.center" timestamp="1591340937781">
<screen x="37" y="23" width="1643" height="1027" /> <screen x="37" y="23" width="1643" height="1027" />
</state> </state>
<state width="499" height="907" key="GridCell.Tab.0.center/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1591065953116" /> <state width="499" height="907" key="GridCell.Tab.0.center/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1591065953116" />
<state width="257" height="1057" key="GridCell.Tab.0.center/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591189627827" /> <state width="257" height="1057" key="GridCell.Tab.0.center/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591189627827" />
<state width="293" height="907" key="GridCell.Tab.0.center/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591338480780" /> <state width="293" height="907" key="GridCell.Tab.0.center/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591340937781" />
<state width="293" height="907" key="GridCell.Tab.0.left" timestamp="1591338480780"> <state width="293" height="907" key="GridCell.Tab.0.left" timestamp="1591340937777">
<screen x="37" y="23" width="1643" height="1027" /> <screen x="37" y="23" width="1643" height="1027" />
</state> </state>
<state width="499" height="907" key="GridCell.Tab.0.left/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1591065953114" /> <state width="499" height="907" key="GridCell.Tab.0.left/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1591065953114" />
<state width="257" height="1057" key="GridCell.Tab.0.left/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591189627825" /> <state width="257" height="1057" key="GridCell.Tab.0.left/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591189627825" />
<state width="293" height="907" key="GridCell.Tab.0.left/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591338480780" /> <state width="293" height="907" key="GridCell.Tab.0.left/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591340937777" />
<state width="293" height="907" key="GridCell.Tab.0.right" timestamp="1591338480780"> <state width="293" height="907" key="GridCell.Tab.0.right" timestamp="1591340937792">
<screen x="37" y="23" width="1643" height="1027" /> <screen x="37" y="23" width="1643" height="1027" />
</state> </state>
<state width="499" height="907" key="GridCell.Tab.0.right/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1591065953118" /> <state width="499" height="907" key="GridCell.Tab.0.right/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1591065953118" />
<state width="257" height="1057" key="GridCell.Tab.0.right/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591189627828" /> <state width="257" height="1057" key="GridCell.Tab.0.right/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591189627828" />
<state width="293" height="907" key="GridCell.Tab.0.right/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591338480780" /> <state width="293" height="907" key="GridCell.Tab.0.right/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591340937792" />
<state x="446" y="278" key="IDE.errors.dialog" timestamp="1591150813027"> <state x="446" y="278" key="IDE.errors.dialog" timestamp="1591150813027">
<screen x="37" y="23" width="1643" height="1027" /> <screen x="37" y="23" width="1643" height="1027" />
</state> </state>
...@@ -241,11 +242,11 @@ ...@@ -241,11 +242,11 @@
</state> </state>
<state x="614" y="245" key="RollbackChangesDialog/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1590993046653" /> <state x="614" y="245" key="RollbackChangesDialog/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1590993046653" />
<state x="615" y="245" key="RollbackChangesDialog/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591077661188" /> <state x="615" y="245" key="RollbackChangesDialog/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591077661188" />
<state x="457" y="276" key="Vcs.Push.Dialog.v2" timestamp="1591269329524"> <state x="457" y="276" key="Vcs.Push.Dialog.v2" timestamp="1591339288114">
<screen x="37" y="23" width="1643" height="1027" /> <screen x="37" y="23" width="1643" height="1027" />
</state> </state>
<state x="2171" y="91" key="Vcs.Push.Dialog.v2/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591189622538" /> <state x="2171" y="91" key="Vcs.Push.Dialog.v2/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591189622538" />
<state x="457" y="276" key="Vcs.Push.Dialog.v2/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591269329524" /> <state x="457" y="276" key="Vcs.Push.Dialog.v2/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591339288114" />
<state x="417" y="141" key="com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser" timestamp="1591269112575"> <state x="417" y="141" key="com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser" timestamp="1591269112575">
<screen x="37" y="23" width="1643" height="1027" /> <screen x="37" y="23" width="1643" height="1027" />
</state> </state>
...@@ -258,11 +259,11 @@ ...@@ -258,11 +259,11 @@
<screen x="35" y="23" width="1645" height="1027" /> <screen x="35" y="23" width="1645" height="1027" />
</state> </state>
<state x="586" y="314" key="refactoring.ChangeSignatureDialog/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1590980819551" /> <state x="586" y="314" key="refactoring.ChangeSignatureDialog/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1590980819551" />
<state x="523" y="250" width="670" height="676" key="search.everywhere.popup" timestamp="1591336423130"> <state x="523" y="250" width="670" height="676" key="search.everywhere.popup" timestamp="1591340914153">
<screen x="37" y="23" width="1643" height="1027" /> <screen x="37" y="23" width="1643" height="1027" />
</state> </state>
<state x="522" y="250" width="670" height="676" key="search.everywhere.popup/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1591066027960" /> <state x="522" y="250" width="670" height="676" key="search.everywhere.popup/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1591066027960" />
<state x="2248" y="61" width="783" height="775" key="search.everywhere.popup/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591271608415" /> <state x="2248" y="61" width="783" height="775" key="search.everywhere.popup/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591271608415" />
<state x="523" y="250" width="670" height="676" key="search.everywhere.popup/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591336423130" /> <state x="523" y="250" width="670" height="676" key="search.everywhere.popup/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591340914153" />
</component> </component>
</project> </project>
\ No newline at end of file
import { Panel } from "../../module/views/Panel"; import { Panel } from "../../module/views/Panel";
import { Tool } from "../Tools"; import { Tool } from "../Tools";
import Sprite = FYGE.Sprite; import Sprite = FYGE.Sprite;
import { layers } from "../../module/views/layers";
import Tween = FYGE.Tween;
import ScrollList = FYGE.ScrollList;
import Container = FYGE.Container;
import IScrollListItem = FYGE.IScrollListItem;
export default class ExRecordPanel extends Panel { export default class ExRecordPanel extends Panel {
get groupNames() { get groupNames() {
...@@ -8,15 +13,40 @@ export default class ExRecordPanel extends Panel { ...@@ -8,15 +13,40 @@ export default class ExRecordPanel extends Panel {
} }
closeBtn: Sprite; closeBtn: Sprite;
scroll: ScrollList;
initUi() { initUi() {
this.addChild(Tool.getSprite("rule_bg.png")); this.addChild(Tool.getSprite("comm_bg.png"))
.position.set(0, 65);
let title = this.addChild(Tool.getSprite("record_icon.png"));
title.position.set((this.width - title.width) / 2, 0);
this.closeBtn = this.addChild(Tool.getSprite('closeBtn.png')); this.closeBtn = this.addChild(Tool.getSprite('closeBtn.png'));
this.closeBtn.position.set(600, 350); this.closeBtn.position.set(670, -50);
this.scroll = this.addChild(new ScrollList(RecordItem, 653, 200, 654, 830));
this.scroll.position.set((this.width - this.scroll.width) / 2, 210);
this.scroll.updateData([
1, 2, 3, 4, 5, 6
]);
} }
public showAni() {
if (this.isShowing) return;
this.isShowing = true;
this.y = this.height;
const _y = layers.height - this.height + 30;
Tween.get(this)
.to({y: _y}, 500, FYGE.Ease.quartOut)
.call(() => {
this.isShowing = false;
});
}
start(data) { start(data) {
super.start(); super.start();
} }
...@@ -30,3 +60,20 @@ export default class ExRecordPanel extends Panel { ...@@ -30,3 +60,20 @@ export default class ExRecordPanel extends Panel {
} }
} }
class RecordItem extends Container implements IScrollListItem {
public data: number;
public id: number;
public initData(id: number, data: any): void {
if (!data) return;
}
constructor() {
super();
this.addChild(Tool.getSprite('record_item_bg.png'));
}
}
import { Panel } from "../../module/views/Panel"; import { Panel } from "../../module/views/Panel";
import { Tool } from "../Tools"; import { Tool } from "../Tools";
import Sprite = FYGE.Sprite; import Sprite = FYGE.Sprite;
import { layers } from "../../module/views/layers";
import Tween = FYGE.Tween;
export default class ShopPanel extends Panel { export default class ShopPanel extends Panel {
get groupNames() { get groupNames() {
...@@ -10,11 +12,27 @@ export default class ShopPanel extends Panel { ...@@ -10,11 +12,27 @@ export default class ShopPanel extends Panel {
closeBtn: Sprite; closeBtn: Sprite;
initUi() { initUi() {
this.addChild(Tool.getSprite("rule_bg.png")); this.addChild(Tool.getSprite("comm_bg.png"))
.position.set(0, 65);
let title = this.addChild(Tool.getSprite("shop_icon.png"));
title.position.set((this.width - title.width) / 2, 0);
this.closeBtn = this.addChild(Tool.getSprite('closeBtn.png')); this.closeBtn = this.addChild(Tool.getSprite('closeBtn.png'));
this.closeBtn.position.set(600, 350); this.closeBtn.position.set(670, -50);
}
public showAni() {
if (this.isShowing) return;
this.isShowing = true;
this.y = this.height;
const _y = layers.height - this.height + 30;
Tween.get(this)
.to({y: _y}, 500, FYGE.Ease.quartOut)
.call(() => {
this.isShowing = false;
});
} }
start(data) { start(data) {
......
import { Panel } from "../../module/views/Panel"; import { Panel } from "../../module/views/Panel";
import { Tool } from "../Tools"; import { Tool } from "../Tools";
import Sprite = FYGE.Sprite; import Sprite = FYGE.Sprite;
import { layers } from "../../module/views/layers";
import Tween = FYGE.Tween;
import Ease = FYGE.Ease;
export default class WareHousePanel extends Panel { export default class WareHousePanel extends Panel {
get groupNames() { get groupNames() {
...@@ -10,13 +13,29 @@ export default class WareHousePanel extends Panel { ...@@ -10,13 +13,29 @@ export default class WareHousePanel extends Panel {
closeBtn: Sprite; closeBtn: Sprite;
initUi() { initUi() {
this.addChild(Tool.getSprite("rule_bg.png")); this.addChild(Tool.getSprite("comm_bg.png"))
this.closeBtn = this.addChild(Tool.getSprite('closeBtn.png')); .position.set(0, 65);
this.closeBtn.position.set(600, 350);
let title = this.addChild(Tool.getSprite("wareHouse_icon.png"));
title.position.set((this.width - title.width) / 2, 0);
this.closeBtn = this.addChild(Tool.getSprite('closeBtn.png'));
this.closeBtn.position.set(670, -50);
} }
public showAni() {
if (this.isShowing) return;
this.isShowing = true;
this.y = this.height;
const _y = layers.height - this.height + 30;
Tween.get(this)
.to({y: _y}, 500, Ease.quartOut)
.call(() => {
this.isShowing = false;
});
}
start(data) { start(data) {
super.start(); super.start();
} }
......
...@@ -9,6 +9,7 @@ import RulePanel from "../../panels/RulePanel"; ...@@ -9,6 +9,7 @@ import RulePanel from "../../panels/RulePanel";
import TaskPanel from "../../panels/TaskPanel"; import TaskPanel from "../../panels/TaskPanel";
import WareHousePanel from "../../panels/WareHousePanel"; import WareHousePanel from "../../panels/WareHousePanel";
import ShopPanel from "../../panels/ShopPanel"; import ShopPanel from "../../panels/ShopPanel";
import ExRecordPanel from "../../panels/ExRecordPanel";
export class UILayer extends Container { export class UILayer extends Container {
...@@ -64,7 +65,8 @@ export class UILayer extends Container { ...@@ -64,7 +65,8 @@ export class UILayer extends Container {
break; break;
case this.ruleBtn: case this.ruleBtn:
console.log('点击了规则'); console.log('点击了规则');
PanelCtrl.instance.show(RulePanel); // PanelCtrl.instance.show(RulePanel);
PanelCtrl.instance.show(ExRecordPanel);
break; break;
case this.adBtn: case this.adBtn:
console.log('点击了广告'); console.log('点击了广告');
......
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