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
caea034d
Commit
caea034d
authored
Aug 26, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
550c49df
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
87 additions
and
5 deletions
+87
-5
exml.json
egret/.wing/exml.json
+5
-0
MainBase.ts
egret/libs/new_wx/MainBase.ts
+2
-0
box2_bg.png
egret/resource/assets/box2/box2_bg.png
+0
-0
commmon_okbtn1.png
egret/resource/assets/common/commmon_okbtn1.png
+0
-0
default.res.json
egret/resource/default.res.json
+14
-0
default.thm.json
egret/resource/default.thm.json
+1
-0
Box2Skin.exml
egret/resource/skins/Box2Skin.exml
+21
-0
MapScene.ts
egret/src/mapScene/MapScene.ts
+8
-3
Box2Panel.ts
egret/src/panels/Box2Panel.ts
+18
-0
StartPanel.ts
egret/src/panels/StartPanel.ts
+6
-1
openTreasureBox.json
mock/happyclear/openTreasureBox.json
+12
-1
No files found.
egret/.wing/exml.json
View file @
caea034d
...
...
@@ -168,5 +168,10 @@
"value"
:
"http://yun.duiba.com.cn/babi/img/bm2ryg8wht.gif"
}
]
},
"16ccc954c14"
:
{
"backgroundType"
:
"user"
,
"useBgImage"
:
false
,
"useBgColor"
:
true
}
}
\ No newline at end of file
egret/libs/new_wx/MainBase.ts
View file @
caea034d
...
...
@@ -33,6 +33,7 @@ import QuitPanel from "../../src/panels/QuitPanel";
import
BoxPanel
from
"../../src/panels/BoxPanel"
;
import
MainScene
from
"../../src/mainScene/MainScene"
;
import
{
Loading2
}
from
"../../src/something/uis/Loading2"
;
import
Box2Panel
from
"../../src/panels/Box2Panel"
;
export
default
class
MainBase
extends
eui
.
UILayer
{
constructor
()
{
...
...
@@ -60,6 +61,7 @@ export default class MainBase extends eui.UILayer {
[
'failed'
,
{
cls
:
FailedPanel
}],
[
'quit'
,
{
cls
:
QuitPanel
}],
[
'box'
,
{
cls
:
BoxPanel
}],
[
'box2'
,
{
cls
:
Box2Panel
}],
];
const
scenes
=
[
...
...
egret/resource/assets/box2/box2_bg.png
0 → 100644
View file @
caea034d
92.8 KB
egret/resource/assets/common/commmon_okbtn1.png
0 → 100644
View file @
caea034d
21.1 KB
egret/resource/default.res.json
View file @
caea034d
...
...
@@ -67,6 +67,10 @@
{
"keys"
:
"boxbtn_png,boxbg_png"
,
"name"
:
"box"
},
{
"name"
:
"preload"
,
"keys"
:
"box2_bg_png,commmon_okbtn1_png"
}
],
"resources"
:
[
...
...
@@ -1454,6 +1458,16 @@
"url"
:
"assets/common/share_btn2.png"
,
"type"
:
"image"
,
"name"
:
"share_btn2_png"
},
{
"name"
:
"box2_bg_png"
,
"type"
:
"image"
,
"url"
:
"assets/box2/box2_bg.png"
},
{
"name"
:
"commmon_okbtn1_png"
,
"type"
:
"image"
,
"url"
:
"assets/common/commmon_okbtn1.png"
}
]
}
\ No newline at end of file
egret/resource/default.thm.json
View file @
caea034d
...
...
@@ -4,6 +4,7 @@
"exmls"
:
[
"resource/skins/AlertSkin.exml"
,
"resource/skins/BloodSkin.exml"
,
"resource/skins/Box2Skin.exml"
,
"resource/skins/BoxSkin.exml"
,
"resource/skins/Buy1Skin.exml"
,
"resource/skins/Buy2Skin.exml"
,
...
...
egret/resource/skins/Box2Skin.exml
0 → 100644
View file @
caea034d
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"Box2Skin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<w:Config
id=
"16ccc954c14"
/>
<e:Image
y=
"33.76"
horizontalCenter=
"0"
source=
"box2_bg_png"
/>
<e:Button
id=
"closeBtn"
label=
""
x=
"601.94"
y=
"195.3"
>
<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=
"commmon_okbtn1_png"
source.down=
"commmon_okbtn1_png"
source.disabled=
"commmon_okbtn1_png"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
</e:Skin>
</e:skinName>
</e:Button>
</e:Skin>
\ No newline at end of file
egret/src/mapScene/MapScene.ts
View file @
caea034d
...
...
@@ -67,9 +67,12 @@ export default class MapScene extends Scene {
PanelCtrl
.
instance
.
show
(
'StartPanel'
,
data
.
level
)
}
this
.
stage
.
once
(
egret
.
TouchEvent
.
TOUCH_TAP
,()
=>
{
playBg
();
},
this
);
this
.
stage
.
once
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
if
(
!
MapScene
[
'firstPlayBgTag'
])
{
playBg
();
MapScene
[
'firstPlayBgTag'
]
=
true
;
}
},
this
);
}
disableIcon
(
level
)
{
...
...
@@ -205,6 +208,8 @@ export default class MapScene extends Scene {
()
=>
{
return
DataManager
.
ins
.
getData
(
'getPlugOrderStatus'
).
result
==
0
});
}
else
{
PanelCtrl
.
instance
.
show
(
'box2'
);
}
})
// }
...
...
egret/src/panels/Box2Panel.ts
0 → 100644
View file @
caea034d
import
Panel
from
"../../libs/new_wx/components/Panel"
;
export
default
class
Box2Panel
extends
Panel
{
start
(
data
)
{
super
.
start
();
// this['close2Btn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
// NetManager.ins.clickLog(getlogItem(17));
// }, this);
// this.showlog();
// this.data.img = DataManager.ins.getData('getPlugOrderStatus').lottery.imgurl;
}
// showlog() {
// NetManager.ins.showLog(getlogItem(17));
// }
protected
get
closeBtns
():
eui
.
Button
[]
{
return
[
this
[
'closeBtn'
],
this
[
'close2Btn'
]]
}
get
skinKey
()
{
return
'Box2'
}
}
\ No newline at end of file
egret/src/panels/StartPanel.ts
View file @
caea034d
...
...
@@ -51,7 +51,12 @@ export default class StartPanel extends Panel {
onTap_startBtn
()
{
this
.
hidePanel
();
this
[
'startBtn'
].
enabled
=
false
;
if
(
window
[
'getRST'
])
window
[
'getRST'
]();
try
{
if
(
window
[
'getRST'
])
window
[
'getRST'
]();
}
catch
(
error
)
{
console
.
warn
(
error
)
}
hdGameDoDojoin
((
success
)
=>
{
this
[
'startBtn'
].
enabled
=
true
;
if
(
success
)
{
...
...
mock/happyclear/openTreasureBox.json
View file @
caea034d
{
"success"
:
true
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
1566558623308
,
"data"
:{
"canReceiveTreasureBoxNum"
:
0
,
"nextRangeStarsNum"
:
25
,
"orderNum"
:
"1078836456709300393"
,
"totalStars"
:
12
}}
\ No newline at end of file
{
"success"
:
false
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
1566558623308
,
"data"
:
{
"canReceiveTreasureBoxNum"
:
0
,
"nextRangeStarsNum"
:
25
,
"orderNum"
:
"1078836456709300393"
,
"totalStars"
:
12
}
}
\ 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