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
5b1928a3
Commit
5b1928a3
authored
Oct 18, 2018
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
3862e7ff
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
45 additions
and
2 deletions
+45
-2
prize_5.tmproject
egret/resource/TextureMerger/prize_5.tmproject
+1
-0
default.thm.json
egret/resource/default.thm.json
+1
-1
StartScene.ts
egret/src/startScene/StartScene.ts
+7
-0
DeclareText.ts
egret/src/startScene/view/DeclareText.ts
+15
-0
Tips.ts
egret/src/startScene/view/Tips.ts
+20
-0
getInfo.json
mock/json/getInfo.json
+1
-1
No files found.
egret/resource/TextureMerger/prize_5.tmproject
0 → 100644
View file @
5b1928a3
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"prize_5","version":5,"files":["../assets/prize/prizePanelbg.png","../assets/prize/PrizePanelX.png","../assets/prize/prizePanelUseBtn.png"]}
\ No newline at end of file
egret/resource/default.thm.json
View file @
5b1928a3
...
...
@@ -5,9 +5,9 @@
"resource/skins/AlertSkin.exml"
,
"resource/skins/OptionItemSkin.exml"
,
"resource/skins/OptionsSkin.exml"
,
"resource/skins/PrizeSkin.exml"
,
"resource/skins/RuleSkin.exml"
,
"resource/skins/StartSkin.exml"
,
"resource/skins/PrizeSkin.exml"
,
"resource/skins/VScrollBarSkin.exml"
],
"path"
:
"resource/default.thm.json"
...
...
egret/src/startScene/StartScene.ts
View file @
5b1928a3
...
...
@@ -16,6 +16,8 @@ import PanelCtrl from "../ctrls/panelCtrl";
import
{
ModuleTypes
}
from
"../types/sceneTypes"
;
import
showAlertPanel
from
"../ctrls/showAlertPanel"
;
import
Panel
from
"../views/Panel"
;
import
Tips
from
"./view/Tips"
;
import
DeclareTextTips
from
"./view/DeclareText"
;
const
{
TouchEvent
}
=
egret
;
export
default
class
StartScene
extends
Scene
{
...
...
@@ -38,6 +40,8 @@ export default class StartScene extends Scene {
const
t2
=
Date
.
now
()
-
__t0__
;
console
.
log
(
`首屏(背景显示)时间:
${
t2
/
1000
}
s`
);
this
.
getLayer
(
LayerTypes
.
ui
).
visible
=
true
;
this
.
_boxListCtrl
=
new
BoxListCtrl
(
this
.
getLayer
(
LayerTypes
.
box
));
await
this
.
_boxListCtrl
.
createFirstBox
();
...
...
@@ -235,6 +239,9 @@ export default class StartScene extends Scene {
uiLayer
.
addChild
(
this
[
'optionBtn'
]);
this
[
'ruleBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_ruleBtn
,
this
);
this
[
'optionBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_optionBtn
,
this
);
uiLayer
.
addChild
(
new
Tips
());
uiLayer
.
addChild
(
new
DeclareTextTips
());
uiLayer
.
visible
=
false
;
}
onTap_ruleBtn
(
e
:
egret
.
Event
)
{
...
...
egret/src/startScene/view/DeclareText.ts
0 → 100644
View file @
5b1928a3
export
default
class
DeclareTextTips
extends
eui
.
Label
{
constructor
()
{
super
();
this
.
width
=
750
;
this
.
textAlign
=
"center"
;
this
.
size
=
20
;
this
.
textColor
=
0x333333
;
this
.
text
=
'*兑换项与活动均与设备制造商Apple Inc.公司无关'
;
this
.
once
(
egret
.
Event
.
ADDED_TO_STAGE
,
this
.
onAddToStage
,
this
);
}
onAddToStage
(){
this
.
y
=
this
.
stage
.
stageHeight
-
this
.
textHeight
-
10
;
}
}
\ No newline at end of file
egret/src/startScene/view/Tips.ts
0 → 100644
View file @
5b1928a3
import
{
DataManager
}
from
"../../../libs/tw/manager/DataManager"
;
export
default
class
Tips
extends
eui
.
Label
{
constructor
()
{
super
();
this
.
horizontalCenter
=
"0"
;
this
.
width
=
750
;
this
.
textAlign
=
"center"
;
this
.
size
=
28
;
this
.
y
=
1100
-
50
;
this
.
updateText
();
DataManager
.
ins
.
addEventListener
(
'dataUpdate'
,
this
.
updateText
,
this
);
}
updateText
()
{
if
(
!
DataManager
.
ins
.
getInfoData
)
return
;
this
.
text
=
DataManager
.
ins
.
getInfoData
.
status
.
text
;
}
}
\ No newline at end of file
mock/json/getInfo.json
View file @
5b1928a3
...
...
@@ -15,7 +15,7 @@
"code"
:
0
,
"btnText"
:
"开始游戏"
,
"btnDisable"
:
0
,
"text"
:
"
1
分/次"
,
"text"
:
"
3
分/次"
,
"btnEventType"
:
null
,
"btnEvent"
:
null
}
...
...
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