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
Expand all
Show 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
This diff is collapsed.
Click to expand it.
src/panels/WareHousePanel.ts
View file @
eaac9f93
...
@@ -24,7 +24,7 @@ export default class WareHousePanel extends Panel {
...
@@ -24,7 +24,7 @@ export default class WareHousePanel extends Panel {
this
.
closeBtn
=
this
.
addChild
(
Tool
.
getSprite
(
'closeBtn.png'
));
this
.
closeBtn
=
this
.
addChild
(
Tool
.
getSprite
(
'closeBtn.png'
));
this
.
closeBtn
.
position
.
set
(
670
,
-
50
);
this
.
closeBtn
.
position
.
set
(
670
,
-
50
);
this
.
addChild
(
new
WareHouseItem
(
PLANT_TYPE
.
Cashew
))
this
.
addChild
(
new
WareHouseItem
(
PLANT_TYPE
.
Cashew
))
;
}
}
public
showAni
()
{
public
showAni
()
{
...
@@ -58,7 +58,6 @@ class WareHouseItem extends Container {
...
@@ -58,7 +58,6 @@ class WareHouseItem extends Container {
private
countLabel
:
TextField
;
private
countLabel
:
TextField
;
private
_count
:
number
=
0
;
private
_count
:
number
=
0
;
public
get
count
():
number
{
public
get
count
():
number
{
return
this
.
_count
;
return
this
.
_count
;
}
}
...
@@ -68,6 +67,15 @@ class WareHouseItem extends Container {
...
@@ -68,6 +67,15 @@ class WareHouseItem extends Container {
this
.
countLabel
&&
(
this
.
countLabel
.
text
=
`数量:
${
this
.
_count
}
`
);
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
)
{
constructor
(
type
:
PLANT_TYPE
)
{
super
();
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