Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
babycare_xiaoxiao
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
翁阳
babycare_xiaoxiao
Commits
5f922342
Commit
5f922342
authored
Sep 23, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
换了点皮
parent
5649733d
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
123 additions
and
96 deletions
+123
-96
workspace.xml
.idea/workspace.xml
+29
-29
table.png
resource/playScene/table.png
+0
-0
res.json
resource/res.json
+1
-1
ResJson.ts
src/ResJson.ts
+1
-1
PlayScene.ts
src/scene/PlayScene.ts
+68
-53
PropBtnCon.ts
src/something/uis/PropBtnCon.ts
+20
-8
PropGuide.ts
src/something/uis/PropGuide.ts
+4
-4
No files found.
.idea/workspace.xml
View file @
5f922342
This diff is collapsed.
Click to expand it.
resource/playScene/table.png
View replaced file @
5649733d
View file @
5f922342
59.8 KB
|
W:
|
H:
56.9 KB
|
W:
|
H:
2-up
Swipe
Onion skin
resource/res.json
View file @
5f922342
...
@@ -113,7 +113,7 @@
...
@@ -113,7 +113,7 @@
"name"
:
"mapWhaleEffect"
"name"
:
"mapWhaleEffect"
},
},
{
{
"keys"
:
"blueDoorBg.png,bonusFra0.png,bonusFra1.png,bonusFra10.png,bonusFra11.png,bonusFra2.png,bonusFra3.png,bonusFra4.png,bonusFra5.png,bonusFra6.png,bonusFra7.png,bonusFra8.png,bonusFra9.png,bonusShoot.png,boom0.png,boom1.png,boom10.png,boom11.png,boom12.png,boom13.png,boom14.png,boom15.png,boom16.png,boom17.png,boom18.png,boom19.png,boom2.png,boom20.png,boom3.png,boom4.png,boom5.png,boom6.png,boom7.png,boom8.png,boom9.png,brownBallFace.png,bubbleStar1.png,bubbleStar10.png,bubbleStar11.png,bubbleStar12.png,bubbleStar13.png,bubbleStar14.png,bubbleStar15.png,bubbleStar16.png,bubbleStar17.png,bubbleStar18.png,bubbleStar19.png,bubbleStar2.png,bubbleStar3.png,bubbleStar4.png,bubbleStar5.png,bubbleStar6.png,bubbleStar7.png,bubbleStar8.png,bubbleStar9.png,bubleEle0.png,bubleEle1.png,bubleEle2.png,bubleEle3.png,bubleEle4.png,chapterNum0.png,chapterNum1.png,chapterNum2.png,chapterNum3.png,chapterNum4.png,chapterNum5.png,chapterNum6.png,chapterNum7.png,chapterNum8.png,chapterNum9.png,chapterNum关.png,chapterNum第.png,chooseRect.png,doorClosed.png,doorOpen.png,eggPiece1.png,eggPiece2.png,eggPiece3.png,eggPiece4.png,eggPiece5.png,eggStatus0.png,eggStatus1.png,eggStatus2.png,ele0Exp.png,ele1Exp.png,ele2Exp.png,ele3Exp.png,ele4Exp.png,exLighting0.png,exLighting10.png,exLighting13.png,exLighting15.png,exLighting17.png,exLighting18.png,exLighting2.png,exLighting20.png,exLighting22.png,exLighting24.png,exLighting26.png,exLighting28.png,exLighting31.png,exLighting33.png,exLighting4.png,exLighting6.png,exLighting8.png,eyeDownLeft.png,eyeDownRight.png,eyeSingle.png,gameGuideBoard.png,greenCircleDown.png,greenCircleUp.png,greyBallFace.png,guidePropBoom.png,guidePropCow.png,guidePropHammer.png,guidePropHand.png,guidePropMsgPanel.png,guidePropShoe.png,hairballDisBg.png,hairballPiece1.png,hairballPiece2.png,hairballPiece3.png,hairballPiece4.png,hairballPiece5.png,hairballPiece6.png,hairballPiece7.png,hairballPiece8.png,hairballPiece9.png,ice2.png,ice3.png,ice4.png,ice5.png,ice6.png,jellyArrow.png,leftArrow.png,lightedStar.png,lineLight.png,lockVine.png,magicLion.png,magicLionBg.png,main_mapbottom.png,musicOff.png,musicOn.png,playBg.jpg,propNum0.png,propNum1.png,propNum2.png,propNum3.png,propNum4.png,propNum5.png,propNum6.png,propNum7.png,propNum8.png,propNum9.png,rectLat.png,rectLatWhite.png,redDoorBg.png,rightArrow.png,rightMark.png,rock2.png,rock3.png,rock4.png,rock5.png,rock6.png,scoreNum0.png,scoreNum1.png,scoreNum2.png,scoreNum3.png,scoreNum4.png,scoreNum5.png,scoreNum6.png,scoreNum7.png,scoreNum8.png,scoreNum9.png,scoreNum关.png,scoreNum冒号.png,scoreNum分.png,scoreNum数.png,scoreNum通.png,settingBg.png,settingBtn.png,starProgress.png,stepAni1.png,stepAni10.png,stepAni11.png,stepAni2.png,stepAni3.png,stepAni4.png,stepAni5.png,stepAni6.png,stepAni7.png,stepAni8.png,stepAni9.png,stepNum0.png,stepNum1.png,stepNum2.png,stepNum3.png,stepNum4.png,stepNum5.png,stepNum6.png,stepNum7.png,stepNum8.png,stepNum9.png,table.png,tarNum0.png,tarNum1.png,tarNum2.png,tarNum3.png,tarNum4.png,tarNum5.png,tarNum6.png,tarNum7.png,tarNum8.png,tarNum9.png,topBg.png,unlightedStar.png,yellowCircleDown.png,yellowCircleUp.png,yellowDoorBg.png"
,
"keys"
:
"blueDoorBg.png,bonusFra0.png,bonusFra1.png,bonusFra10.png,bonusFra11.png,bonusFra2.png,bonusFra3.png,bonusFra4.png,bonusFra5.png,bonusFra6.png,bonusFra7.png,bonusFra8.png,bonusFra9.png,bonusShoot.png,boom0.png,boom1.png,boom10.png,boom11.png,boom12.png,boom13.png,boom14.png,boom15.png,boom16.png,boom17.png,boom18.png,boom19.png,boom2.png,boom20.png,boom3.png,boom4.png,boom5.png,boom6.png,boom7.png,boom8.png,boom9.png,brownBallFace.png,bubbleStar1.png,bubbleStar10.png,bubbleStar11.png,bubbleStar12.png,bubbleStar13.png,bubbleStar14.png,bubbleStar15.png,bubbleStar16.png,bubbleStar17.png,bubbleStar18.png,bubbleStar19.png,bubbleStar2.png,bubbleStar3.png,bubbleStar4.png,bubbleStar5.png,bubbleStar6.png,bubbleStar7.png,bubbleStar8.png,bubbleStar9.png,bubleEle0.png,bubleEle1.png,bubleEle2.png,bubleEle3.png,bubleEle4.png,chapterNum0.png,chapterNum1.png,chapterNum2.png,chapterNum3.png,chapterNum4.png,chapterNum5.png,chapterNum6.png,chapterNum7.png,chapterNum8.png,chapterNum9.png,chapterNum关.png,chapterNum第.png,chooseRect.png,doorClosed.png,doorOpen.png,eggPiece1.png,eggPiece2.png,eggPiece3.png,eggPiece4.png,eggPiece5.png,eggStatus0.png,eggStatus1.png,eggStatus2.png,ele0Exp.png,ele1Exp.png,ele2Exp.png,ele3Exp.png,ele4Exp.png,exLighting0.png,exLighting10.png,exLighting13.png,exLighting15.png,exLighting17.png,exLighting18.png,exLighting2.png,exLighting20.png,exLighting22.png,exLighting24.png,exLighting26.png,exLighting28.png,exLighting31.png,exLighting33.png,exLighting4.png,exLighting6.png,exLighting8.png,eyeDownLeft.png,eyeDownRight.png,eyeSingle.png,gameGuideBoard.png,greenCircleDown.png,greenCircleUp.png,greyBallFace.png,guidePropBoom.png,guidePropCow.png,guidePropHammer.png,guidePropHand.png,guidePropMsgPanel.png,guidePropShoe.png,hairballDisBg.png,hairballPiece1.png,hairballPiece2.png,hairballPiece3.png,hairballPiece4.png,hairballPiece5.png,hairballPiece6.png,hairballPiece7.png,hairballPiece8.png,hairballPiece9.png,ice2.png,ice3.png,ice4.png,ice5.png,ice6.png,jellyArrow.png,leftArrow.png,lightedStar.png,lineLight.png,lockVine.png,magicLion.png,magicLionBg.png,main_mapbottom.png,musicOff.png,musicOn.png,playBg.jpg,propNum0.png,propNum1.png,propNum2.png,propNum3.png,propNum4.png,propNum5.png,propNum6.png,propNum7.png,propNum8.png,propNum9.png,
prop_count_bg.png,
rectLat.png,rectLatWhite.png,redDoorBg.png,rightArrow.png,rightMark.png,rock2.png,rock3.png,rock4.png,rock5.png,rock6.png,scoreNum0.png,scoreNum1.png,scoreNum2.png,scoreNum3.png,scoreNum4.png,scoreNum5.png,scoreNum6.png,scoreNum7.png,scoreNum8.png,scoreNum9.png,scoreNum关.png,scoreNum冒号.png,scoreNum分.png,scoreNum数.png,scoreNum通.png,settingBg.png,settingBtn.png,starProgress.png,stepAni1.png,stepAni10.png,stepAni11.png,stepAni2.png,stepAni3.png,stepAni4.png,stepAni5.png,stepAni6.png,stepAni7.png,stepAni8.png,stepAni9.png,stepNum0.png,stepNum1.png,stepNum2.png,stepNum3.png,stepNum4.png,stepNum5.png,stepNum6.png,stepNum7.png,stepNum8.png,stepNum9.png,table.png,tarNum0.png,tarNum1.png,tarNum2.png,tarNum3.png,tarNum4.png,tarNum5.png,tarNum6.png,tarNum7.png,tarNum8.png,tarNum9.png,topBg.png,unlightedStar.png,yellowCircleDown.png,yellowCircleUp.png,yellowDoorBg.png"
,
"name"
:
"playScene"
"name"
:
"playScene"
},
},
{
{
...
...
src/ResJson.ts
View file @
5f922342
...
@@ -113,7 +113,7 @@ export const ResJson = {
...
@@ -113,7 +113,7 @@ export const ResJson = {
"name"
:
"mapWhaleEffect"
"name"
:
"mapWhaleEffect"
},
},
{
{
"keys"
:
"blueDoorBg.png,bonusFra0.png,bonusFra1.png,bonusFra10.png,bonusFra11.png,bonusFra2.png,bonusFra3.png,bonusFra4.png,bonusFra5.png,bonusFra6.png,bonusFra7.png,bonusFra8.png,bonusFra9.png,bonusShoot.png,boom0.png,boom1.png,boom10.png,boom11.png,boom12.png,boom13.png,boom14.png,boom15.png,boom16.png,boom17.png,boom18.png,boom19.png,boom2.png,boom20.png,boom3.png,boom4.png,boom5.png,boom6.png,boom7.png,boom8.png,boom9.png,brownBallFace.png,bubbleStar1.png,bubbleStar10.png,bubbleStar11.png,bubbleStar12.png,bubbleStar13.png,bubbleStar14.png,bubbleStar15.png,bubbleStar16.png,bubbleStar17.png,bubbleStar18.png,bubbleStar19.png,bubbleStar2.png,bubbleStar3.png,bubbleStar4.png,bubbleStar5.png,bubbleStar6.png,bubbleStar7.png,bubbleStar8.png,bubbleStar9.png,bubleEle0.png,bubleEle1.png,bubleEle2.png,bubleEle3.png,bubleEle4.png,chapterNum0.png,chapterNum1.png,chapterNum2.png,chapterNum3.png,chapterNum4.png,chapterNum5.png,chapterNum6.png,chapterNum7.png,chapterNum8.png,chapterNum9.png,chapterNum关.png,chapterNum第.png,chooseRect.png,doorClosed.png,doorOpen.png,eggPiece1.png,eggPiece2.png,eggPiece3.png,eggPiece4.png,eggPiece5.png,eggStatus0.png,eggStatus1.png,eggStatus2.png,ele0Exp.png,ele1Exp.png,ele2Exp.png,ele3Exp.png,ele4Exp.png,exLighting0.png,exLighting10.png,exLighting13.png,exLighting15.png,exLighting17.png,exLighting18.png,exLighting2.png,exLighting20.png,exLighting22.png,exLighting24.png,exLighting26.png,exLighting28.png,exLighting31.png,exLighting33.png,exLighting4.png,exLighting6.png,exLighting8.png,eyeDownLeft.png,eyeDownRight.png,eyeSingle.png,gameGuideBoard.png,greenCircleDown.png,greenCircleUp.png,greyBallFace.png,guidePropBoom.png,guidePropCow.png,guidePropHammer.png,guidePropHand.png,guidePropMsgPanel.png,guidePropShoe.png,hairballDisBg.png,hairballPiece1.png,hairballPiece2.png,hairballPiece3.png,hairballPiece4.png,hairballPiece5.png,hairballPiece6.png,hairballPiece7.png,hairballPiece8.png,hairballPiece9.png,ice2.png,ice3.png,ice4.png,ice5.png,ice6.png,jellyArrow.png,leftArrow.png,lightedStar.png,lineLight.png,lockVine.png,magicLion.png,magicLionBg.png,main_mapbottom.png,musicOff.png,musicOn.png,playBg.jpg,propNum0.png,propNum1.png,propNum2.png,propNum3.png,propNum4.png,propNum5.png,propNum6.png,propNum7.png,propNum8.png,propNum9.png,rectLat.png,rectLatWhite.png,redDoorBg.png,rightArrow.png,rightMark.png,rock2.png,rock3.png,rock4.png,rock5.png,rock6.png,scoreNum0.png,scoreNum1.png,scoreNum2.png,scoreNum3.png,scoreNum4.png,scoreNum5.png,scoreNum6.png,scoreNum7.png,scoreNum8.png,scoreNum9.png,scoreNum关.png,scoreNum冒号.png,scoreNum分.png,scoreNum数.png,scoreNum通.png,settingBg.png,settingBtn.png,starProgress.png,stepAni1.png,stepAni10.png,stepAni11.png,stepAni2.png,stepAni3.png,stepAni4.png,stepAni5.png,stepAni6.png,stepAni7.png,stepAni8.png,stepAni9.png,stepNum0.png,stepNum1.png,stepNum2.png,stepNum3.png,stepNum4.png,stepNum5.png,stepNum6.png,stepNum7.png,stepNum8.png,stepNum9.png,table.png,tarNum0.png,tarNum1.png,tarNum2.png,tarNum3.png,tarNum4.png,tarNum5.png,tarNum6.png,tarNum7.png,tarNum8.png,tarNum9.png,topBg.png,unlightedStar.png,yellowCircleDown.png,yellowCircleUp.png,yellowDoorBg.png"
,
"keys"
:
"blueDoorBg.png,bonusFra0.png,bonusFra1.png,bonusFra10.png,bonusFra11.png,bonusFra2.png,bonusFra3.png,bonusFra4.png,bonusFra5.png,bonusFra6.png,bonusFra7.png,bonusFra8.png,bonusFra9.png,bonusShoot.png,boom0.png,boom1.png,boom10.png,boom11.png,boom12.png,boom13.png,boom14.png,boom15.png,boom16.png,boom17.png,boom18.png,boom19.png,boom2.png,boom20.png,boom3.png,boom4.png,boom5.png,boom6.png,boom7.png,boom8.png,boom9.png,brownBallFace.png,bubbleStar1.png,bubbleStar10.png,bubbleStar11.png,bubbleStar12.png,bubbleStar13.png,bubbleStar14.png,bubbleStar15.png,bubbleStar16.png,bubbleStar17.png,bubbleStar18.png,bubbleStar19.png,bubbleStar2.png,bubbleStar3.png,bubbleStar4.png,bubbleStar5.png,bubbleStar6.png,bubbleStar7.png,bubbleStar8.png,bubbleStar9.png,bubleEle0.png,bubleEle1.png,bubleEle2.png,bubleEle3.png,bubleEle4.png,chapterNum0.png,chapterNum1.png,chapterNum2.png,chapterNum3.png,chapterNum4.png,chapterNum5.png,chapterNum6.png,chapterNum7.png,chapterNum8.png,chapterNum9.png,chapterNum关.png,chapterNum第.png,chooseRect.png,doorClosed.png,doorOpen.png,eggPiece1.png,eggPiece2.png,eggPiece3.png,eggPiece4.png,eggPiece5.png,eggStatus0.png,eggStatus1.png,eggStatus2.png,ele0Exp.png,ele1Exp.png,ele2Exp.png,ele3Exp.png,ele4Exp.png,exLighting0.png,exLighting10.png,exLighting13.png,exLighting15.png,exLighting17.png,exLighting18.png,exLighting2.png,exLighting20.png,exLighting22.png,exLighting24.png,exLighting26.png,exLighting28.png,exLighting31.png,exLighting33.png,exLighting4.png,exLighting6.png,exLighting8.png,eyeDownLeft.png,eyeDownRight.png,eyeSingle.png,gameGuideBoard.png,greenCircleDown.png,greenCircleUp.png,greyBallFace.png,guidePropBoom.png,guidePropCow.png,guidePropHammer.png,guidePropHand.png,guidePropMsgPanel.png,guidePropShoe.png,hairballDisBg.png,hairballPiece1.png,hairballPiece2.png,hairballPiece3.png,hairballPiece4.png,hairballPiece5.png,hairballPiece6.png,hairballPiece7.png,hairballPiece8.png,hairballPiece9.png,ice2.png,ice3.png,ice4.png,ice5.png,ice6.png,jellyArrow.png,leftArrow.png,lightedStar.png,lineLight.png,lockVine.png,magicLion.png,magicLionBg.png,main_mapbottom.png,musicOff.png,musicOn.png,playBg.jpg,propNum0.png,propNum1.png,propNum2.png,propNum3.png,propNum4.png,propNum5.png,propNum6.png,propNum7.png,propNum8.png,propNum9.png,
prop_count_bg.png,
rectLat.png,rectLatWhite.png,redDoorBg.png,rightArrow.png,rightMark.png,rock2.png,rock3.png,rock4.png,rock5.png,rock6.png,scoreNum0.png,scoreNum1.png,scoreNum2.png,scoreNum3.png,scoreNum4.png,scoreNum5.png,scoreNum6.png,scoreNum7.png,scoreNum8.png,scoreNum9.png,scoreNum关.png,scoreNum冒号.png,scoreNum分.png,scoreNum数.png,scoreNum通.png,settingBg.png,settingBtn.png,starProgress.png,stepAni1.png,stepAni10.png,stepAni11.png,stepAni2.png,stepAni3.png,stepAni4.png,stepAni5.png,stepAni6.png,stepAni7.png,stepAni8.png,stepAni9.png,stepNum0.png,stepNum1.png,stepNum2.png,stepNum3.png,stepNum4.png,stepNum5.png,stepNum6.png,stepNum7.png,stepNum8.png,stepNum9.png,table.png,tarNum0.png,tarNum1.png,tarNum2.png,tarNum3.png,tarNum4.png,tarNum5.png,tarNum6.png,tarNum7.png,tarNum8.png,tarNum9.png,topBg.png,unlightedStar.png,yellowCircleDown.png,yellowCircleUp.png,yellowDoorBg.png"
,
"name"
:
"playScene"
"name"
:
"playScene"
},
},
{
{
...
...
src/scene/PlayScene.ts
View file @
5f922342
This diff is collapsed.
Click to expand it.
src/something/uis/PropBtnCon.ts
View file @
5f922342
import
{
RES
}
from
"../../../module/RES"
;
import
{
RES
}
from
"../../../module/RES"
;
import
Sprite
=
FYGE
.
Sprite
;
export
class
PropBtnCon
extends
FYGE
.
Container
{
export
class
PropBtnCon
extends
FYGE
.
Container
{
...
@@ -12,6 +12,7 @@ export class PropBtnCon extends FYGE.Container {
...
@@ -12,6 +12,7 @@ export class PropBtnCon extends FYGE.Container {
get
stepCount
()
{
get
stepCount
()
{
return
this
.
_stepCount
;
return
this
.
_stepCount
;
}
}
set
stepCount
(
value
)
{
set
stepCount
(
value
)
{
this
.
_stepCount
=
value
;
this
.
_stepCount
=
value
;
this
.
stepNum
.
text
=
""
+
value
;
this
.
stepNum
.
text
=
""
+
value
;
...
@@ -22,15 +23,18 @@ export class PropBtnCon extends FYGE.Container {
...
@@ -22,15 +23,18 @@ export class PropBtnCon extends FYGE.Container {
get
boomCount
()
{
get
boomCount
()
{
return
this
.
_boomCount
;
return
this
.
_boomCount
;
}
}
set
boomCount
(
value
)
{
set
boomCount
(
value
)
{
this
.
_boomCount
=
value
;
this
.
_boomCount
=
value
;
this
.
boomNum
.
text
=
""
+
value
;
this
.
boomNum
.
text
=
""
+
value
;
}
}
private
hammerNum
:
FYGE
.
BitmapText
;
private
hammerNum
:
FYGE
.
BitmapText
;
private
_hammerCount
:
number
;
private
_hammerCount
:
number
;
get
hammerCount
()
{
get
hammerCount
()
{
return
this
.
_hammerCount
;
return
this
.
_hammerCount
;
}
}
set
hammerCount
(
value
)
{
set
hammerCount
(
value
)
{
this
.
_hammerCount
=
value
;
this
.
_hammerCount
=
value
;
this
.
hammerNum
.
text
=
""
+
value
;
this
.
hammerNum
.
text
=
""
+
value
;
...
@@ -40,25 +44,34 @@ export class PropBtnCon extends FYGE.Container {
...
@@ -40,25 +44,34 @@ export class PropBtnCon extends FYGE.Container {
constructor
()
{
constructor
()
{
super
();
super
();
this
.
addChild
(
FYGE
.
Sprite
.
fromFrame
(
"table.png"
));
this
.
addChild
(
FYGE
.
Sprite
.
fromFrame
(
"table.png"
));
this
.
stepBtn
=
new
FYGE
.
Button
(
RES
.
getRes
(
"stepBtn.png"
));
this
.
stepBtn
=
new
FYGE
.
Button
(
RES
.
getRes
(
"stepBtn.png"
));
this
.
stepBtn
.
x
=
1
00
this
.
stepBtn
.
x
=
1
32
this
.
addChild
(
this
.
stepBtn
);
this
.
addChild
(
this
.
stepBtn
);
this
.
boomBtn
=
new
FYGE
.
Button
(
RES
.
getRes
(
"boomBtn.png"
));
this
.
boomBtn
=
new
FYGE
.
Button
(
RES
.
getRes
(
"boomBtn.png"
));
this
.
boomBtn
.
x
=
3
11
this
.
boomBtn
.
x
=
3
36
this
.
addChild
(
this
.
boomBtn
)
this
.
addChild
(
this
.
boomBtn
)
this
.
hammerBtn
=
new
FYGE
.
Button
(
RES
.
getRes
(
"hammerBtn.png"
));
this
.
hammerBtn
=
new
FYGE
.
Button
(
RES
.
getRes
(
"hammerBtn.png"
));
this
.
hammerBtn
.
x
=
488
;
this
.
hammerBtn
.
x
=
516
;
this
.
addChild
(
this
.
hammerBtn
)
this
.
addChild
(
this
.
hammerBtn
)
this
.
stepBtn
.
y
=
this
.
boomBtn
.
y
=
this
.
hammerBtn
.
y
=
-
10
this
.
stepBtn
.
y
=
this
.
boomBtn
.
y
=
this
.
hammerBtn
.
y
=
3
;
this
.
addChild
(
Sprite
.
fromFrame
(
'prop_count_bg.png'
))
.
position
.
set
(
205
,
68
);
this
.
addChild
(
Sprite
.
fromFrame
(
'prop_count_bg.png'
))
.
position
.
set
(
392
,
68
);
this
.
addChild
(
Sprite
.
fromFrame
(
'prop_count_bg.png'
))
.
position
.
set
(
579
,
68
);
var
arr
=
{};
var
arr
=
{};
for
(
var
i
=
0
;
i
<
10
;
i
++
)
arr
[
i
]
=
RES
.
getRes
(
"propNum"
+
i
+
".png"
)
for
(
var
i
=
0
;
i
<
10
;
i
++
)
arr
[
i
]
=
RES
.
getRes
(
"propNum"
+
i
+
".png"
)
//文案
//文案
this
.
stepNum
=
this
.
addChild
(
new
FYGE
.
BitmapText
(
arr
));
this
.
stepNum
=
this
.
addChild
(
new
FYGE
.
BitmapText
(
arr
));
this
.
boomNum
=
this
.
addChild
(
new
FYGE
.
BitmapText
(
arr
));
this
.
boomNum
=
this
.
addChild
(
new
FYGE
.
BitmapText
(
arr
));
this
.
hammerNum
=
this
.
addChild
(
new
FYGE
.
BitmapText
(
arr
));
this
.
hammerNum
=
this
.
addChild
(
new
FYGE
.
BitmapText
(
arr
));
this
.
stepNum
.
y
=
this
.
boomNum
.
y
=
this
.
hammerNum
.
y
=
60
;
this
.
stepNum
.
y
=
this
.
boomNum
.
y
=
this
.
hammerNum
.
y
=
75
;
this
.
stepNum
.
text
=
this
.
boomNum
.
text
=
this
.
hammerNum
.
text
=
"13"
;
this
.
stepNum
.
text
=
this
.
boomNum
.
text
=
this
.
hammerNum
.
text
=
"13"
;
this
.
stepNum
.
textAlign
=
this
.
boomNum
.
textAlign
=
this
.
hammerNum
.
textAlign
=
FYGE
.
TEXT_ALIGN
.
CENTER
;
this
.
stepNum
.
textAlign
=
this
.
boomNum
.
textAlign
=
this
.
hammerNum
.
textAlign
=
FYGE
.
TEXT_ALIGN
.
CENTER
;
this
.
stepNum
.
x
=
227
this
.
stepNum
.
x
=
227
...
@@ -69,7 +82,6 @@ export class PropBtnCon extends FYGE.Container {
...
@@ -69,7 +82,6 @@ export class PropBtnCon extends FYGE.Container {
}
}
/**
/**
* 自定义按钮
* 自定义按钮
*/
*/
...
...
src/something/uis/PropGuide.ts
View file @
5f922342
...
@@ -21,15 +21,15 @@ export class PropGuide extends FYGE.Container {
...
@@ -21,15 +21,15 @@ export class PropGuide extends FYGE.Container {
this
.
bg
=
new
FYGE
.
Shape
();
this
.
bg
=
new
FYGE
.
Shape
();
this
.
addChild
(
this
.
bg
);
this
.
addChild
(
this
.
bg
);
this
.
boomBtn
=
new
FYGE
.
Sprite
(
RES
.
getRes
(
"boomBtn.png"
));
this
.
boomBtn
=
new
FYGE
.
Sprite
(
RES
.
getRes
(
"boomBtn.png"
));
this
.
boomBtn
.
x
=
3
11
;
this
.
boomBtn
.
x
=
3
36
;
this
.
boomBtn
.
y
=
offsetY
;
this
.
boomBtn
.
y
=
offsetY
;
this
.
addChild
(
this
.
boomBtn
);
this
.
addChild
(
this
.
boomBtn
);
this
.
hammerBtn
=
new
FYGE
.
Sprite
(
RES
.
getRes
(
"hammerBtn.png"
));
this
.
hammerBtn
=
new
FYGE
.
Sprite
(
RES
.
getRes
(
"hammerBtn.png"
));
this
.
hammerBtn
.
x
=
488
;
this
.
hammerBtn
.
x
=
516
;
this
.
hammerBtn
.
y
=
offsetY
;
this
.
hammerBtn
.
y
=
offsetY
;
this
.
addChild
(
this
.
hammerBtn
);
this
.
addChild
(
this
.
hammerBtn
);
this
.
stepBtn
=
new
FYGE
.
Sprite
(
RES
.
getRes
(
"stepBtn.png"
));
this
.
stepBtn
=
new
FYGE
.
Sprite
(
RES
.
getRes
(
"stepBtn.png"
));
this
.
stepBtn
.
x
=
1
00
;
this
.
stepBtn
.
x
=
1
32
;
this
.
stepBtn
.
y
=
offsetY
;
this
.
stepBtn
.
y
=
offsetY
;
this
.
addChild
(
this
.
stepBtn
);
this
.
addChild
(
this
.
stepBtn
);
//再调
//再调
...
@@ -95,4 +95,4 @@ export class PropGuide extends FYGE.Container {
...
@@ -95,4 +95,4 @@ export class PropGuide extends FYGE.Container {
this
.
bg
.
lineTo
(
Tool
.
offsetX
,
Tool
.
offsetY
);
this
.
bg
.
lineTo
(
Tool
.
offsetX
,
Tool
.
offsetY
);
this
.
bg
.
endFill
();
this
.
bg
.
endFill
();
}
}
}
}
\ No newline at end of file
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