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
93e9c6fb
Commit
93e9c6fb
authored
May 09, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整底部广告显示
parent
08544bf8
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
3 deletions
+25
-3
adsmask.png
egret/resource/assets/ad/adsmask.png
+0
-0
nsad1.png
egret/resource/assets/ad/nsad1.png
+0
-0
nsad2.png
egret/resource/assets/ad/nsad2.png
+0
-0
default.res.json
egret/resource/default.res.json
+16
-1
ADSmallSkin.exml
egret/resource/skins/ADSmallSkin.exml
+5
-2
AdSmallComp.ts
egret/src/mapScene/AdSmallComp.ts
+4
-0
No files found.
egret/resource/assets/ad/adsmask.png
0 → 100644
View file @
93e9c6fb
69.7 KB
egret/resource/assets/ad/nsad1.png
0 → 100644
View file @
93e9c6fb
34 KB
egret/resource/assets/ad/nsad2.png
0 → 100644
View file @
93e9c6fb
23 KB
egret/resource/default.res.json
View file @
93e9c6fb
...
@@ -241,7 +241,7 @@
...
@@ -241,7 +241,7 @@
"name"
:
"helpGroup"
"name"
:
"helpGroup"
},
},
{
{
"keys"
:
"virprizebg_png,lightdi_png,wormhole_png,startscenebg_jpg"
,
"keys"
:
"virprizebg_png,lightdi_png,wormhole_png,startscenebg_jpg
,adsmask_png,nsad2_png,nsad1_png
"
,
"name"
:
"preload"
"name"
:
"preload"
}
}
],
],
...
@@ -5401,6 +5401,21 @@
...
@@ -5401,6 +5401,21 @@
"name"
:
"startscenebg_jpg"
,
"name"
:
"startscenebg_jpg"
,
"type"
:
"image"
,
"type"
:
"image"
,
"url"
:
"assets/startscenebg.jpg"
"url"
:
"assets/startscenebg.jpg"
},
{
"name"
:
"adsmask_png"
,
"type"
:
"image"
,
"url"
:
"assets/ad/adsmask.png"
},
{
"name"
:
"nsad2_png"
,
"type"
:
"image"
,
"url"
:
"assets/ad/nsad2.png"
},
{
"name"
:
"nsad1_png"
,
"type"
:
"image"
,
"url"
:
"assets/ad/nsad1.png"
}
}
]
]
}
}
\ No newline at end of file
egret/resource/skins/ADSmallSkin.exml
View file @
93e9c6fb
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"ADSmallSkin"
width=
"615"
height=
"238"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Skin
class=
"ADSmallSkin"
width=
"615"
height=
"238"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<w:Config
id=
"16db4bf413f"
/>
<w:Config
id=
"16db4bf413f"
/>
<e:Image
source=
"common_adbg_png"
/>
<e:Image
id=
"img"
y=
"69"
width=
"493"
height=
"111"
source=
"{data.img}"
anchorOffsetY=
"0"
horizontalCenter=
"0"
/>
<e:Image
source=
"nsad1_png"
horizontalCenter=
"0"
y=
"35"
/>
<e:Image
id=
"img"
y=
"44"
width=
"560"
height=
"160"
source=
"{data.img}"
anchorOffsetY=
"0"
horizontalCenter=
"0.5"
/>
<e:Image
id=
"adsmask"
source=
"adsmask_png"
horizontalCenter=
"0.5"
y=
"45"
width=
"560"
height=
"160"
/>
<e:Image
source=
"nsad2_png"
horizontalCenter=
"-7.5"
/>
</e:Skin>
</e:Skin>
\ No newline at end of file
egret/src/mapScene/AdSmallComp.ts
View file @
93e9c6fb
...
@@ -11,6 +11,10 @@ export default class AdSmallComp extends ComponentBase {
...
@@ -11,6 +11,10 @@ export default class AdSmallComp extends ComponentBase {
let
result
;
let
result
;
// this.touchEnabled = this.touchChildren = false;
// this.touchEnabled = this.touchChildren = false;
super
.
start
(
data
);
super
.
start
(
data
);
if
(
!
this
[
'img'
].
mask
){
this
[
'img'
].
mask
=
this
[
'adsmask'
];
}
NetManager
.
ins
.
hc_advert
(()
=>
{
NetManager
.
ins
.
hc_advert
(()
=>
{
const
{
data
}
=
DataManager
.
ins
.
getData
(
'hc_advert'
);
const
{
data
}
=
DataManager
.
ins
.
getData
(
'hc_advert'
);
let
{
popupAdvert
}
=
data
;
let
{
popupAdvert
}
=
data
;
...
...
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