Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qiaqia_qx
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
邱旭
qiaqia_qx
Commits
eaac9f93
Commit
eaac9f93
authored
Jun 08, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wareHouse
parent
cd28d80c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
35 deletions
+36
-35
workspace.xml
.idea/workspace.xml
+26
-33
WareHousePanel.ts
src/panels/WareHousePanel.ts
+10
-2
No files found.
.idea/workspace.xml
View file @
eaac9f93
...
...
@@ -2,24 +2,7 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"31be0130-d27d-4740-b668-956a8050e1bf"
name=
"Default Changelist"
comment=
""
>
<change
afterPath=
"$PROJECT_DIR$/resource/wareHouse/wareHouse_item_bg.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/wareHouse/wareHouse_山核桃.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/wareHouse/wareHouse_开心果.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/wareHouse/wareHouse_板栗.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/wareHouse/wareHouse_瓜子.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/wareHouse/wareHouse_腰果.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/wareHouse/wareHouse_花生.png"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
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$/released/resource/shopPanel/shopPanel.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/released/resource/shopPanel/shopPanel.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/released/resource/shopPanel/shopPanel.png"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/released/resource/shopPanel/shopPanel.png"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/released/resource/taskPanel/taskPanel.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/released/resource/taskPanel/taskPanel.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/released/resource/taskPanel/taskPanel.png"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/released/resource/taskPanel/taskPanel.png"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/released/resource/wareHouse/wareHouse.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/released/resource/wareHouse/wareHouse.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/released/resource/wareHouse/wareHouse.png"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/released/resource/wareHouse/wareHouse.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/panels/TaskPanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/TaskPanel.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/WareHousePanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/WareHousePanel.ts"
afterDir=
"false"
/>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
...
...
@@ -103,9 +86,9 @@
</configuration>
<recent_temporary>
<list>
<item
itemvalue=
"npm.dev"
/>
<item
itemvalue=
"npm.flushRes"
/>
<item
itemvalue=
"npm.handleRes"
/>
<item
itemvalue=
"npm.dev"
/>
</list>
</recent_temporary>
</component>
...
...
@@ -129,7 +112,8 @@
<workItem
from=
"1591239841506"
duration=
"24292000"
/>
<workItem
from=
"1591321317628"
duration=
"18063000"
/>
<workItem
from=
"1591438071338"
duration=
"597000"
/>
<workItem
from=
"1591581198126"
duration=
"6225000"
/>
<workItem
from=
"1591581198126"
duration=
"7855000"
/>
<workItem
from=
"1591594488054"
duration=
"395000"
/>
</task>
<task
id=
"LOCAL-00001"
summary=
"1"
>
<created>
1591003912929
</created>
...
...
@@ -222,13 +206,21 @@
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1591583675850
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"14"
/>
<task
id=
"LOCAL-00014"
summary=
"wareHouse"
>
<created>
1591587981483
</created>
<option
name=
"number"
value=
"00014"
/>
<option
name=
"presentableId"
value=
"LOCAL-00014"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1591587981483
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"15"
/>
<servers
/>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
<option
name=
"version"
value=
"2"
/>
</component>
<component
name=
"VcsManagerConfiguration"
>
<option
name=
"CHECK_NEW_TODO"
value=
"false"
/>
<MESSAGE
value=
"1"
/>
<MESSAGE
value=
"11"
/>
<MESSAGE
value=
"111"
/>
...
...
@@ -236,43 +228,44 @@
<MESSAGE
value=
"panel"
/>
<MESSAGE
value=
"shop panel"
/>
<MESSAGE
value=
"panels"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"panels"
/>
<MESSAGE
value=
"wareHouse"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"wareHouse"
/>
</component>
<component
name=
"WindowStateProjectService"
>
<state
x=
"671"
y=
"259"
key=
"#com.intellij.ide.util.MemberChooser"
timestamp=
"1591344864454"
>
<screen
x=
"37"
y=
"23"
width=
"1643"
height=
"1027"
/>
</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=
"1591344864454"
/>
<state
x=
"467"
y=
"108"
key=
"CommitChangelistDialog2"
timestamp=
"159158
3675362
"
>
<state
x=
"467"
y=
"108"
key=
"CommitChangelistDialog2"
timestamp=
"159158
7980954
"
>
<screen
x=
"37"
y=
"23"
width=
"1643"
height=
"1027"
/>
</state>
<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=
"467"
y=
"108"
key=
"CommitChangelistDialog2/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027"
timestamp=
"159158
3675362
"
/>
<state
width=
"293"
height=
"907"
key=
"GridCell.Tab.0.bottom"
timestamp=
"15915
87717998
"
>
<state
x=
"467"
y=
"108"
key=
"CommitChangelistDialog2/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027"
timestamp=
"159158
7980954
"
/>
<state
width=
"293"
height=
"907"
key=
"GridCell.Tab.0.bottom"
timestamp=
"15915
94033795
"
>
<screen
x=
"37"
y=
"23"
width=
"1643"
height=
"1027"
/>
</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=
"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=
"15915
87717998
"
/>
<state
width=
"293"
height=
"907"
key=
"GridCell.Tab.0.center"
timestamp=
"15915
87717995
"
>
<state
width=
"293"
height=
"907"
key=
"GridCell.Tab.0.bottom/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027"
timestamp=
"15915
94033795
"
/>
<state
width=
"293"
height=
"907"
key=
"GridCell.Tab.0.center"
timestamp=
"15915
94033794
"
>
<screen
x=
"37"
y=
"23"
width=
"1643"
height=
"1027"
/>
</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=
"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=
"15915
87717995
"
/>
<state
width=
"293"
height=
"907"
key=
"GridCell.Tab.0.left"
timestamp=
"15915
87717990
"
>
<state
width=
"293"
height=
"907"
key=
"GridCell.Tab.0.center/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027"
timestamp=
"15915
94033794
"
/>
<state
width=
"293"
height=
"907"
key=
"GridCell.Tab.0.left"
timestamp=
"15915
94033793
"
>
<screen
x=
"37"
y=
"23"
width=
"1643"
height=
"1027"
/>
</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=
"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=
"15915
87717990
"
/>
<state
width=
"293"
height=
"907"
key=
"GridCell.Tab.0.right"
timestamp=
"15915
87717997
"
>
<state
width=
"293"
height=
"907"
key=
"GridCell.Tab.0.left/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027"
timestamp=
"15915
94033793
"
/>
<state
width=
"293"
height=
"907"
key=
"GridCell.Tab.0.right"
timestamp=
"15915
94033794
"
>
<screen
x=
"37"
y=
"23"
width=
"1643"
height=
"1027"
/>
</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=
"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=
"15915
87717997
"
/>
<state
width=
"293"
height=
"907"
key=
"GridCell.Tab.0.right/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027"
timestamp=
"15915
94033794
"
/>
<state
x=
"446"
y=
"278"
key=
"IDE.errors.dialog"
timestamp=
"1591150813027"
>
<screen
x=
"37"
y=
"23"
width=
"1643"
height=
"1027"
/>
</state>
...
...
@@ -282,11 +275,11 @@
</state>
<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=
"457"
y=
"276"
key=
"Vcs.Push.Dialog.v2"
timestamp=
"159158
367773
0"
>
<state
x=
"457"
y=
"276"
key=
"Vcs.Push.Dialog.v2"
timestamp=
"159158
798381
0"
>
<screen
x=
"37"
y=
"23"
width=
"1643"
height=
"1027"
/>
</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=
"457"
y=
"276"
key=
"Vcs.Push.Dialog.v2/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027"
timestamp=
"159158
367773
0"
/>
<state
x=
"457"
y=
"276"
key=
"Vcs.Push.Dialog.v2/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027"
timestamp=
"159158
798381
0"
/>
<state
x=
"417"
y=
"141"
key=
"com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser"
timestamp=
"1591269112575"
>
<screen
x=
"37"
y=
"23"
width=
"1643"
height=
"1027"
/>
</state>
...
...
src/panels/WareHousePanel.ts
View file @
eaac9f93
...
...
@@ -24,7 +24,7 @@ export default class WareHousePanel extends Panel {
this
.
closeBtn
=
this
.
addChild
(
Tool
.
getSprite
(
'closeBtn.png'
));
this
.
closeBtn
.
position
.
set
(
670
,
-
50
);
this
.
addChild
(
new
WareHouseItem
(
PLANT_TYPE
.
Cashew
))
this
.
addChild
(
new
WareHouseItem
(
PLANT_TYPE
.
Cashew
))
;
}
public
showAni
()
{
...
...
@@ -58,7 +58,6 @@ class WareHouseItem extends Container {
private
countLabel
:
TextField
;
private
_count
:
number
=
0
;
public
get
count
():
number
{
return
this
.
_count
;
}
...
...
@@ -68,6 +67,15 @@ class WareHouseItem extends Container {
this
.
countLabel
&&
(
this
.
countLabel
.
text
=
`数量:
${
this
.
_count
}
`
);
}
private
_type
:
PLANT_TYPE
;
public
get
type
():
PLANT_TYPE
{
return
this
.
_type
;
}
public
set
type
(
type
:
PLANT_TYPE
)
{
this
.
_type
=
type
;
}
constructor
(
type
:
PLANT_TYPE
)
{
super
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment