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
b8806d6f
Commit
b8806d6f
authored
Aug 19, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6e44e9e1
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
48 additions
and
1 deletion
+48
-1
.DS_Store
egret/.DS_Store
+0
-0
MainBase.ts
egret/libs/new_wx/MainBase.ts
+2
-0
boxbg.png
egret/resource/assets/box/boxbg.png
+0
-0
boxbtn.png
egret/resource/assets/box/boxbtn.png
+0
-0
default.res.json
egret/resource/default.res.json
+14
-0
default.thm.json
egret/resource/default.thm.json
+1
-0
BoxSkin.exml
egret/resource/skins/BoxSkin.exml
+20
-0
MapScene.ts
egret/src/mapScene/MapScene.ts
+1
-1
BoxPanel.ts
egret/src/panels/BoxPanel.ts
+10
-0
No files found.
egret/.DS_Store
View file @
b8806d6f
No preview for this file type
egret/libs/new_wx/MainBase.ts
View file @
b8806d6f
...
...
@@ -30,6 +30,7 @@ import Buy2Panel from "../../src/panels/Buy2Panel";
import
Buy3Panel
from
"../../src/panels/Buy3Panel"
;
import
FailedPanel
from
"../../src/panels/FailedPanel"
;
import
QuitPanel
from
"../../src/panels/QuitPanel"
;
import
BoxPanel
from
"../../src/panels/BoxPanel"
;
export
default
class
MainBase
extends
eui
.
UILayer
{
constructor
()
{
...
...
@@ -55,6 +56,7 @@ export default class MainBase extends eui.UILayer {
[
'Buy3'
,
{
cls
:
Buy3Panel
}],
[
'failed'
,
{
cls
:
FailedPanel
}],
[
'quit'
,
{
cls
:
QuitPanel
}],
[
'box'
,
{
cls
:
BoxPanel
}],
];
const
scenes
=
[
...
...
egret/resource/assets/box/boxbg.png
0 → 100644
View file @
b8806d6f
84.5 KB
egret/resource/assets/box/boxbtn.png
0 → 100644
View file @
b8806d6f
20.1 KB
egret/resource/default.res.json
View file @
b8806d6f
...
...
@@ -55,6 +55,10 @@
{
"keys"
:
"通关条件_png,数量_png,数量 副本 3_png,按钮_png"
,
"name"
:
"startpanel"
},
{
"name"
:
"preload"
,
"keys"
:
"boxbtn_png,boxbg_png"
}
],
"resources"
:
[
...
...
@@ -477,6 +481,16 @@
"name"
:
"宝箱3_png"
,
"type"
:
"image"
,
"url"
:
"assets/map/宝箱3.png"
},
{
"name"
:
"boxbtn_png"
,
"type"
:
"image"
,
"url"
:
"assets/box/boxbtn.png"
},
{
"name"
:
"boxbg_png"
,
"type"
:
"image"
,
"url"
:
"assets/box/boxbg.png"
}
]
}
\ No newline at end of file
egret/resource/default.thm.json
View file @
b8806d6f
...
...
@@ -2,6 +2,7 @@
"skins"
:
{},
"autoGenerateExmlsList"
:
true
,
"exmls"
:
[
"resource/skins/BoxSkin.exml"
,
"resource/skins/AlertSkin.exml"
,
"resource/skins/ToastSkin.exml"
,
"resource/skins/BloodSkin.exml"
,
...
...
egret/resource/skins/BoxSkin.exml
0 → 100644
View file @
b8806d6f
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"BoxSkin"
width=
"750"
height=
"1205"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Image
source=
"boxbg_png"
y=
"33.76"
horizontalCenter=
"0"
/>
<e:Button
id=
"closeBtn"
label=
""
x=
"608"
y=
"165"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"closeCommonBtn_png"
source.down=
"closeCommonBtn_png"
source.disabled=
"closeCommonBtn_png"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
</e:Skin>
</e:skinName>
</e:Button>
<e:Button
id=
"close2Btn"
label=
""
y=
"602"
horizontalCenter=
"0"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"boxbtn_png"
source.down=
"boxbtn_png"
source.disabled=
"boxbtn_png"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
xmlns:w=
"http://ns.egret.com/wing"
/>
</e:Skin>
</e:skinName>
</e:Button>
</e:Skin>
\ No newline at end of file
egret/src/mapScene/MapScene.ts
View file @
b8806d6f
...
...
@@ -49,7 +49,7 @@ export default class MapScene extends Scene {
}
setTimeout
(()
=>
{
PanelCtrl
.
instance
.
show
(
'
quit
'
);
PanelCtrl
.
instance
.
show
(
'
box
'
);
},
2000
);
}
...
...
egret/src/panels/BoxPanel.ts
0 → 100644
View file @
b8806d6f
import
Panel
from
"../../libs/new_wx/components/Panel"
;
export
default
class
BoxPanel
extends
Panel
{
start
(
data
)
{
super
.
start
();
}
get
skinKey
()
{
return
'Box'
}
}
\ 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