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
9ed62a9b
Commit
9ed62a9b
authored
Aug 28, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
ea6307e9
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
2 deletions
+13
-2
exml.json
egret/.wing/exml.json
+5
-0
MainBase.ts
egret/libs/new_wx/MainBase.ts
+2
-1
Share2Skin.exml
egret/resource/skins/Share2Skin.exml
+1
-0
MapScene.ts
egret/src/mapScene/MapScene.ts
+1
-1
BloodPanel.ts
egret/src/panels/BloodPanel.ts
+2
-0
shareCtrl.ts
egret/src/shareCtrl.ts
+2
-0
No files found.
egret/.wing/exml.json
View file @
9ed62a9b
...
...
@@ -178,5 +178,10 @@
"backgroundType"
:
"user"
,
"useBgImage"
:
false
,
"useBgColor"
:
true
},
"16cd6d4c8ff"
:
{
"backgroundType"
:
"user"
,
"useBgImage"
:
false
,
"useBgColor"
:
true
}
}
\ No newline at end of file
egret/libs/new_wx/MainBase.ts
View file @
9ed62a9b
...
...
@@ -128,7 +128,8 @@ export default class MainBase extends eui.UILayer {
}
private
async
runGame
()
{
await
this
.
loadResource
()
await
this
.
loadResource
();
// RES.getResAsync('bg_mp3');
RES
.
getResAsync
(
`nums_png`
);
RES
.
getResAsync
(
`nums_fnt`
);
if
(
!
window
[
'development'
])
...
...
egret/resource/skins/Share2Skin.exml
View file @
9ed62a9b
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"Share2Skin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<w:Config
id=
"16cd6d4c8ff"
/>
<e:Rect
width=
"750"
height=
"1624"
fillAlpha=
"0.7"
/>
<e:Group
id=
"pic"
x=
"86"
y=
"46"
>
<e:Image
source=
"share3_jpg"
y=
"0"
x=
"0"
/>
...
...
egret/src/mapScene/MapScene.ts
View file @
9ed62a9b
...
...
@@ -291,7 +291,7 @@ export default class MapScene extends Scene {
if
(
s
)
{
const
data
=
DataManager
.
ins
.
getData
(
'getPlugOrderStatus'
);
//区分奖品
if
(
data
.
lottery
)
{
if
(
data
.
lottery
&&
data
.
lottery
.
type
!=
'thanks'
)
{
PanelCtrl
.
instance
.
show
(
'box'
);
}
else
{
showToast
(
'您与奖品擦肩而过~'
);
...
...
egret/src/panels/BloodPanel.ts
View file @
9ed62a9b
...
...
@@ -5,6 +5,7 @@ import SceneCtrl from "../../libs/new_wx/ctrls/sceneCtrl";
import
{
showToast
}
from
"../../libs/new_wx/ctrls/toastCtrl"
;
import
{
getlogItem
}
from
"../Main"
;
import
wait
from
"../../libs/new_tc/wait"
;
import
{
showShare
}
from
"../shareCtrl"
;
export
default
class
BloodPanel
extends
Panel
{
start
(
data
)
{
...
...
@@ -51,6 +52,7 @@ this['price1Txt'].text = window['price1']
}
onTapInvite
()
{
showShare
();
NetManager
.
ins
.
clickLog
(
getlogItem
(
4
));
const
data
=
getHomeData
();
if
(
data
.
askForEnergy
)
{
...
...
egret/src/shareCtrl.ts
View file @
9ed62a9b
...
...
@@ -14,10 +14,12 @@ class Share2 extends ComponentBase {
this
[
'lvTxt'
].
text
=
data
.
levels
.
length
;
this
[
'btn1'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
.
getFunc
(
'btn1'
);
hideShare
();
},
this
);
this
[
'btn2'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
.
getFunc
(
'btn2'
);
hideShare
();
},
this
);
}
...
...
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