Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db-game-template
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
崔立强
db-game-template
Commits
951e94ee
Commit
951e94ee
authored
Dec 12, 2018
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
731809b5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
49 deletions
+25
-49
slot.tmproject
egret/resource/TextureMerger/slot.tmproject
+1
-1
default.res.json
egret/resource/default.res.json
+21
-46
StartSkin.exml
egret/resource/skins/StartSkin.exml
+1
-1
check.ts
egret/src/startScene/check.ts
+2
-1
No files found.
egret/resource/TextureMerger/slot.tmproject
View file @
951e94ee
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"slot","version":5,"files":["../assets/slot/slot_wrap-top.png","../assets/slot/slot_wrap-top.png","../assets/slot/slot_wrap-bottom.png","../assets/slot/slot_wrap-bottom.png","../assets/slot/slot_start_btn.png","../assets/slot/slot_start_btn.png","../assets/slot/slot_close.png","../assets/slot/slot_close.png","../assets/slot/conveyor.png","../assets/slot/conveyor.png"]}
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"slot","version":5,"files":["../assets/slot/slot_wrap-top.png","../assets/slot/slot_wrap-bottom.png","../assets/slot/slot_start_btn.png","../assets/slot/slot_close.png","../assets/slot/conveyor.png"]}
\ No newline at end of file
\ No newline at end of file
egret/resource/default.res.json
View file @
951e94ee
...
@@ -16,10 +16,6 @@
...
@@ -16,10 +16,6 @@
"keys"
:
"alertbg_png"
,
"keys"
:
"alertbg_png"
,
"name"
:
"alert"
"name"
:
"alert"
},
},
{
"keys"
:
"slot_wrap-top2_png,slot_wrap-top_png,slot_wrap-bottom2_png,slot_wrap-bottom_png,slot_start_btn2_png,slot_start_btn_png,slot_close2_png,slot_close_png,conveyor2_png,conveyor_png"
,
"name"
:
"slot"
},
{
{
"keys"
:
"wheel_png,rotate_start_btn_png,rotate_close_png,light_png"
,
"keys"
:
"wheel_png,rotate_start_btn_png,rotate_close_png,light_png"
,
"name"
:
"rotate"
"name"
:
"rotate"
...
@@ -27,6 +23,10 @@
...
@@ -27,6 +23,10 @@
{
{
"keys"
:
"PrizePanelX_png,prizePanelUseBtn_png,prizePanelbg_png"
,
"keys"
:
"PrizePanelX_png,prizePanelUseBtn_png,prizePanelbg_png"
,
"name"
:
"prize"
"name"
:
"prize"
},
{
"keys"
:
"slot_wrap-top_png,slot_wrap-bottom_png,slot_start_btn_png,slot_close_png,conveyor_png"
,
"name"
:
"slot"
}
}
],
],
"resources"
:
[
"resources"
:
[
...
@@ -297,31 +297,6 @@
...
@@ -297,31 +297,6 @@
"type"
:
"image"
,
"type"
:
"image"
,
"name"
:
"closeBtn_png"
"name"
:
"closeBtn_png"
},
},
{
"url"
:
"assets/slot/conveyor.png"
,
"type"
:
"image"
,
"name"
:
"conveyor_png"
},
{
"url"
:
"assets/slot/slot_close.png"
,
"type"
:
"image"
,
"name"
:
"slot_close_png"
},
{
"url"
:
"assets/slot/slot_start_btn.png"
,
"type"
:
"image"
,
"name"
:
"slot_start_btn_png"
},
{
"url"
:
"assets/slot/slot_wrap-bottom.png"
,
"type"
:
"image"
,
"name"
:
"slot_wrap-bottom_png"
},
{
"url"
:
"assets/slot/slot_wrap-top.png"
,
"type"
:
"image"
,
"name"
:
"slot_wrap-top_png"
},
{
{
"url"
:
"assets/treasure/hand.png"
,
"url"
:
"assets/treasure/hand.png"
,
"type"
:
"image"
,
"type"
:
"image"
,
...
@@ -338,49 +313,49 @@
...
@@ -338,49 +313,49 @@
"name"
:
"treasurebg22_png"
"name"
:
"treasurebg22_png"
},
},
{
{
"url"
:
"assets/
slot/conveyor
.png"
,
"url"
:
"assets/
rotate/light
.png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"name"
:
"
conveyor2
_png"
"name"
:
"
light
_png"
},
},
{
{
"url"
:
"assets/
slot/slot_close
.png"
,
"url"
:
"assets/
rotate/wheel
.png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"name"
:
"
slot_close2
_png"
"name"
:
"
wheel
_png"
},
},
{
{
"url"
:
"assets/
slot/slot
_start_btn.png"
,
"url"
:
"assets/
rotate/rotate
_start_btn.png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"name"
:
"
slot_start_btn2
_png"
"name"
:
"
rotate_start_btn
_png"
},
},
{
{
"url"
:
"assets/
slot/slot_wrap-bottom
.png"
,
"url"
:
"assets/
rotate/rotate_close
.png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"name"
:
"
slot_wrap-bottom2
_png"
"name"
:
"
rotate_close
_png"
},
},
{
{
"url"
:
"assets/slot/slot_wrap-top.png"
,
"url"
:
"assets/slot/slot_wrap-top.png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"name"
:
"slot_wrap-top
2
_png"
"name"
:
"slot_wrap-top_png"
},
},
{
{
"url"
:
"assets/
rotate/light
.png"
,
"url"
:
"assets/
slot/slot_wrap-bottom
.png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"name"
:
"
light
_png"
"name"
:
"
slot_wrap-bottom
_png"
},
},
{
{
"url"
:
"assets/
rotate/wheel
.png"
,
"url"
:
"assets/
slot/slot_start_btn
.png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"name"
:
"
wheel
_png"
"name"
:
"
slot_start_btn
_png"
},
},
{
{
"url"
:
"assets/
rotate/rotate_start_btn
.png"
,
"url"
:
"assets/
slot/slot_close
.png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"name"
:
"
rotate_start_btn
_png"
"name"
:
"
slot_close
_png"
},
},
{
{
"url"
:
"assets/
rotate/rotate_close
.png"
,
"url"
:
"assets/
slot/conveyor
.png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"name"
:
"
rotate_close
_png"
"name"
:
"
conveyor
_png"
}
}
]
]
}
}
\ No newline at end of file
egret/resource/skins/StartSkin.exml
View file @
951e94ee
...
@@ -126,7 +126,7 @@
...
@@ -126,7 +126,7 @@
</e:Skin>
</e:Skin>
</e:skinName>
</e:skinName>
</e:Button>
</e:Button>
<e:Button
id=
"treasureBtn"
label=
"宝箱"
y=
"74"
scaleX=
"1"
scaleY=
"1"
left=
"598"
>
<e:Button
id=
"treasureBtn"
label=
"宝箱"
y=
"74"
scaleX=
"1"
scaleY=
"1"
left=
"598"
visible=
"false"
>
<e:skinName>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"rankBtn_png"
source.down=
"rankBtn_png"
source.disabled=
"rankBtn_png"
/>
<e:Image
width=
"100%"
height=
"100%"
source=
"rankBtn_png"
source.down=
"rankBtn_png"
source.disabled=
"rankBtn_png"
/>
...
...
egret/src/startScene/check.ts
View file @
951e94ee
...
@@ -42,7 +42,8 @@ const check = (_this: StartScene) => {
...
@@ -42,7 +42,8 @@ const check = (_this: StartScene) => {
}
}
else
if
(
i
.
label
==
LabelType
.
egg
)
{
else
if
(
i
.
label
==
LabelType
.
egg
)
{
_this
.
_egretRender
.
remove
(
i
);
_this
.
_egretRender
.
remove
(
i
);
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
SLOT_PANEL
);
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
TREASURE_PANEL
);
// PanelCtrl.instance.show(ModuleTypes.SLOT_PANEL);
}
}
else
if
(
i
.
label
==
LabelType
.
candy
)
{
else
if
(
i
.
label
==
LabelType
.
candy
)
{
_this
.
_egretRender
.
remove
(
i
);
_this
.
_egretRender
.
remove
(
i
);
...
...
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