Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
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
wildfirecode13
xiaoxiaole
Commits
89af0506
Commit
89af0506
authored
Apr 03, 2020
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c8e02388
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
132 additions
and
136 deletions
+132
-136
box.tmproject
egret/resource/TextureMerger/box.tmproject
+1
-1
common.tmproject
egret/resource/TextureMerger/common.tmproject
+1
-1
hbnoprize.tmproject
egret/resource/TextureMerger/hbnoprize.tmproject
+1
-1
sign.tmproject
egret/resource/TextureMerger/sign.tmproject
+1
-1
default.thm.json
egret/resource/default.thm.json
+104
-103
BoxSkin.exml
egret/resource/skins/BoxSkin.exml
+6
-10
BoxPanel.ts
egret/src/panels/BoxPanel.ts
+17
-18
openTreasureBox.json
mock/happyclear/openTreasureBox.json
+1
-1
No files found.
egret/resource/TextureMerger/box.tmproject
View file @
89af0506
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"box","version":5,"files":["../assets/box/boxbtn.png","../assets/box/boxbg.png"]}
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"box","version":5,"files":["../assets/box/boxbtn.png","../assets/box/boxbg.png","../assets/box/box_star.png"]}
\ No newline at end of file
\ No newline at end of file
egret/resource/TextureMerger/common.tmproject
View file @
89af0506
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"common","version":5,"files":["../assets/common/turnnoprize再来一次.png","../assets/common/toast.png","../assets/common/share_btn2.png","../assets/common/share_btn1.png","../assets/common/prizePanelbg.png","../assets/common/lightani.png","../assets/common/exchangebtn.png","../assets/common/common_yuanbao.png","../assets/common/common_prop3.png","../assets/common/common_prop2.png","../assets/common/common_prop1.png","../assets/common/common_prizelight.png","../assets/common/common_money.png","../assets/common/common_blood.png","../assets/common/common_adbg.png","../assets/common/commmon_okbtn1.png","../assets/common/closeCommonBtn.png","../assets/common/btn.png","../assets/common/alertbg.png","../assets/common/按钮 副本 4.png","../assets/common/按钮 副本 3.png","../assets/common/common_block.png","../assets/common/common_block_front.png","../assets/common/common_block_bg_yellow.png","../assets/common/common_block_bg_red.png","../assets/common/common_block_bg_blue.png","../assets/common/chocolate3.png","../assets/common/chocolate1.png","../assets/common/chocolate0.png","../assets/common/chocolate2.png","../assets/common/turnprize_icon3.png","../assets/common/turnprize_icon2.png","../assets/common/turnprize_icon1.png","../assets/common/commom_prop_bg.png","../assets/common/arrowbg.png","../assets/common/common_closebtn2.png","../assets/common/commom_share1.png","../assets/common/turnnoprize继续闯关.png","../assets/common/commom_prop_bg.png","../assets/common/combglight.png"]}
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"common","version":5,"files":["../assets/common/turnnoprize再来一次.png","../assets/common/toast.png","../assets/common/share_btn2.png","../assets/common/share_btn1.png","../assets/common/prizePanelbg.png","../assets/common/lightani.png","../assets/common/exchangebtn.png","../assets/common/common_yuanbao.png","../assets/common/common_prop3.png","../assets/common/common_prop2.png","../assets/common/common_prop1.png","../assets/common/common_prizelight.png","../assets/common/common_money.png","../assets/common/common_blood.png","../assets/common/common_adbg.png","../assets/common/commmon_okbtn1.png","../assets/common/closeCommonBtn.png","../assets/common/btn.png","../assets/common/alertbg.png","../assets/common/按钮 副本 4.png","../assets/common/按钮 副本 3.png","../assets/common/common_block.png","../assets/common/common_block_front.png","../assets/common/common_block_bg_yellow.png","../assets/common/common_block_bg_red.png","../assets/common/common_block_bg_blue.png","../assets/common/chocolate3.png","../assets/common/chocolate1.png","../assets/common/chocolate0.png","../assets/common/chocolate2.png","../assets/common/turnprize_icon3.png","../assets/common/turnprize_icon2.png","../assets/common/turnprize_icon1.png","../assets/common/commom_prop_bg.png","../assets/common/arrowbg.png","../assets/common/common_closebtn2.png","../assets/common/commom_share1.png","../assets/common/turnnoprize继续闯关.png","../assets/common/combglight.png","../assets/common/common_box_btn.png"]}
\ No newline at end of file
\ No newline at end of file
egret/resource/TextureMerger/hbnoprize.tmproject
View file @
89af0506
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"hbnoprize","version":5,"files":["../assets/hbNoPrize/hbNoPrize_bg.png","../assets/hbNoPrize/hbNoPrize_btn.png"]}
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"hbnoprize","version":5,"files":["../assets/hbNoPrize/hbNoPrize_bg.png","../assets/hbNoPrize/hbNoPrize_btn.png","../assets/hbNoPrize/hbnoprizebg2.png"]}
\ No newline at end of file
\ No newline at end of file
egret/resource/TextureMerger/sign.tmproject
View file @
89af0506
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"sign","version":5,"files":["../assets/sign/signitem.png","../assets/sign/signicon6.png","../assets/sign/signicon5.png","../assets/sign/signicon4.png","../assets/sign/signicon3.png","../assets/sign/signicon2.png","../assets/sign/signicon_blood.png","../assets/sign/signbtn4.png","../assets/sign/signbtn3.png","../assets/sign/signbtn2.png","../assets/sign/signbtn1.png","../assets/sign/signbg.png","../assets/sign/sign_quan88.png","../assets/sign/sign_quan8.png","../assets/sign/sign_quan58.png","../assets/sign/sign_quan38.png","../assets/sign/sign_quan28.png","../assets/sign/sign_quan16.png","../assets/sign/sign_quan15.png","../assets/sign/sign_quan12.png","../assets/sign/sign_line2.png","../assets/sign/sign_line.png","../assets/sign/sign_light.png","../assets/sign/sign_icon1.png","../assets/sign/sign_quan10.png","../assets/sign/sign_quan23.png","../assets/sign/sign_quan36.png","../assets/sign/sign_quan25.png","../assets/sign/sign_quan35.png","../assets/sign/sign_quan30.png","../assets/sign/sign_mask.png","../assets/sign/signitemno.png","../assets/sign/signitemyes.png"]}
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"sign","version":5,"files":["../assets/sign/signitem.png","../assets/sign/signicon6.png","../assets/sign/signicon5.png","../assets/sign/signicon4.png","../assets/sign/signicon3.png","../assets/sign/signicon2.png","../assets/sign/signicon_blood.png","../assets/sign/signbtn4.png","../assets/sign/signbtn3.png","../assets/sign/signbtn2.png","../assets/sign/signbtn1.png","../assets/sign/signbg.png","../assets/sign/sign_quan88.png","../assets/sign/sign_quan8.png","../assets/sign/sign_quan58.png","../assets/sign/sign_quan38.png","../assets/sign/sign_quan28.png","../assets/sign/sign_quan16.png","../assets/sign/sign_quan15.png","../assets/sign/sign_quan12.png","../assets/sign/sign_line2.png","../assets/sign/sign_line.png","../assets/sign/sign_light.png","../assets/sign/sign_icon1.png","../assets/sign/sign_quan10.png","../assets/sign/sign_quan23.png","../assets/sign/sign_quan36.png","../assets/sign/sign_quan25.png","../assets/sign/sign_quan35.png","../assets/sign/sign_quan30.png","../assets/sign/sign_mask.png","../assets/sign/signitemno.png","../assets/sign/signitemyes.png","../assets/sign/unsignbtn.png"]}
\ No newline at end of file
\ No newline at end of file
egret/resource/default.thm.json
View file @
89af0506
{
{
"skins"
:
{},
"skins"
:
{},
"autoGenerateExmlsList"
:
true
,
"autoGenerateExmlsList"
:
true
,
"exmls"
:
[
"exmls"
:
[
"resource/skins/ADSkin.exml"
,
"resource/skins/ADSkin.exml"
,
"resource/skins/ADSmallSkin.exml"
,
"resource/skins/ADSmallSkin.exml"
,
"resource/skins/AlertSkin.exml"
,
"resource/skins/AlertSkin.exml"
,
"resource/skins/AvatarSkin.exml"
,
"resource/skins/AvatarSkin.exml"
,
"resource/skins/BackIndexSkin.exml"
,
"resource/skins/BackIndexSkin.exml"
,
"resource/skins/BackSkin.exml"
,
"resource/skins/BackSkin.exml"
,
"resource/skins/BagItem2Skin.exml"
,
"resource/skins/BagItem2Skin.exml"
,
"resource/skins/BagItemSkin.exml"
,
"resource/skins/BagItemSkin.exml"
,
"resource/skins/BagQuitSkin.exml"
,
"resource/skins/BagQuitSkin.exml"
,
"resource/skins/BagSkin.exml"
,
"resource/skins/BagSkin.exml"
,
"resource/skins/Blood2Skin.exml"
,
"resource/skins/Blood2Skin.exml"
,
"resource/skins/BloodSkin.exml"
,
"resource/skins/BloodSkin.exml"
,
"resource/skins/Box2Skin.exml"
,
"resource/skins/Box2Skin.exml"
,
"resource/skins/BoxSkin.exml"
,
"resource/skins/BoxSkin.exml"
,
"resource/skins/Buy1Skin.exml"
,
"resource/skins/Buy1Skin.exml"
,
"resource/skins/Buy2Skin.exml"
,
"resource/skins/Buy2Skin.exml"
,
"resource/skins/Buy3Skin.exml"
,
"resource/skins/Buy3Skin.exml"
,
"resource/skins/ExchangeSkin.exml"
,
"resource/skins/ExchangeSkin.exml"
,
"resource/skins/FailSkin.exml"
,
"resource/skins/FailSkin.exml"
,
"resource/skins/FriendItem2Skin.exml"
,
"resource/skins/FriendItem2Skin.exml"
,
"resource/skins/FriendItemSkin.exml"
,
"resource/skins/FriendItemSkin.exml"
,
"resource/skins/FriendShareSkin.exml"
,
"resource/skins/FriendShareSkin.exml"
,
"resource/skins/FriendSkin.exml"
,
"resource/skins/FriendSkin.exml"
,
"resource/skins/H52Skin.exml"
,
"resource/skins/H52Skin.exml"
,
"resource/skins/H5Skin.exml"
,
"resource/skins/H5Skin.exml"
,
"resource/skins/HbCutTimeSkin.exml"
,
"resource/skins/HbCutTimeSkin.exml"
,
"resource/skins/HbGameSkin.exml"
,
"resource/skins/HbGameSkin.exml"
,
"resource/skins/HbNoPrizeSkin.exml"
,
"resource/skins/HbNoPrize2Skin.exml"
,
"resource/skins/HbPrizeSkin.exml"
,
"resource/skins/HbNoPrizeSkin.exml"
,
"resource/skins/HbRuleSkin.exml"
,
"resource/skins/HbPrizeSkin.exml"
,
"resource/skins/HelpBloodSkin.exml"
,
"resource/skins/HbRuleSkin.exml"
,
"resource/skins/HelpInviteSkin.exml"
,
"resource/skins/HelpBloodSkin.exml"
,
"resource/skins/HelpScratchSkin.exml"
,
"resource/skins/HelpInviteSkin.exml"
,
"resource/skins/IconButtonSkin.exml"
,
"resource/skins/HelpScratchSkin.exml"
,
"resource/skins/InviteCutTimePanelSkin.exml"
,
"resource/skins/IconButtonSkin.exml"
,
"resource/skins/InviteItemSkin.exml"
,
"resource/skins/InviteCutTimePanelSkin.exml"
,
"resource/skins/InvitePrizePanelSkin.exml"
,
"resource/skins/InviteItemSkin.exml"
,
"resource/skins/InviteRulePanelSkin.exml"
,
"resource/skins/InvitePrizePanelSkin.exml"
,
"resource/skins/InviteRuleSkin.exml"
,
"resource/skins/InviteRulePanelSkin.exml"
,
"resource/skins/InviteSkin.exml"
,
"resource/skins/InviteRuleSkin.exml"
,
"resource/skins/Main2Skin.exml"
,
"resource/skins/InviteSkin.exml"
,
"resource/skins/MapBottomSkin.exml"
,
"resource/skins/Main2Skin.exml"
,
"resource/skins/MapRepeatSkin.exml"
,
"resource/skins/MapBottomSkin.exml"
,
"resource/skins/MapSkin.exml"
,
"resource/skins/MapRepeatSkin.exml"
,
"resource/skins/MapTopSkin.exml"
,
"resource/skins/MapSkin.exml"
,
"resource/skins/NoPrizeSkin.exml"
,
"resource/skins/MapTopSkin.exml"
,
"resource/skins/OptionItemSkin.exml"
,
"resource/skins/NoPrizeSkin.exml"
,
"resource/skins/OptionsSkin.exml"
,
"resource/skins/OptionItemSkin.exml"
,
"resource/skins/PlaySkin.exml"
,
"resource/skins/OptionsSkin.exml"
,
"resource/skins/Prize2Skin.exml"
,
"resource/skins/PlaySkin.exml"
,
"resource/skins/PrizeSkin.exml"
,
"resource/skins/Prize2Skin.exml"
,
"resource/skins/QuitSkin.exml"
,
"resource/skins/PrizeSkin.exml"
,
"resource/skins/RankFriendListSkin.exml"
,
"resource/skins/QuitSkin.exml"
,
"resource/skins/RankItemSkin.exml"
,
"resource/skins/RankFriendListSkin.exml"
,
"resource/skins/RankSkin.exml"
,
"resource/skins/RankItemSkin.exml"
,
"resource/skins/RechargeSkin.exml"
,
"resource/skins/RankSkin.exml"
,
"resource/skins/RedBagActivitySkin.exml"
,
"resource/skins/RechargeSkin.exml"
,
"resource/skins/RedBagAlertSkin.exml"
,
"resource/skins/RedBagActivitySkin.exml"
,
"resource/skins/RedBombAlertSkin.exml"
,
"resource/skins/RedBagAlertSkin.exml"
,
"resource/skins/RedBombRuleSkin.exml"
,
"resource/skins/RedBombAlertSkin.exml"
,
"resource/skins/RedBombTips2Skin.exml"
,
"resource/skins/RedBombRuleSkin.exml"
,
"resource/skins/RedBombTipsSkin.exml"
,
"resource/skins/RedBombTips2Skin.exml"
,
"resource/skins/ReliveSkin.exml"
,
"resource/skins/RedBombTipsSkin.exml"
,
"resource/skins/RuleSkin.exml"
,
"resource/skins/ReliveSkin.exml"
,
"resource/skins/ScratchItemSkin.exml"
,
"resource/skins/RuleSkin.exml"
,
"resource/skins/ScratchPrizeSkin.exml"
,
"resource/skins/ScratchItemSkin.exml"
,
"resource/skins/ScratchRuleSkin.exml"
,
"resource/skins/ScratchPrizeSkin.exml"
,
"resource/skins/ScratchSkin.exml"
,
"resource/skins/ScratchRuleSkin.exml"
,
"resource/skins/Share2Skin.exml"
,
"resource/skins/ScratchSkin.exml"
,
"resource/skins/Share3Skin.exml"
,
"resource/skins/Share2Skin.exml"
,
"resource/skins/ShareCodePanelSkin.exml"
,
"resource/skins/Share3Skin.exml"
,
"resource/skins/ShareSkin.exml"
,
"resource/skins/ShareCodePanelSkin.exml"
,
"resource/skins/ShareTipsSkin.exml"
,
"resource/skins/ShareSkin.exml"
,
"resource/skins/ShopSkin.exml"
,
"resource/skins/ShareTipsSkin.exml"
,
"resource/skins/ShopTipSkin.exml"
,
"resource/skins/ShopSkin.exml"
,
"resource/skins/ShowOffSkin.exml"
,
"resource/skins/ShopTipSkin.exml"
,
"resource/skins/SignItemSkin.exml"
,
"resource/skins/ShowOffSkin.exml"
,
"resource/skins/SignPrizeSkin.exml"
,
"resource/skins/SignItemSkin.exml"
,
"resource/skins/SignSkin.exml"
,
"resource/skins/SignPrizeSkin.exml"
,
"resource/skins/StarSkin.exml"
,
"resource/skins/SignSkin.exml"
,
"resource/skins/StartPanelSkin.exml"
,
"resource/skins/StarSkin.exml"
,
"resource/skins/StartSkin.exml"
,
"resource/skins/StartPanelSkin.exml"
,
"resource/skins/TargetItemSkin.exml"
,
"resource/skins/StartSkin.exml"
,
"resource/skins/TaskCenterItemSkin.exml"
,
"resource/skins/TargetItemSkin.exml"
,
"resource/skins/TaskCenterNoPrizeSkin.exml"
,
"resource/skins/TaskCenterItemSkin.exml"
,
"resource/skins/TaskCenterPrizeSkin.exml"
,
"resource/skins/TaskCenterNoPrizeSkin.exml"
,
"resource/skins/TaskCenterSkin.exml"
,
"resource/skins/TaskCenterPrizeSkin.exml"
,
"resource/skins/TaskItemSkin.exml"
,
"resource/skins/TaskCenterSkin.exml"
,
"resource/skins/TaskPrizeSkin.exml"
,
"resource/skins/TaskItemSkin.exml"
,
"resource/skins/TaskSkin.exml"
,
"resource/skins/TaskPrizeSkin.exml"
,
"resource/skins/Toast2Skin.exml"
,
"resource/skins/TaskSkin.exml"
,
"resource/skins/ToastSkin.exml"
,
"resource/skins/Toast2Skin.exml"
,
"resource/skins/TurnRuleSkin.exml"
,
"resource/skins/ToastSkin.exml"
,
"resource/skins/TurntableNoPrizeSkin.exml"
,
"resource/skins/TurnRuleSkin.exml"
,
"resource/skins/TurntablePrize2Skin.exml"
,
"resource/skins/TurntableNoPrizeSkin.exml"
,
"resource/skins/TurntablePrizeSkin.exml"
,
"resource/skins/TurntablePrize2Skin.exml"
,
"resource/skins/TurntableSkin.exml"
,
"resource/skins/TurntablePrizeSkin.exml"
,
"resource/skins/VScrollBarSkin.exml"
"resource/skins/TurntableSkin.exml"
,
],
"resource/skins/VScrollBarSkin.exml"
"path"
:
"resource/default.thm.json"
],
"path"
:
"resource/default.thm.json"
}
}
\ No newline at end of file
egret/resource/skins/BoxSkin.exml
View file @
89af0506
...
@@ -5,15 +5,11 @@
...
@@ -5,15 +5,11 @@
<e:Image
id=
"combglight"
source=
"combglight_png"
y=
"241"
anchorOffsetX=
"375"
anchorOffsetY=
"418"
horizontalCenter=
"0"
/>
<e:Image
id=
"combglight"
source=
"combglight_png"
y=
"241"
anchorOffsetX=
"375"
anchorOffsetY=
"418"
horizontalCenter=
"0"
/>
<e:Image
id=
"combglight1"
source=
"combglight_png"
y=
"241"
anchorOffsetX=
"375"
anchorOffsetY=
"418"
horizontalCenter=
"0"
/>
<e:Image
id=
"combglight1"
source=
"combglight_png"
y=
"241"
anchorOffsetX=
"375"
anchorOffsetY=
"418"
horizontalCenter=
"0"
/>
<e:Image
source=
"boxbg_png"
y=
"-147.9"
scale9Grid=
"93,413,564,43"
x=
"0"
/>
<e:Image
source=
"boxbg_png"
y=
"-147.9"
scale9Grid=
"93,413,564,43"
x=
"0"
/>
<e:Image
id=
"img"
width=
"508"
height=
"225"
source=
"{data.url}"
horizontalCenter=
"0"
y=
"429.63"
visible=
"false"
/>
<e:Image
id=
"bg"
source=
"commom_prop_bg_png"
x=
"113.02"
y=
"403.62"
/>
<e:Image
id=
"img2"
horizontalCenter=
"10.5"
y=
"429.63"
source=
"{data.url2}"
scaleX=
"0.7"
scaleY=
"0.7"
visible=
"false"
/>
<e:Label
id=
"propnums"
text=
"X8"
size=
"50"
horizontalCenter=
"59"
verticalCenter=
"-86"
verticalAlign=
"middle"
textAlign=
"center"
textColor=
"0xC17343"
fontFamily=
"FZY3JW"
x=
"510.38"
y=
"534.4"
bold=
"true"
visible=
"false"
/>
<e:Image
id=
"money"
y=
"430.07"
scaleX=
"0.6"
scaleY=
"0.6"
x=
"150"
source=
"signprize元宝_png"
visible=
"false"
/>
<e:Image
id=
"img"
width=
"508"
height=
"225"
source=
"{data.url}"
horizontalCenter=
"0"
y=
"409.63"
visible=
"false"
/>
<e:Image
id=
"blood"
y=
"432.67"
horizontalCenter=
"1.5"
source=
"common_blood_png"
scaleX=
"0.7"
scaleY=
"0.7"
visible=
"false"
/>
<e:Image
id=
"money"
y=
"486.62"
scaleX=
"0.8"
scaleY=
"0.8"
x=
"295"
source=
"common_yuanbao_png"
visible=
"false"
/>
<e:Group
id=
"numsgroup"
x=
"396.38"
y=
"432.27"
visible=
"false"
>
<e:Image
id=
"blood"
y=
"470"
horizontalCenter=
"-31.5"
source=
"common_blood_png"
visible=
"false"
/>
<e:Image
id=
"numsbg"
source=
"signprize_numsbg_png"
x=
"0"
y=
"0"
/>
<e:Label
id=
"propnums"
text=
"X8"
size=
"22"
horizontalCenter=
"0"
verticalCenter=
"0"
verticalAlign=
"middle"
textAlign=
"center"
/>
</e:Group>
<e:Label
id=
"propnums2"
text=
"30"
textColor=
"0x885037"
bold=
"true"
y=
"564.95"
width=
"75"
textAlign=
"right"
x=
"287.16"
visible=
"false"
/>
<e:Button
id=
"closeBtn"
label=
""
x=
"588.96"
y=
"264.18"
>
<e:Button
id=
"closeBtn"
label=
""
x=
"588.96"
y=
"264.18"
>
<e:skinName>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Skin
states=
"up,down,disabled"
xmlns:w=
"http://ns.egret.com/wing"
>
...
@@ -35,5 +31,5 @@
...
@@ -35,5 +31,5 @@
<e:Label
id=
"tips"
text=
"x23"
textColor=
"0xC17343"
fontFamily=
"FZY3JW"
size=
"28"
x=
"243"
/>
<e:Label
id=
"tips"
text=
"x23"
textColor=
"0xC17343"
fontFamily=
"FZY3JW"
size=
"28"
x=
"243"
/>
<e:Image
source=
"box_star_png"
x=
"181.5"
y=
"-13"
/>
<e:Image
source=
"box_star_png"
x=
"181.5"
y=
"-13"
/>
</e:Group>
</e:Group>
<e:Image
id=
"prop
bg"
source=
"commom_prop_bg_png"
x=
"113.02"
y=
"403.62
"
/>
<e:Image
id=
"prop
Img"
source=
"{data.url}"
y=
"460.62"
x=
"299"
visible=
"false
"
/>
</e:Skin>
</e:Skin>
\ No newline at end of file
egret/src/panels/BoxPanel.ts
View file @
89af0506
...
@@ -7,8 +7,8 @@ import AdSmallComp from "../mapScene/AdSmallComp";
...
@@ -7,8 +7,8 @@ import AdSmallComp from "../mapScene/AdSmallComp";
export
default
class
BoxPanel
extends
Panel
{
export
default
class
BoxPanel
extends
Panel
{
start
(
data
)
{
start
(
data
)
{
this
[
'propbg'
].
visible
=
false
;
this
[
'tipswrapper'
].
visible
=
false
;
this
[
'tipswrapper'
].
visible
=
false
;
super
.
start
();
super
.
start
();
this
[
'close2Btn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
[
'close2Btn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
17
));
NetManager
.
ins
.
clickLog
(
getlogItem
(
17
));
...
@@ -27,11 +27,12 @@ export default class BoxPanel extends Panel {
...
@@ -27,11 +27,12 @@ export default class BoxPanel extends Panel {
let
num
=
homedata
.
nextRangeStarsNum
-
homedata
.
totalStars
;
let
num
=
homedata
.
nextRangeStarsNum
-
homedata
.
totalStars
;
if
(
num
<=
0
)
{
if
(
num
<=
0
)
{
num
=
0
;
num
=
0
;
this
[
'tips'
].
text
=
``
;
this
[
'tips'
].
text
=
``
;
this
[
'close2Btn'
].
y
=
676.99
;
}
}
else
{
else
{
this
[
'tips'
].
text
=
`x
${
num
}
`
;
this
[
'tips'
].
text
=
`x
${
num
}
`
;
this
[
'tipswrapper'
].
visible
=
true
;
this
[
'tipswrapper'
].
visible
=
true
;
}
}
}
}
...
@@ -39,29 +40,27 @@ export default class BoxPanel extends Panel {
...
@@ -39,29 +40,27 @@ export default class BoxPanel extends Panel {
updateOption
(
option
:
any
)
{
updateOption
(
option
:
any
)
{
const
{
categoryType
,
img
,
num
,
propType
,
realValue
}
=
option
;
// 2次数 3道具 4元宝 5实物 6优惠券 7虚拟商品
const
{
categoryType
,
img
,
num
,
propType
,
realValue
}
=
option
;
// 2次数 3道具 4元宝 5实物 6优惠券 7虚拟商品
this
[
'propnums'
].
visible
=
false
;
this
[
'propnums'
].
text
=
'x1'
;
this
[
'propnums'
].
text
=
'x1'
;
if
(
num
)
{
if
(
num
)
this
[
'propnums'
].
text
=
'x'
+
num
;
this
[
'propnums'
].
text
=
'x'
+
num
;
}
switch
(
categoryType
)
{
switch
(
categoryType
)
{
case
2
:
//blood
case
2
:
this
[
'blood'
].
visible
=
true
;
this
[
'blood'
].
visible
=
true
;
this
[
'numsgroup'
].
visible
=
true
;
this
[
'propnums'
].
visible
=
true
;
this
[
'propbg'
].
visible
=
true
;
break
;
break
;
case
3
:
//prop
case
3
:
this
[
'numsgroup'
].
visible
=
true
;
this
[
'propImg'
].
visible
=
true
;
this
[
'img2'
].
visible
=
true
;
this
[
'propnums'
].
visible
=
true
;
this
.
data
.
url2
=
`common_prop
${
propType
}
_png`
;
this
.
data
.
url
=
`turnprize_icon
${
propType
}
_png`
;
this
[
'propbg'
].
visible
=
true
;
break
;
break
;
case
4
:
//money
case
4
:
this
[
'
numsgroup
'
].
visible
=
true
;
this
[
'
propnums
'
].
visible
=
true
;
this
[
'money'
].
visible
=
true
;
this
[
'money'
].
visible
=
true
;
this
[
'propnums2'
].
text
=
`x
${
realValue
}
`
;
this
[
'propnums'
].
text
=
'x'
+
realValue
;
this
[
'propbg'
].
visible
=
true
;
break
;
break
;
default
:
default
:
this
[
'bg'
].
visible
=
false
;
this
[
'img'
].
visible
=
true
;
this
[
'img'
].
visible
=
true
;
this
.
data
.
url
=
img
;
this
.
data
.
url
=
img
;
break
;
break
;
...
...
mock/happyclear/openTreasureBox.json
View file @
89af0506
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
"minValue"
:
null
,
"minValue"
:
null
,
"maxValue"
:
null
,
"maxValue"
:
null
,
"coinType"
:
1
,
"coinType"
:
1
,
"propType"
:
2
,
"propType"
:
3
,
"num"
:
null
,
"num"
:
null
,
"img"
:
"//yun.dui88.com/images/201910/e6pmpk2pne.png"
,
"img"
:
"//yun.dui88.com/images/201910/e6pmpk2pne.png"
,
"appItemId"
:
null
,
"appItemId"
:
null
,
...
...
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