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
49451c64
Commit
49451c64
authored
Nov 29, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d557c1ea
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
index.html
egret/index.html
+1
-1
ReverseMask.ts
egret/src/ReverseMask.ts
+4
-3
TaskCenter.ts
egret/src/panels/TaskCenter/TaskCenter.ts
+6
-5
No files found.
egret/index.html
View file @
49451c64
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
<body>
<body>
<div
style=
"margin: auto;width: 100%;height: 100%;"
class=
"egret-player"
data-entry-class=
"Main"
<div
style=
"margin: auto;width: 100%;height: 100%;"
class=
"egret-player"
data-entry-class=
"Main"
data-orientation=
"auto"
data-scale-mode=
"showAll"
data-frame-rate=
"60"
data-content-width=
"750"
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=
"
tru
e"
data-show-log=
"true"
data-content-height=
"1624"
data-multi-fingered=
"2"
data-show-fps=
"
fals
e"
data-show-log=
"true"
data-show-fps-style=
"x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9"
>
data-show-fps-style=
"x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9"
>
</div>
</div>
...
...
egret/src/ReverseMask.ts
View file @
49451c64
import
ComponentBase
from
"../libs/new_wx/components/ComponentBase"
;
// // 用法示例:
// // 用法示例:
// // 创建一个形状
// // 创建一个形状
// function getShape(x, y, w, h) {
// function getShape(x, y, w, h) {
...
@@ -25,7 +23,10 @@ import ComponentBase from "../libs/new_wx/components/ComponentBase";
...
@@ -25,7 +23,10 @@ import ComponentBase from "../libs/new_wx/components/ComponentBase";
// });
// });
// })
// })
export
default
class
ReverseMask
extends
ComponentBase
{
/**
* 简单的反向遮罩
*/
export
default
class
ReverseMask
extends
eui
.
Component
{
private
canvasW
:
number
=
750
/
window
.
innerWidth
*
window
.
innerWidth
;
private
canvasW
:
number
=
750
/
window
.
innerWidth
*
window
.
innerWidth
;
private
canvasH
:
number
=
750
/
window
.
innerWidth
*
window
.
innerHeight
;
private
canvasH
:
number
=
750
/
window
.
innerWidth
*
window
.
innerHeight
;
...
...
egret/src/panels/TaskCenter/TaskCenter.ts
View file @
49451c64
...
@@ -4,10 +4,11 @@ import { NetManager } from "../../../libs/tw/manager/NetManager";
...
@@ -4,10 +4,11 @@ import { NetManager } from "../../../libs/tw/manager/NetManager";
import
PanelCtrl
from
"../../../libs/new_wx/ctrls/panelCtrl"
;
import
PanelCtrl
from
"../../../libs/new_wx/ctrls/panelCtrl"
;
import
{
GDispatcher
}
from
"../../../libs/tc/util/GDispatcher"
;
import
{
GDispatcher
}
from
"../../../libs/tc/util/GDispatcher"
;
import
{
getlogItem
}
from
"../../Main"
;
import
{
getlogItem
}
from
"../../Main"
;
import
ReverseMask
from
"../../ReverseMask"
;
export
default
class
TaskCenter
extends
Panel
{
export
default
class
TaskCenter
extends
Panel
{
public
closeBtn
:
eui
.
Button
;
public
closeBtn
:
eui
.
Button
;
public
list
:
eui
.
List
;
public
list
:
eui
.
List
;
onShowAnim
()
{
onShowAnim
()
{
let
canvasH
=
750
/
window
.
innerWidth
*
window
.
innerHeight
;
let
canvasH
=
750
/
window
.
innerWidth
*
window
.
innerHeight
;
...
@@ -100,14 +101,14 @@ class TaskCenterItem extends eui.ItemRenderer {
...
@@ -100,14 +101,14 @@ class TaskCenterItem extends eui.ItemRenderer {
// 领奖
// 领奖
NetManager
.
ins
.
taskAward
((
success
,
res
)
=>
{
NetManager
.
ins
.
taskAward
((
success
,
res
)
=>
{
if
(
!
success
)
{
if
(
!
success
)
{
PanelCtrl
.
instance
.
show
(
'taskCenterNoPrize'
,
{
prizeData
:
res
,
taskData
:
this
.
data
});
PanelCtrl
.
instance
.
show
(
'taskCenterNoPrize'
,
{
prizeData
:
res
,
taskData
:
this
.
data
});
return
;
return
;
}
}
if
(
!
res
.
data
.
option
||
res
.
data
.
option
.
categoryType
==
1
)
{
// 无奖励
if
(
!
res
.
data
.
option
||
res
.
data
.
option
.
categoryType
==
1
)
{
// 无奖励
PanelCtrl
.
instance
.
show
(
'taskCenterNoPrize'
,
{
prizeData
:
res
,
taskData
:
this
.
data
});
PanelCtrl
.
instance
.
show
(
'taskCenterNoPrize'
,
{
prizeData
:
res
,
taskData
:
this
.
data
});
return
;
return
;
}
}
PanelCtrl
.
instance
.
show
(
'taskCenterPrize'
,
{
prizeData
:
res
,
taskData
:
this
.
data
});
PanelCtrl
.
instance
.
show
(
'taskCenterPrize'
,
{
prizeData
:
res
,
taskData
:
this
.
data
});
},
this
.
data
.
subActivityId
);
},
this
.
data
.
subActivityId
);
},
this
);
},
this
);
}
else
if
(
done
<
limit
)
{
// 未完成
}
else
if
(
done
<
limit
)
{
// 未完成
...
...
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