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
9d15e243
Commit
9d15e243
authored
Oct 14, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a85f2a68
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
6 deletions
+11
-6
ad.tmproject
egret/resource/TextureMerger/ad.tmproject
+1
-0
default.res.json
egret/resource/default.res.json
+4
-4
ADSkin.exml
egret/resource/skins/ADSkin.exml
+1
-1
ADPanel.ts
egret/src/panels/ADPanel.ts
+5
-1
No files found.
egret/resource/TextureMerger/ad.tmproject
0 → 100644
View file @
9d15e243
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"ad","version":5,"files":["../assets/ad/ad_closebtn.png"]}
\ No newline at end of file
egret/resource/default.res.json
View file @
9d15e243
...
@@ -105,8 +105,8 @@
...
@@ -105,8 +105,8 @@
"name"
:
"inviterule"
"name"
:
"inviterule"
},
},
{
{
"
name"
:
"preload
"
,
"
keys"
:
"ad_closebtn_png
"
,
"
keys"
:
"ad_closebtn_png
"
"
name"
:
"ad
"
}
}
],
],
"resources"
:
[
"resources"
:
[
...
@@ -2221,9 +2221,9 @@
...
@@ -2221,9 +2221,9 @@
"name"
:
"inviterulebg_png"
"name"
:
"inviterulebg_png"
},
},
{
{
"
name"
:
"ad_closebtn_
png"
,
"
url"
:
"assets/ad/ad_closebtn.
png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"
url"
:
"assets/ad/ad_closebtn.
png"
"
name"
:
"ad_closebtn_
png"
}
}
]
]
}
}
\ No newline at end of file
egret/resource/skins/ADSkin.exml
View file @
9d15e243
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"AddSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Skin
class=
"AddSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<w:Config
id=
"16db3bd8eb8"
/>
<w:Config
id=
"16db3bd8eb8"
/>
<e:Image
id=
"
closeBtn2
"
y=
"142"
horizontalCenter=
"0"
width=
"540"
height=
"600"
source=
"{data.img}"
/>
<e:Image
id=
"
adBtn
"
y=
"142"
horizontalCenter=
"0"
width=
"540"
height=
"600"
source=
"{data.img}"
/>
<e:Button
id=
"closeBtn"
label=
""
y=
"811"
horizontalCenter=
"0"
>
<e:Button
id=
"closeBtn"
label=
""
y=
"811"
horizontalCenter=
"0"
>
<e:skinName>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Skin
states=
"up,down,disabled"
>
...
...
egret/src/panels/ADPanel.ts
View file @
9d15e243
...
@@ -18,6 +18,10 @@ export default class ADPanel extends Panel {
...
@@ -18,6 +18,10 @@ export default class ADPanel extends Panel {
result
=
popupAdvert
.
advertList
[
index
];
result
=
popupAdvert
.
advertList
[
index
];
}
}
this
.
data
.
img
=
result
.
img
;
this
.
data
.
img
=
result
.
img
;
this
[
'adBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
window
.
location
.
href
=
result
.
url
;
},
this
);
}
}
showlog
()
{
showlog
()
{
...
@@ -34,6 +38,6 @@ export default class ADPanel extends Panel {
...
@@ -34,6 +38,6 @@ export default class ADPanel extends Panel {
}
}
protected
get
closeBtns
():
eui
.
Button
[]
{
return
[
this
[
'closeBtn'
]
,
this
[
'closeBtn2'
]
]
}
protected
get
closeBtns
():
eui
.
Button
[]
{
return
[
this
[
'closeBtn'
]]
}
get
skinKey
()
{
return
'AD'
}
get
skinKey
()
{
return
'AD'
}
}
}
\ 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