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
bf12145e
Commit
bf12145e
authored
May 20, 2021
by
zhangjinzhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉更新必读
parent
1c9e9460
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
11 deletions
+12
-11
index.html
egret/index.html
+1
-1
StartSceneSkin.exml
egret/resource/skins/StartSceneSkin.exml
+1
-1
StartScene.ts
egret/src/ShootPlanet/Scene/StartScene.ts
+10
-9
No files found.
egret/index.html
View file @
bf12145e
...
...
@@ -83,7 +83,7 @@
<div
id=
"mainDiv"
style=
"margin: auto;width: 100%;height: 100%; background: #ff00ff;"
class=
"egret-player"
data-entry-class=
"Main"
data-orientation=
"auto"
data-scale-mode=
"showAll"
data-frame-rate=
"60"
data-content-width=
"750"
data-content-height=
"1624"
data-multi-fingered=
"2"
data-show-fps=
"
true"
data-content-width=
"750"
data-content-height=
"1624"
data-multi-fingered=
"2"
data-show-fps=
"
false
data-show-log="
false
"
data-show-fps-style=
"x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9"
>
</div>
<img
id=
"shareImg"
/>
...
...
egret/resource/skins/StartSceneSkin.exml
View file @
bf12145e
...
...
@@ -19,7 +19,7 @@
</e:Skin>
</ns1:skinName>
</ns1:MButton>
<ns1:MButton
id=
"btnMustRead"
label=
"更新必读"
x=
"20.22"
y=
"68.4"
>
<ns1:MButton
id=
"btnMustRead"
label=
"更新必读"
x=
"20.22"
y=
"68.4"
visible=
"false"
>
<ns1:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
id=
"image"
width=
"100%"
height=
"100%"
source=
"start_btn_bg_png"
/>
...
...
egret/src/ShootPlanet/Scene/StartScene.ts
View file @
bf12145e
...
...
@@ -36,6 +36,7 @@ export default class StartScene extends Scene {
onSkinComplete
()
{
super
.
onSkinComplete
();
this
.
btnMustRead
.
visible
=
false
;
let
div
=
document
.
getElementById
(
"mainDiv"
);
const
test
=
(
node
:
egret
.
DisplayObject
,
childIndex
:
number
,
color
:
string
)
=>
{
...
...
@@ -58,12 +59,12 @@ export default class StartScene extends Scene {
PanelCtrl
.
instance
.
show
(
RankListPanel
,
{
defaultToggle
:
1
});
});
this
.
btnMustRead
.
image
.
filters
=
[
new
egret
.
ColorMatrixFilter
([
1
,
1
,
0
,
0
,
40
,
0
,
0
,
0
,
0
,
40
,
1
,
0
,
0
,
0
,
40
,
0
,
0
,
0
,
1
,
0
])];
//
this.btnMustRead.image.filters = [new egret.ColorMatrixFilter([
//
1, 1, 0, 0, 40,
//
0, 0, 0, 0, 40,
//
1, 0, 0, 0, 40,
//
0, 0, 0, 1, 0
//
])];
this
.
btnRule
.
onTap
(
this
,
()
=>
{
PanelCtrl
.
instance
.
show
(
RulePanel
,
{
msg
:
MConfigs
.
rule
});
...
...
@@ -94,9 +95,9 @@ export default class StartScene extends Scene {
});
});
this
.
btnMustRead
.
onTap
(
this
,
()
=>
{
location
.
href
=
"http://activity.m.duiba.com.cn/customShare/share?id=3530"
;
});
//
this.btnMustRead.onTap(this, () => {
//
location.href = "http://activity.m.duiba.com.cn/customShare/share?id=3530";
//
});
this
.
btnStart
.
onOnceTap
(
this
,
(
resume
)
=>
{
let
leftTimes
=
this
.
leftTimes
;
...
...
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